/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/ |
D | FeedProvider.java | 73 public String getType(Uri uri) { in getType() argument 74 final int match = sUriMatcher.match(uri); in getType() 81 throw new UnsupportedOperationException("Unknown uri: " + uri); in getType() 92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 96 int uriMatch = sUriMatcher.match(uri); in query() 100 String id = uri.getLastPathSegment(); in query() 111 c.setNotificationUri(ctx.getContentResolver(), uri); in query() local 114 throw new UnsupportedOperationException("Unknown uri: " + uri); in query() 122 public Uri insert(Uri uri, ContentValues values) { in insert() argument 125 final int match = sUriMatcher.match(uri); in insert() [all …]
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/ |
D | FeedProvider.java | 73 public String getType(Uri uri) { in getType() argument 74 final int match = sUriMatcher.match(uri); in getType() 81 throw new UnsupportedOperationException("Unknown uri: " + uri); in getType() 92 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 96 int uriMatch = sUriMatcher.match(uri); in query() 100 String id = uri.getLastPathSegment(); in query() 111 c.setNotificationUri(ctx.getContentResolver(), uri); in query() local 114 throw new UnsupportedOperationException("Unknown uri: " + uri); in query() 122 public Uri insert(Uri uri, ContentValues values) { in insert() argument 125 final int match = sUriMatcher.match(uri); in insert() [all …]
|
/developers/samples/android/common/src/java/com/example/android/common/assetprovider/ |
D | AssetProvider.java | 60 public String getType(Uri uri){ in getType() argument 66 String path = uri.getPath(); in getType() 74 return guessContentTypeFromName(uri.toString()); in getType() 79 public AssetFileDescriptor openAssetFile (Uri uri, String mode) in openAssetFile() argument 92 String path = uri.getPath(); in openAssetFile() 119 public Cursor query(Uri uri, String[] projection, String selection, in query() argument 127 public Uri insert(Uri uri, ContentValues contentValues) { in insert() argument 132 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 137 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
|
/developers/build/prebuilts/gradle/BeamLargeFiles/Application/src/main/java/com/example/android/common/assetprovider/ |
D | AssetProvider.java | 60 public String getType(Uri uri){ in getType() argument 66 String path = uri.getPath(); in getType() 74 return guessContentTypeFromName(uri.toString()); in getType() 79 public AssetFileDescriptor openAssetFile (Uri uri, String mode) in openAssetFile() argument 92 String path = uri.getPath(); in openAssetFile() 119 public Cursor query(Uri uri, String[] projection, String selection, in query() argument 127 public Uri insert(Uri uri, ContentValues contentValues) { in insert() argument 132 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 137 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/ |
D | VideoContentProvider.java | 70 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 73 switch (URI_MATCHER.match(uri)) { in query() 75 Log.d(TAG, "search suggest: " + selectionArgs[0] + " URI: " + uri); in query() 78 "selectionArgs must be provided for the Uri: " + uri); in query() 82 throw new IllegalArgumentException("Unknown Uri: " + uri); in query() 115 public String getType(Uri uri) { in getType() argument 116 switch (URI_MATCHER.match(uri)) { in getType() 122 throw new IllegalArgumentException("Unknown URL " + uri); in getType() 129 public Uri insert(Uri uri, ContentValues values) { in insert() argument 134 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument [all …]
|
/developers/build/prebuilts/gradle/ActionBarCompat-ShareActionProvider/Application/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/ |
D | AssetProvider.java | 44 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 50 public String getType(Uri uri) { in getType() argument 56 public Uri insert(Uri uri, ContentValues values) { in insert() argument 62 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 69 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 75 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() argument 77 final String assetName = uri.getLastPathSegment(); in openAssetFile() 90 return super.openAssetFile(uri, mode); in openAssetFile()
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ShareActionProvider/Application/src/main/java/com/example/android/actionbarcompat/shareactionprovider/content/ |
D | AssetProvider.java | 44 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 50 public String getType(Uri uri) { in getType() argument 56 public Uri insert(Uri uri, ContentValues values) { in insert() argument 62 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 69 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 75 public AssetFileDescriptor openAssetFile(Uri uri, String mode) throws FileNotFoundException { in openAssetFile() argument 77 final String assetName = uri.getLastPathSegment(); in openAssetFile() 90 return super.openAssetFile(uri, mode); in openAssetFile()
|
/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/ |
D | AssetProvider.java | 73 public String getType(Uri uri){ in getType() argument 79 String path = uri.getLastPathSegment(); in getType() 87 return guessContentTypeFromName(uri.toString()); in getType() 92 public AssetFileDescriptor openAssetFile (Uri uri, String mode) in openAssetFile() argument 105 String path = uri.getLastPathSegment(); in openAssetFile() 131 public Cursor query(Uri uri, String[] projection, String selection, in query() argument 133 String path = uri.getLastPathSegment(); in query() 154 AssetFileDescriptor afd = openAssetFile(uri, "r"); in query() 170 public Uri insert(Uri uri, ContentValues contentValues) { in insert() argument 175 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument [all …]
|
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
D | WeatherDataProvider.java | 83 public synchronized Cursor query(Uri uri, String[] projection, String selection, in query() argument 85 assert(uri.getPathSegments().isEmpty()); in query() 99 public String getType(Uri uri) { in getType() argument 104 public Uri insert(Uri uri, ContentValues values) { in insert() argument 110 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 116 public synchronized int update(Uri uri, ContentValues values, String selection, in update() argument 118 assert(uri.getPathSegments().size() == 1); in update() 122 final int index = Integer.parseInt(uri.getPathSegments().get(0)); in update() 131 getContext().getContentResolver().notifyChange(uri, null); in update()
|
/developers/samples/android/content/documentsUi/StorageClient/Application/src/main/java/com/example/android/storageclient/ |
D | StorageClientFragment.java | 99 Uri uri = null; in onActivityResult() local 101 uri = resultData.getData(); in onActivityResult() 102 Log.i(TAG, "Uri: " + uri.toString()); in onActivityResult() 103 showImage(uri); in onActivityResult() 114 public void showImage(Uri uri) { in showImage() argument 116 if (uri != null) { in showImage() 122 fragmentArguments.putParcelable("URI", uri); in showImage() 147 private Bitmap getBitmapFromUri(Uri uri) { in getBitmapFromUri() argument 151 getActivity().getContentResolver().openFileDescriptor(uri, "r"); in getBitmapFromUri() 218 public void dumpImageMetaData(Uri uri) { in dumpImageMetaData() argument [all …]
|
/developers/build/prebuilts/gradle/StorageClient/Application/src/main/java/com/example/android/storageclient/ |
D | StorageClientFragment.java | 99 Uri uri = null; in onActivityResult() local 101 uri = resultData.getData(); in onActivityResult() 102 Log.i(TAG, "Uri: " + uri.toString()); in onActivityResult() 103 showImage(uri); in onActivityResult() 114 public void showImage(Uri uri) { in showImage() argument 116 if (uri != null) { in showImage() 122 fragmentArguments.putParcelable("URI", uri); in showImage() 147 private Bitmap getBitmapFromUri(Uri uri) { in getBitmapFromUri() argument 151 getActivity().getContentResolver().openFileDescriptor(uri, "r"); in getBitmapFromUri() 218 public void dumpImageMetaData(Uri uri) { in dumpImageMetaData() argument [all …]
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/ |
D | RecommendationBuilder.java | 93 public RecommendationBuilder setBackground(String uri) { in setBackground() argument 94 mBackgroundUri = uri; in setBackground() 192 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument 197 public String getType(Uri uri) { in getType() argument 202 public Uri insert(Uri uri, ContentValues values) { in insert() argument 207 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument 213 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument 221 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile() argument 222 int backgroundId = Integer.parseInt(uri.getLastPathSegment()); in openFile()
|
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/ |
D | TvContractUtils.java | 107 Uri uri; in updateChannels() local 109 uri = resolver.insert(TvContract.Channels.CONTENT_URI, values); in updateChannels() 111 uri = TvContract.buildChannelUri(rowId); in updateChannels() 112 resolver.update(uri, values, null, null); in updateChannels() 116 logos.put(TvContract.buildChannelLogoUri(uri), channel.logoUrl); in updateChannels() 132 Uri uri = TvContract.buildChannelsUriForInput(inputId); in getChannelCount() local 137 cursor = resolver.query(uri, projection, null, null, null); in getChannelCount() 155 Uri uri = TvContract.buildChannelsUriForInput(inputId); in buildChannelMap() local 164 cursor = resolver.query(uri, projection, null, null, null); in buildChannelMap() 186 Uri uri = TvContract.buildProgramsUriForChannel(channelUri); in getLastProgramEndTimeMillis() local [all …]
|
/developers/samples/android/content/documentsUi/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
D | DirectorySelectionFragment.java | 150 void updateDirectoryEntries(Uri uri) { in updateDirectoryEntries() argument 152 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, in updateDirectoryEntries() 153 DocumentsContract.getTreeDocumentId(uri)); in updateDirectoryEntries() 154 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, in updateDirectoryEntries() 155 DocumentsContract.getTreeDocumentId(uri)); in updateDirectoryEntries() 163 mCurrentDirectoryUri = uri; in updateDirectoryEntries() 197 void createDirectory(Uri uri, String directoryName) { in createDirectory() argument 199 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, in createDirectory() 200 DocumentsContract.getTreeDocumentId(uri)); in createDirectory()
|
/developers/build/prebuilts/gradle/DirectorySelection/Application/src/main/java/com/example/android/directoryselection/ |
D | DirectorySelectionFragment.java | 150 void updateDirectoryEntries(Uri uri) { in updateDirectoryEntries() argument 152 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, in updateDirectoryEntries() 153 DocumentsContract.getTreeDocumentId(uri)); in updateDirectoryEntries() 154 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, in updateDirectoryEntries() 155 DocumentsContract.getTreeDocumentId(uri)); in updateDirectoryEntries() 163 mCurrentDirectoryUri = uri; in updateDirectoryEntries() 197 void createDirectory(Uri uri, String directoryName) { in createDirectory() argument 199 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, in createDirectory() 200 DocumentsContract.getTreeDocumentId(uri)); in createDirectory()
|
/developers/samples/android/wearable/wear/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
D | DataLayerListenerService.java | 71 Uri uri = event.getDataItem().getUri(); in onDataChanged() local 72 String path = uri.getPath(); in onDataChanged() 76 String nodeId = uri.getHost(); in onDataChanged() 78 byte[] payload = uri.toString().getBytes(); in onDataChanged()
|
/developers/build/prebuilts/gradle/DataLayer/Wearable/src/main/java/com/example/android/wearable/datalayer/ |
D | DataLayerListenerService.java | 71 Uri uri = event.getDataItem().getUri(); in onDataChanged() local 72 String path = uri.getPath(); in onDataChanged() 76 String nodeId = uri.getHost(); in onDataChanged() 78 byte[] payload = uri.toString().getBytes(); in onDataChanged()
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
D | RecommendationBuilder.java | 80 public RecommendationBuilder setImage(String uri) { in setImage() argument 81 mImageUri = uri; in setImage() 85 public RecommendationBuilder setBackground(String uri) { in setBackground() argument 86 mBackgroundUri = uri; in setBackground()
|
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
D | BitmapHelper.java | 64 public static Bitmap fetchAndRescaleBitmap(String uri, int width, int height) in fetchAndRescaleBitmap() argument 66 URL url = new URL(uri); in fetchAndRescaleBitmap() 73 LogHelper.d(TAG, "Scaling bitmap ", uri, " by factor ", scaleFactor, " to support ", in fetchAndRescaleBitmap()
|
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/ |
D | BitmapHelper.java | 64 public static Bitmap fetchAndRescaleBitmap(String uri, int width, int height) in fetchAndRescaleBitmap() argument 66 URL url = new URL(uri); in fetchAndRescaleBitmap() 73 LogHelper.d(TAG, "Scaling bitmap ", uri, " by factor ", scaleFactor, " to support ", in fetchAndRescaleBitmap()
|
/developers/samples/android/content/documentsUi/StorageClient/Application/tests/src/com/example/android/storageclient/tests/ |
D | SampleTests.java | 78 Uri uri = Uri.parse("content://HAHADOESNTEXIST"); in testDumpMetadataInvalidUri() local 79 StorageClientFragment.ImageDialogFragment.dumpImageMetaData(mTestActivity, uri); in testDumpMetadataInvalidUri()
|
/developers/build/prebuilts/gradle/StorageClient/Application/tests/src/com/example/android/storageclient/tests/ |
D | SampleTests.java | 78 Uri uri = Uri.parse("content://HAHADOESNTEXIST"); in testDumpMetadataInvalidUri() local 79 StorageClientFragment.ImageDialogFragment.dumpImageMetaData(mTestActivity, uri); in testDumpMetadataInvalidUri()
|
/developers/build/prebuilts/gradle/DirectorySelection/ |
D | README.md | 44 void updateDirectoryEntries(Uri uri) { 46 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 47 DocumentsContract.getTreeDocumentId(uri)); 48 Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(uri, 49 DocumentsContract.getTreeDocumentId(uri)); 57 mCurrentDirectoryUri = uri; 92 Uri docUri = DocumentsContract.buildDocumentUriUsingTree(uri, 93 DocumentsContract.getTreeDocumentId(uri));
|
/developers/build/prebuilts/gradle/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
D | ListenerService.java | 53 Uri uri = Uri.parse(Constants.MAPS_NAVIGATION_INTENT_URI + Uri.encode(attractionQuery)); in onMessageReceived() local 54 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in onMessageReceived()
|
/developers/samples/android/wearable/wear/XYZTouristAttractions/Application/src/main/java/com/example/android/xyztouristattractions/service/ |
D | ListenerService.java | 53 Uri uri = Uri.parse(Constants.MAPS_NAVIGATION_INTENT_URI + Uri.encode(attractionQuery)); in onMessageReceived() local 54 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in onMessageReceived()
|