Searched defs:uri (Results 1 - 25 of 505) sorted by relevance

1234567891011>>

/packages/apps/Contacts/src/com/android/contacts/util/
H A DContactLoaderUtils.java42 public static Uri ensureIsContactUri(final ContentResolver resolver, final Uri uri) argument
44 if (uri == null) throw new IllegalArgumentException("uri must not be null");
46 final String authority = uri.getAuthority();
50 final String type = resolver.getType(uri);
53 return uri;
58 final long rawContactId = ContentUris.parseId(uri);
64 throw new IllegalArgumentException("uri format is unknown");
71 final long rawContactId = ContentUris.parseId(uri);
76 throw new IllegalArgumentException("uri authorit
[all...]
H A DUriUtils.java51 public static String uriToString(Uri uri) { argument
52 return uri == null ? null : uri.toString();
55 public static boolean isEncodedContactUri(Uri uri) { argument
56 if (uri == null) {
59 final String lastPathSegment = uri.getLastPathSegment();
67 * @return {@code uri} as-is if the authority is of contacts provider. Otherwise
68 * or {@code uri} is null, return null otherwise
70 public static Uri nullForNonContactsUri(Uri uri) { argument
71 if (uri
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/
H A DRingtonePreviewKlaxon.java34 public static void start(Context context, Uri uri) { argument
37 getAsyncRingtonePlayer(context).play(uri, 0);
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/
H A DSystemRingtoneHolder.java23 SystemRingtoneHolder(Uri uri, String name) { argument
24 super(uri, name);
/packages/apps/Dialer/java/com/android/contacts/common/util/
H A DContactLoaderUtils.java40 public static Uri ensureIsContactUri(final ContentResolver resolver, final Uri uri) argument
42 if (uri == null) {
43 throw new IllegalArgumentException("uri must not be null");
46 final String authority = uri.getAuthority();
50 final String type = resolver.getType(uri);
53 return uri;
58 final long rawContactId = ContentUris.parseId(uri);
64 throw new IllegalArgumentException("uri format is unknown");
71 final long rawContactId = ContentUris.parseId(uri);
76 throw new IllegalArgumentException("uri authorit
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DStitchingChangeListener.java22 public void onStitchingQueued(Uri uri); argument
24 public void onStitchingResult(Uri uri); argument
26 public void onStitchingProgress(Uri uri, int progress); argument
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DMessagePartVideoThumbnailRequestDescriptor.java29 public MessagePartVideoThumbnailRequestDescriptor(Uri uri) { argument
30 super(null, uri, ImageRequest.UNSPECIFIED_SIZE, ImageRequest.UNSPECIFIED_SIZE,
/packages/apps/Nfc/src/com/android/nfc/beam/
H A DMimeTypeUtil.java31 public static String getMimeTypeForUri(Context context, Uri uri) { argument
32 if (uri.getScheme() == null) return null;
34 if (uri.getScheme().equals(ContentResolver.SCHEME_CONTENT)) {
36 return cr.getType(uri);
37 } else if (uri.getScheme().equals(ContentResolver.SCHEME_FILE)) {
38 String extension = MimeTypeMap.getFileExtensionFromUrl(uri.getPath()).toLowerCase();
45 Log.d(TAG, "Could not determine mime type for Uri " + uri);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DAttachmentCommandHandler.java33 public void sendCommand(Uri uri, ContentValues params) { argument
34 startUpdate(0, null, uri, params, null, null);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DTypedUriMatcher.java26 public T match(Uri uri); argument
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/map/
H A DBluetoothMapContentObserverTest.java32 public Cursor query(Uri uri, String[] b, String s, String[] c, String d) { argument
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DImageProcessorListener.java59 * Called when image has been written to disk and ready for further processing via uri.
62 * @param uri Uri that serves as handle to image written to disk
64 public void onResultUri(TaskImageContainer.TaskInfo task, Uri uri); argument
/packages/apps/Camera2/src/com/android/camera/util/
H A DIntentHelper.java55 public static Intent getVideoPlayerIntent(Uri uri) { argument
57 .setDataAndType(uri, "video/*");
/packages/apps/Camera2/src_pd/com/android/camera/util/
H A DGalleryHelper.java62 public static void setContentUri(Intent intent, Uri uri) { argument
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DImportRequest.java47 public final Uri uri; field in class:ImportRequest
50 * Holds the byte stream of the vcard, if {@link #uri} is null.
88 * The count of vCard entries in {@link #uri}. A receiver of this object can use it
93 * which means we have to open and scan over {@link #uri} to know this value, while
100 byte[] data, Uri uri, String displayName, int estimatedType, String estimatedCharset,
104 this.uri = uri;
99 ImportRequest(AccountWithDataSet account, byte[] data, Uri uri, String displayName, int estimatedType, String estimatedCharset, int vcardVersion, int entryCount) argument
/packages/apps/Email/tests/src/com/android/email/activity/
H A DIntentUtilitiesTests.java79 public void checkGetIdFromIntent(String uri, long expected) { argument
80 Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "ACCOUNT_ID")));
83 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MAILBOX_ID")));
86 i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri.replace("ID", "MESSAGE_ID")));
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DChangeNotifier.java31 public ChangeNotifier(MediaSet set, Uri uri, GalleryApp application) { argument
33 application.getDataManager().registerChangeNotifier(uri, this);
H A DPanoramaMetadataJob.java31 public PanoramaMetadataJob(Context context, Uri uri) { argument
33 mUri = uri;
/packages/apps/Gallery2/src/com/android/photos/data/
H A DNotificationWatcher.java34 public void notifyChange(Uri uri, boolean syncToNetwork) { argument
35 mUris.add(uri);
39 public boolean isNotified(Uri uri) { argument
40 return mUris.contains(uri);
/packages/apps/Gallery2/src_pd/com/android/gallery3d/app/
H A DStitchingProgressManager.java31 public Integer getProgress(Uri uri) { argument
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
H A DPanoramaViewHelper.java39 public void showPanorama(Uri uri) { argument
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
H A DDeviceAdminIconParser.java46 public String parse(Uri uri) { argument
47 if (uri == null) {
52 boolean success = StoreUtils.copyUriIntoFile(mContext.getContentResolver(), uri, mFileIcon);
H A DDisclaimersParser.java69 final Uri uri = disclaimerBundle.getParcelable(EXTRA_PROVISIONING_DISCLAIMER_CONTENT);
75 if (uri == null) {
76 ProvisionLogger.logw("Null disclaimer content uri in " + i + " element");
80 File disclaimerFile = saveDisclaimerContentIntoFile(uri, i);
83 ProvisionLogger.logw("Failed to copy disclaimer uri in " + i + " element");
94 * @return {@link File} if the uri content is saved into the file successfully. Otherwise,
97 private File saveDisclaimerContentIntoFile(Uri uri, int index) { argument
105 boolean success = StoreUtils.copyUriIntoFile(mContext.getContentResolver(), uri,
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
H A DTestUtils.java36 public static String stringFromUri(ContentResolver cr, Uri uri) throws IOException { argument
37 try (final InputStream in = cr.openInputStream(uri)) {
/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBoundCursorLoader.java32 public BoundCursorLoader(final String bindingId, final Context context, final Uri uri, argument
35 super(context, uri, projection, selection, selectionArgs, sortOrder);

Completed in 4910 milliseconds

1234567891011>>