Home
last modified time | relevance | path

Searched refs:dataUri (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/TV/src/com/android/tv/dvr/
DDvrManager.java576 for (Uri dataUri : dataUris) { in removeRecordedPrograms()
577 removeRecordedData(dataUri); in removeRecordedPrograms()
845 private void removeRecordedData(Uri dataUri) { in removeRecordedData() argument
847 if (isFile(dataUri)) { in removeRecordedData()
848 File recordedProgramPath = new File(dataUri.getPath()); in removeRecordedData()
857 + dataUri); in removeRecordedData()
860 Log.w(TAG, "Unable to delete recording data at " + dataUri); in removeRecordedData()
865 Log.w(TAG, "Unable to delete recording data at " + dataUri, e); in removeRecordedData()
875 public static boolean isFile(Uri dataUri) { in isFile() argument
876 return dataUri != null in isFile()
[all …]
DDvrStorageStatusManager.java154 Uri dataUri = Uri.parse(dataUriString); in getDeleteOps() local
156 || dataUri == null in getDeleteOps()
157 || dataUri.getPath() == null in getDeleteOps()
158 || !ContentResolver.SCHEME_FILE.equals(dataUri.getScheme())) { in getDeleteOps()
161 File recordedProgramDir = new File(dataUri.getPath()); in getDeleteOps()
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/
DTunerStorageCleanUpService.java116 Uri dataUri = Uri.parse(dataUriString); in getRecordedProgramsDirs() local
118 || dataUri == null in getRecordedProgramsDirs()
119 || dataUri.getPath() == null in getRecordedProgramsDirs()
120 || !ContentResolver.SCHEME_FILE.equals(dataUri.getScheme())) { in getRecordedProgramsDirs()
123 File recordedProgramDir = new File(dataUri.getPath()); in getRecordedProgramsDirs()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetClickHandler.java37 private boolean isValidDataUri(Uri dataUri) { in isValidDataUri() argument
38 if (dataUri == null) return false; in isValidDataUri()
41 .openAssetFileDescriptor(dataUri, "r"); in isValidDataUri()
45 Log.w(TAG, "cannot open uri: " + dataUri, e); in isValidDataUri()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java76 String dataUri = intent.getDataString(); in addRowsForIntent() local
77 if (dataUri != null) { in addRowsForIntent()
78 addRowsForQuery(Uri.parse(dataUri)); in addRowsForIntent()
105 private void addRowsForQuery(Uri dataUri) { in addRowsForQuery() argument
106 Cursor cursor = getContentResolver().query(dataUri, null, null, null, null); in addRowsForQuery()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java663 Uri dataUri = resolver.insert(insertUri, values); in createName() local
664 return ContentUris.parseId(dataUri); in createName()
679 Uri dataUri = resolver.insert(insertUri, values); in createPhone() local
680 return ContentUris.parseId(dataUri); in createPhone()
694 Uri dataUri = resolver.insert(insertUri, values); in createEmail() local
695 return ContentUris.parseId(dataUri); in createEmail()
703 Uri dataUri = resolver.insert(StatusUpdates.CONTENT_URI, values); in createStatus() local
704 return ContentUris.parseId(dataUri); in createStatus()
773 Uri dataUri = resolver.insert(insertUri, values); in createGroupMembership() local
774 return ContentUris.parseId(dataUri); in createGroupMembership()
DContactsProvider2Test.java1037 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri() local
1039 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1043 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1044 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1047 dataUri = Uri.withAppendedPath(Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, in testDataDirectoryWithLookupUri()
1049 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1052 private void assertDataRows(Uri dataUri, ContentValues values) { in assertDataRows() argument
1053 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows()
1193 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert() local
1194 long dataId = ContentUris.parseId(dataUri); in testDataInsert()
[all …]
/packages/apps/Car/libs/car-settings-lib/src/com/android/car/settingslib/util/
DProfileNameSaver.java127 Uri dataUri = ContactsContract.Profile.CONTENT_RAW_CONTACTS_URI.buildUpon() in getProfileItem() local
133 dataUri, in getProfileItem()
142 Log.e(TAG, "Received null from query to the first profile item at " + dataUri); in getProfileItem()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrDetailsFragment.java235 private boolean isDataUriAccessible(Uri dataUri) { in isDataUriAccessible() argument
236 if (dataUri == null || dataUri.getPath() == null) { in isDataUriAccessible()
240 File recordedProgramPath = new File(dataUri.getPath()); in isDataUriAccessible()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactSelectionActivity.java532 public void onPickDataUri(Uri dataUri, boolean isVideoCall, int callInitiationType) { in onPickDataUri() argument
533 returnPickerResult(dataUri); in onPickDataUri()
598 public void onPickPostalAddressAction(Uri dataUri) { in onPickPostalAddressAction() argument
599 returnPickerResult(dataUri); in onPickPostalAddressAction()
606 public void onPickEmailAddressAction(Uri dataUri) { in onPickEmailAddressAction() argument
607 returnPickerResult(dataUri); in onPickEmailAddressAction()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactBroadcastReceiver.java35 final Uri dataUri = intent.getData(); in onReceive() local
39 newIntent.setData(dataUri); in onReceive()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java864 Uri dataUri = null; in persistData() local
920 dataUri = part.getDataUri(); in persistData()
921 if ((dataUri == null) || (dataUri.equals(uri))) { in persistData()
927 if (preOpenedFiles != null && preOpenedFiles.containsKey(dataUri)) { in persistData()
928 is = preOpenedFiles.get(dataUri); in persistData()
931 is = mContentResolver.openInputStream(dataUri); in persistData()
934 throw new MmsException("Failed to create input stream on " + dataUri); in persistData()
960 dataUri = uri; in persistData()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.java390 final Uri dataUri = intent.getData(); in handleDismissTimer() local
391 if (dataUri != null) { in handleDismissTimer()
392 final Timer selectedTimer = getSelectedTimer(dataUri); in handleDismissTimer()
422 private Timer getSelectedTimer(Uri dataUri) { in getSelectedTimer() argument
424 final int timerId = (int) ContentUris.parseId(dataUri); in getSelectedTimer()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
DTestSyncAdapter.java80 final Uri dataUri = Data.CONTENT_URI.buildUpon() in onPerformSync() local
83 ops.add(ContentProviderOperation.newInsert(dataUri) in onPerformSync()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java1032 Uri dataUri = findFirstDataRow(rawContactId, StructuredName.CONTENT_ITEM_TYPE); in updatePeople() local
1033 if (dataUri != null) { in updatePeople()
1034 mContactsProvider.updateInTransaction(dataUri, mValues2, null, null); in updatePeople()
1042 Uri dataUri = findFirstDataRow(rawContactId, Note.CONTENT_ITEM_TYPE); in updatePeople() local
1043 if (dataUri != null) { in updatePeople()
1044 mContactsProvider.updateInTransaction(dataUri, mValues3, null, null); in updatePeople()
1127 Uri dataUri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in updatePhoto() local
1128 dataId = ContentUris.parseId(dataUri); in updatePhoto()
1131 Uri dataUri = ContentUris.withAppendedId(Data.CONTENT_URI, dataId); in updatePhoto() local
1132 count = mContactsProvider.updateInTransaction(dataUri, mValues, null, null); in updatePhoto()
/packages/apps/TV/src/com/android/tv/dvr/data/
DRecordedProgram.java297 public Builder setDataUri(@Nullable String dataUri) { in setDataUri() argument
298 return setDataUri(toUri(dataUri)); in setDataUri()
301 public abstract Builder setDataUri(Uri dataUri); in setDataUri() argument
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java157 Uri dataUri = Uri.withAppendedPath(mAggregateUri, Data.CONTENT_DIRECTORY); in loadData() local
158 Cursor cursor = getContext().getContentResolver().query(dataUri, in loadData()
DShortcutIntentBuilder.java146 public void createPhoneNumberShortcutIntent(Uri dataUri, String shortcutAction) { in createPhoneNumberShortcutIntent() argument
147 new PhoneNumberLoadingAsyncTask(dataUri, shortcutAction).execute(); in createPhoneNumberShortcutIntent()
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactLoader.java133 final Uri dataUri = result.isUserProfile in loadInBackground() local
137 dataUri, in loadInBackground()
/packages/apps/Contacts/src/com/android/contacts/list/
DOnEmailAddressPickerActionListener.java28 void onPickEmailAddressAction(Uri dataUri); in onPickEmailAddressAction() argument
DOnPostalAddressPickerActionListener.java28 void onPickPostalAddressAction(Uri dataUri); in onPickPostalAddressAction() argument
DOnPhoneNumberPickerActionListener.java31 void onPickDataUri(Uri dataUri, boolean isVideoCall, int callInitiationType); in onPickDataUri() argument
/packages/apps/Dialer/java/com/android/contacts/common/list/
DOnPhoneNumberPickerActionListener.java26 void onPickDataUri(Uri dataUri, boolean isVideoCall, CallSpecificAppData callSpecificAppData); in onPickDataUri() argument
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java414 final Uri dataUri = Uri.withAppendedPath(rawContactUri, in fetchContactIdAndLookupFromRawContactUri() local
416 mContactsProvider.expectQuery(dataUri) in fetchContactIdAndLookupFromRawContactUri()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java1402 Uri dataUri, boolean isVideoCall, CallSpecificAppData callSpecificAppData) { in onPickDataUri() argument
1405 DialtactsActivity.this, dataUri, isVideoCall, callSpecificAppData); in onPickDataUri()

12