Java Code Examples for android.net.Uri#hashCode()

The following examples show how to use android.net.Uri#hashCode() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VideoDataManager.java    From android-tv-leanback with Apache License 2.0 5 votes vote down vote up
public VideoDataManager(Context mContext, LoaderManager mLoaderManager, Uri mRowUri) {
    this.mLoaderManager = mLoaderManager;
    this.mRowUri = mRowUri;
    this.mContext = mContext;
    LOADER_ID = mRowUri.hashCode();
    mMapper = new VideoItemMapper();
    videos = new ArrayList<Video>();

}
 
Example 2
Source File: VideoDataManager.java    From android-tv-leanback with Apache License 2.0 5 votes vote down vote up
public VideoDataManager(Context mContext, LoaderManager mLoaderManager, Uri mRowUri) {
    this.mLoaderManager = mLoaderManager;
    this.mRowUri = mRowUri;
    this.mContext = mContext;
    LOADER_ID = mRowUri.hashCode();
    mMapper = new VideoItemMapper();
    videos = new ArrayList<Video>();

}
 
Example 3
Source File: PluginService.java    From sana.mobile with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
private static final Uri renderHackStream(String hack, Uri obs) {
    File extDir = Environment.getExternalStorageDirectory();
    File path = new File(extDir, Constants.PATH_OBSERVATION);
    File f = new File(path, obs.hashCode() + ".jpg");
    if (f.exists())
        return Uri.fromFile(f);
    else
        throw new NullPointerException("NULL data. File Not Found");
}