Searched defs:uri (Results 76 - 100 of 505) sorted by relevance

1234567891011>>

/packages/apps/Settings/src/com/android/settings/notification/
H A DNotificationSoundPreference.java52 Uri uri = data.getParcelableExtra(RingtoneManager.EXTRA_RINGTONE_PICKED_URI);
53 setRingtone(uri);
54 callChangeListener(uri);
60 private void updateRingtoneName(final Uri uri) { argument
64 if (uri == null) {
66 } else if (RingtoneManager.isDefault(uri)) {
68 } else if(ContentResolver.SCHEME_ANDROID_RESOURCE.equals(uri.getScheme())) {
71 return Ringtone.getTitle(getContext(), uri, false /* followSettingsUri */,
/packages/apps/TV/src/com/android/tv/util/
H A DTvUriMatcher.java77 @TvProviderUriMatchCode public static int match(Uri uri) { argument
78 return URI_MATCHER.match(uri);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DProfileAwareUriMatcher.java111 * @param uri The URI to examine.
114 public boolean mapsToProfile(Uri uri) { argument
115 int match = match(uri);
120 long id = Long.parseLong(uri.getPathSegments().get(idSegment));
126 if (lookupKeySegment >= uri.getPathSegments().size()) {
129 String lookupKey = uri.getPathSegments().get(lookupKeySegment);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DContactsPermissions.java83 public static boolean hasCallerUriPermission(Context context, Uri uri, int modeFlags) { argument
88 ok = context.checkCallingUriPermission(uri, modeFlags)
93 + " uri=" + uri
H A DTypedUriMatcherImpl.java53 public T match(Uri uri) { argument
54 int match = mUriMatcher.match(uri);
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
H A DTestUtil.java44 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) { argument
46 return uri;
48 return uri.buildUpon()
54 public static Uri maybeAddAccountWithDataSetQueryParameters(Uri uri, argument
57 return uri;
59 return uri.buildUpon()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DNullContentProvider.java31 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
37 public String getType(Uri uri) { argument
42 public Uri insert(Uri uri, ContentValues values) { argument
47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
52 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DProviderUtil.java82 * @param uri The uri the provider change applies to
86 public static void notifyIfNotDefaultSmsApp(final Uri uri, final String callingPackage, argument
106 if (uri != null) {
107 intent.setData(uri);
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
H A DServiceStateProviderTest.java117 public void notifyChange(Uri uri, ContentObserver observer, boolean syncToNetwork) {
153 // Verify that when calling query with no subId in the uri the default ServiceState is
184 private void verifyServiceStateForSubId(Uri uri, ServiceState ss) { argument
185 Cursor cursor = mContentResolver.query(uri, testProjection, "",
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
H A DGetCapabilitiesTask.java47 GetCapabilitiesTask(Backend backend, Uri uri, long timeout) { argument
48 mUri = uri;
53 private boolean isDeviceOnline(Uri uri) { argument
55 InetSocketAddress a = new InetSocketAddress(uri.getHost(), uri.getPort());
76 Log.d(TAG, "isDeviceOnline uri=" + mUri + " online=" + online +
95 Log.d(TAG, "callNativeGetCapabilities uri=" + mUri + " status=" + status +
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
H A DMmsFileProvider.java54 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
61 public Uri insert(Uri uri, ContentValues values) { argument
67 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
73 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
79 public String getType(Uri uri) { argument
85 public ParcelFileDescriptor openFile(Uri uri, String fileMode) throws FileNotFoundException { argument
86 String idStr = uri.getLastPathSegment();
88 throw new FileNotFoundException("Unable to extract message handle from: " + uri);
94 throw new FileNotFoundException("Unable to extract message handle from: " + uri);
107 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, Strin argument
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppSendFileInfo.java101 Context context, Uri uri, String type, boolean fromExternal) {
103 String scheme = uri.getScheme();
111 contentType = contentResolver.getType(uri);
114 metadataCursor = contentResolver.query(uri, new String[] {
121 Log.e(TAG, "generateFileInfo: Permission error, could not access URI: " + uri);
140 fileName = uri.getLastPathSegment();
143 if (uri.getPath() == null) {
144 Log.e(TAG, "Invalid URI path: " + uri);
147 if (fromExternal && !BluetoothOppUtility.isInExternalStorageDir(uri)) {
148 EventLog.writeEvent(0x534e4554, "35310991", -1, uri
100 generateFileInfo( Context context, Uri uri, String type, boolean fromExternal) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/app/
H A DMediaSaver.java53 * @param uri The final content Uri of the saved media.
55 public void onMediaSaved(Uri uri); argument
/packages/apps/Camera2/src/com/android/camera/data/
H A DFilmstripItemList.java41 public UriWrapper(Uri uri) { argument
42 mUri = uri;
80 public FilmstripItem get(Uri uri) { argument
81 return mUriMap.get(uri);
115 * O(n) but has a fast exit path for when the uri is not contained in the
118 public int indexOf(Uri uri) { argument
119 if (!mUriMap.containsKey(uri)) {
122 return mList.indexOf(new UriWrapper(uri));
H A DFixedLastProxyAdapter.java80 public int findByContentUri(Uri uri) { argument
81 return mAdapter.findByContentUri(uri);
H A DLocalFilmstripDataAdapter.java84 * @param uri The {@link Uri} of the data to refresh.
86 public void refresh(Uri uri); argument
91 * @param uri The content Uri of the {@link FilmstripItem}.
94 public int findByContentUri(Uri uri); argument
H A DVideoItemFactory.java60 public VideoItem get(Uri uri) { argument
62 Cursor c = mContext.getContentResolver().query(uri, VideoDataQuery.QUERY_PROJECTION, null,
81 public List<VideoItem> queryAll(Uri uri, long lastId) { argument
83 .forCameraPath(mContentResolver, uri, VideoDataQuery.QUERY_PROJECTION, lastId,
88 public VideoItem queryContentUri(Uri uri) { argument
90 List<VideoItem> videos = queryAll(uri,
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DImageProcessorProxyListener.java185 public void onResultUri(TaskImageContainer.TaskInfo job, Uri uri) { argument
192 l.onResultUri(job, uri);
/packages/apps/Camera2/src/com/android/camera/session/
H A DSessionNotifier.java28 public void notifyTaskQueued(final Uri uri); argument
31 public void notifyTaskDone(final Uri uri); argument
34 public void notifyTaskFailed(final Uri uri, final int failureMessageId, argument
38 public void notifyTaskCanceled(final Uri uri); argument
41 public void notifyTaskProgress(final Uri uri, final int progressPercent); argument
44 public void notifyTaskProgressText(final Uri uri, final int messageId); argument
47 public void notifySessionUpdated(final Uri uri); argument
/packages/apps/Camera2/tests/src/com/android/camera/functional/
H A DVideoCaptureIntentTest.java96 Uri uri = Uri.fromFile(mFile);
97 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
104 verify(getActivity(), uri);
135 Uri uri = Uri.fromFile(mFile);
136 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
145 verify(getActivity(), uri);
157 Uri uri = Uri.fromFile(mFile);
158 mIntent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
166 int duration = verify(getActivity(), uri);
179 Uri uri
205 verify(CameraActivity activity, Uri uri) argument
[all...]
/packages/apps/Car/Dialer/src/com/android/car/dialer/
H A DContactResultViewHolder.java127 private static Bitmap getContactBitmapFromUri(Context context, Uri uri) { argument
129 InputStream input = context.getContentResolver().openInputStream(uri);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DAccountImageChangeObserver.java64 public void addUriToNotifyList(Uri uri) { argument
66 mUrisToNotify.add(uri);
80 for (Uri uri : mUrisToNotify) {
81 mContext.getContentResolver().notifyChange(uri, null);
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertInstallerMain.java123 private void startInstallActivity(String mimeType, Uri uri) { argument
125 mimeType = getContentResolver().getType(uri);
134 startWifiInstallActivity(mimeType, uri);
139 in = getContentResolver().openInputStream(uri);
160 private void startWifiInstallActivity(String mimeType, Uri uri) { argument
163 new BufferedInputStream(getContentResolver().openInputStream(uri))) {
165 intent.putExtra(WIFI_CONFIG_FILE, uri.toString());
/packages/apps/Contacts/src/com/android/contacts/
H A DCallUtil.java97 Uri uri = getCallUri(number);
99 ? getCallIntentForEmergencyNumber(uri) : getCallIntent(uri);
106 private static Intent getCallIntentForEmergencyNumber(Uri uri) { argument
107 return new Intent(Intent.ACTION_DIAL, uri);
114 public static Intent getCallIntent(Uri uri) { argument
115 return new Intent(Intent.ACTION_CALL, uri);
/packages/apps/Contacts/src/com/android/contacts/compat/
H A DTelephonyThreadsCompat.java108 Uri uri = uriBuilder.build();
111 context.getContentResolver(), uri, ID_PROJECTION, null, null, null);
124 Log.e(TAG, "getOrCreateThreadId failed with uri " + uri.toString());
131 private static Cursor query(ContentResolver resolver, Uri uri, String[] projection, argument
134 return resolver.query(uri, projection, selection, selectionArgs, sortOrder);

Completed in 7775 milliseconds

1234567891011>>