Searched defs:uri (Results 251 - 275 of 505) sorted by relevance

<<11121314151617181920>>

/packages/apps/Contacts/src/com/android/contacts/list/
H A DProviderStatusWatcher.java269 public void onChange(boolean selfChange, Uri uri) { argument
270 if (!ProviderStatus.CONTENT_URI.equals(uri)) return;
/packages/apps/Contacts/src/com/android/contacts/model/
H A DRawContact.java72 public NamedDataItem(Uri uri, ContentValues values) { argument
73 this.mUri = uri;
129 rawContact.addNamedDataItemValues(subValue.uri, subValue.values);
318 public NamedDataItem addNamedDataItemValues(Uri uri, ContentValues values) { argument
319 final NamedDataItem namedItem = new NamedDataItem(uri, values);
/packages/apps/Contacts/src/com/android/contacts/vcard/
H A DExportProcessor.java121 final Uri uri = request.destUri;
124 outputStream = mResolver.openOutputStream(uri);
131 uri, e.getMessage());
200 doProgressNotification(uri, total, current);
212 final String filename = ExportVCardActivity.getOpenableUriDisplayName(mService, uri);
216 if (isLocalFile(uri)) {
222 mService.getString(R.string.touch_to_share_contacts), uri);
244 private boolean isLocalFile(Uri uri) { argument
245 final String authority = uri.getAuthority();
262 private void doProgressNotification(Uri uri, in argument
300 doFinishNotificationWithShareAction(final String title, final String description, Uri uri) argument
[all...]
H A DExportVCardActivity.java232 static String getOpenableUriDisplayName(Context context, Uri uri) { argument
233 if (uri == null) return null;
234 final Cursor cursor = context.getContentResolver().query(uri, null, null, null, null);
H A DNfcImportVCardActivity.java244 public void onImportFinished(ImportRequest request, int jobId, Uri uri) { argument
250 if (uri != null) {
251 Uri contactUri = RawContacts.getContactLookupUri(getContentResolver(), uri);
H A DVCardService.java82 public void onScanCompleted(String path, Uri uri) { argument
156 uris.add(request.uri.toString());
160 String.format("received multiple import request (uri: %s, displayName: %s)",
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DDynamicShortcutsTests.java284 private MockContentProvider.Query queryFor(Uri uri, Object... rows) { argument
286 .forUrisMatching(uri.getAuthority(), uri.getPath())
295 private MockContentProvider.Query queryForSingleRow(Uri uri, Object... row) { argument
296 return new MockContentProvider.Query(uri)
/packages/apps/DeskClock/src/com/android/deskclock/data/
H A DSettingsDAO.java182 * @return the uri of the selected ringtone or the {@code defaultUri} if no explicit selection
205 * @param uri the uri of the ringtone to play for all timers
207 static void setTimerRingtoneUri(SharedPreferences prefs, Uri uri) { argument
208 prefs.edit().putString(SettingsActivity.KEY_TIMER_RINGTONE, uri.toString()).apply();
212 * @return the uri of the selected ringtone or the {@code defaultUri} if no explicit selection
221 * @param uri identifies the default ringtone to play for new alarms
223 static void setDefaultAlarmRingtoneUri(SharedPreferences prefs, Uri uri) { argument
224 prefs.edit().putString(KEY_DEFAULT_ALARM_RINGTONE_URI, uri.toString()).apply();
H A DSettingsModel.java43 /** The uri of the default ringtone to use for timers until the user explicitly chooses one. */
116 void setTimerRingtoneUri(Uri uri) { argument
117 SettingsDAO.setTimerRingtoneUri(mPrefs, uri);
140 void setDefaultAlarmRingtoneUri(Uri uri) { argument
141 SettingsDAO.setDefaultAlarmRingtoneUri(mPrefs, uri);
/packages/apps/Dialer/java/com/android/contacts/common/list/
H A DContactListAdapter.java44 protected static Uri buildSectionIndexerUri(Uri uri) { argument
45 return uri.buildUpon().appendQueryParameter(Contacts.EXTRA_ADDRESS_BOOK_INDEX, "true").build();
51 Uri uri = Contacts.getLookupUri(contactId, lookupKey);
53 if (uri != null && directoryId != Directory.DEFAULT) {
54 uri =
55 uri.buildUpon()
60 return uri;
/packages/apps/Dialer/java/com/android/contacts/common/model/
H A DRawContact.java92 rawContact.addNamedDataItemValues(subValue.uri, subValue.values);
228 public NamedDataItem addNamedDataItemValues(Uri uri, ContentValues values) { argument
229 final NamedDataItem namedItem = new NamedDataItem(uri, values);
311 public NamedDataItem(Uri uri, ContentValues values) { argument
312 this.mUri = uri;
/packages/apps/Dialer/java/com/android/dialer/app/
H A DSpecialCharSequenceMgr.java217 Uri uri = TelecomUtil.getAdnUriForPhoneAccount(applicationContext, null);
218 handleAdnQuery(handler, sc, uri);
237 private static void handleAdnQuery(QueryHandler handler, SimContactQueryCookie cookie, Uri uri) { argument
238 if (handler == null || cookie == null || uri == null) {
250 uri,
355 Uri uri = TelecomUtil.getAdnUriForPhoneAccount(mContext, selectedAccountHandle);
356 handleAdnQuery(mQueryHandler, mCookie, uri);
/packages/apps/Dialer/java/com/android/dialer/blocking/
H A DFilteredNumberAsyncQueryHandler.java71 protected void onInsertComplete(int token, Object cookie, Uri uri) { argument
73 ((Listener) cookie).onInsertComplete(token, cookie, uri);
307 public void onInsertComplete(int token, Object cookie, Uri uri) {
309 listener.onBlockComplete(uri);
336 * @param uri The uri of row to remove, from {@link FilteredNumberAsyncQueryHandler#blockNumber}.
338 public void unblock(@Nullable final OnUnblockNumberListener listener, final Uri uri) { argument
354 "Returned " + rowsReturned + " rows for uri " + uri + "where 1 expected.");
371 uri,
400 onBlockComplete(Uri uri) argument
428 onInsertComplete(int token, Object cookie, Uri uri) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/
H A DCameraComposerFragment.java219 public void onMediaReady(Uri uri, String contentType, int width, int height) { argument
222 setCameraUri(uri);
226 uriCallback.uriReady(uri);
306 private void setCameraUri(Uri uri) { argument
307 cameraUri = uri;
415 void uriReady(Uri uri); argument
/packages/apps/Dialer/java/com/android/dialer/oem/
H A DCequintCallerIdManager.java165 Context context, Uri uri, @NonNull String number, String[] flags) {
171 context.getContentResolver().query(uri, EMPTY_PROJECTION, number, flags, null)) {
164 lookup( Context context, Uri uri, @NonNull String number, String[] flags) argument
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
H A DContactInfoHelper.java74 * Creates a JSON-encoded lookup uri for a unknown number without an associated contact
126 final Uri uri = Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, lookupKey);
132 .query(uri, PhoneQuery.DISPLAY_NAME_ALTERNATIVE_PROJECTION, null, null, null);
156 Uri uri = PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI;
160 uri = PhoneLookup.CONTENT_FILTER_URI;
167 uri.buildUpon()
298 Uri uri =
303 Cursor cursor = cr.query(uri, new String[] {Directory._ID}, null, null, null);
330 ContactInfo lookupContactFromUri(Uri uri) { argument
331 if (uri
[all...]
/packages/apps/Dialer/java/com/android/incallui/
H A DCallerInfoAsyncQuery.java130 Uri uri = ContactInfoHelper.getContactInfoLookupUri(info.phoneNumber);
131 startQueryInternal(token, context, info, listener, cookie, uri);
155 throw new QueryPoolException("Bad context or query uri.");
178 contactRef, // uri
207 Uri uri = ContactInfoHelper.getContactInfoLookupUri(info.phoneNumber, directoryId);
209 Log.d(LOG_TAG, "directoryId: " + directoryId + " uri: " + uri);
212 startQueryInternal(token, context, info, intermediateListener, cookie, uri);
220 Uri uri = Directory.CONTENT_URI;
222 uri
249 sanitizeUriToString(Uri uri) argument
389 startQuery( int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
H A DLogUtils.java79 * Returns a String for the specified content provider uri. This will do sanitation of the uri to
82 public static String contentUriToString(final Uri uri) { argument
83 return contentUriToString(TAG, uri);
87 * Returns a String for the specified content provider uri. This will do sanitation of the uri to
90 public static String contentUriToString(String tag, Uri uri) { argument
92 // Debug logging has been enabled, so log the uri as is
93 return uri.toString();
95 // Debug logging is not enabled, we want to remove the email address from the uri
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DActionHandler.java94 void loadRoot(Uri uri); argument
H A DOpenExternalDirectoryActivity.java319 final Uri uri = DocumentsContract.buildTreeDocumentUri(Providers.AUTHORITY_STORAGE, docId);
320 if (uri == null) {
324 if (DEBUG) Log.d(TAG, "URI for " + file + ": " + uri);
325 return uri;
330 final Uri uri = getGrantedUriPermission(context, provider, file);
331 return createGrantedUriPermissionsIntent(uri);
334 private static Intent createGrantedUriPermissionsIntent(Uri uri) { argument
336 intent.setData(uri);
358 final Uri uri = uriPermission.getUri();
359 if (uri
[all...]
H A DThumbnailCache.java38 * An LRU cache that supports finding the thumbnail of the requested uri with a different size than
47 * {@link #mCache}. TreeMap is used to search the closest size to a given size and a given uri.
63 * Obtains thumbnail given a uri and a size.
65 * @param uri the uri of the thumbnail in need
69 public Result getThumbnail(Uri uri, Point size) { argument
71 sizeMap = mSizeIndex.get(uri);
73 // There is not any thumbnail for this uri.
117 * Puts a thumbnail for the given uri and size in to the cache.
118 * @param uri th
123 putThumbnail(Uri uri, Point size, Bitmap thumbnail, long lastModified) argument
146 removeUri(Uri uri) argument
162 removeKey(Uri uri, Point size) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
H A DClipStorage.java219 public void write(Uri uri) throws IOException { argument
220 mOut.write(uri.toString().getBytes());
266 for (Uri uri: mUris) {
267 assert(uri != null);
268 writer.write(uri);
H A DRuntimeDocumentClipper.java77 Uri uri = item.getUri();
78 if (isDocumentUri(uri)) {
87 private boolean isDocumentUri(@Nullable Uri uri) { argument
88 return uri != null && DocumentsContract.isDocumentUri(mContext, uri);
140 for (Uri uri : uris) {
141 DocumentInfo.addMimeTypes(resolver, uri, clipTypes);
142 clipItems.add(new ClipData.Item(uri));
168 for (Uri uri : uris) {
170 DocumentInfo.addMimeTypes(resolver, uri, clipType
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
H A DInspectorController.java125 public void loadInfo(Uri uri) { argument
126 mLoader.loadDocInfo(uri, this::updateView);
189 public void showInProvider(Uri uri) { argument
192 intent.setPackage(mProviders.getPackageName(uri.getAuthority()));
194 intent.setData(uri);
220 * @param uri - A content uri to query metadata from.
224 void loadDocInfo(Uri uri, Consumer<DocumentInfo> callback); argument
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
H A DLastAccessedProvider.java140 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
142 if (sMatcher.match(uri) != URI_LAST_ACCESSED) {
143 throw new UnsupportedOperationException("Unsupported Uri " + uri);
147 final String packageName = uri.getPathSegments().get(1);
153 public String getType(Uri uri) { argument
158 public Uri insert(Uri uri, ContentValues values) { argument
159 if (sMatcher.match(uri) != URI_LAST_ACCESSED) {
160 throw new UnsupportedOperationException("Unsupported Uri " + uri);
168 final String packageName = uri.getPathSegments().get(1);
175 return uri;
179 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
184 delete(Uri uri, String selection, String[] selectionArgs) argument
[all...]

Completed in 475 milliseconds

<<11121314151617181920>>