Home
last modified time | relevance | path

Searched refs:dataUri (Results 1 – 25 of 31) 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.java671 Uri dataUri = resolver.insert(insertUri, values); in createName() local
672 return ContentUris.parseId(dataUri); in createName()
687 Uri dataUri = resolver.insert(insertUri, values); in createPhone() local
688 return ContentUris.parseId(dataUri); in createPhone()
702 Uri dataUri = resolver.insert(insertUri, values); in createEmail() local
703 return ContentUris.parseId(dataUri); in createEmail()
711 Uri dataUri = resolver.insert(StatusUpdates.CONTENT_URI, values); in createStatus() local
712 return ContentUris.parseId(dataUri); in createStatus()
781 Uri dataUri = resolver.insert(insertUri, values); in createGroupMembership() local
782 return ContentUris.parseId(dataUri); in createGroupMembership()
DContactsProvider2Test.java1030 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri() local
1032 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1036 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
1037 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1040 dataUri = Uri.withAppendedPath(Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, in testDataDirectoryWithLookupUri()
1042 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
1045 private void assertDataRows(Uri dataUri, ContentValues values) { in assertDataRows() argument
1046 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows()
1186 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert() local
1187 long dataId = ContentUris.parseId(dataUri); in testDataInsert()
[all …]
/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.java535 public void onPickDataUri(Uri dataUri, boolean isVideoCall, int callInitiationType) { in onPickDataUri() argument
536 returnPickerResult(dataUri); in onPickDataUri()
601 public void onPickPostalAddressAction(Uri dataUri) { in onPickPostalAddressAction() argument
602 returnPickerResult(dataUri); in onPickPostalAddressAction()
609 public void onPickEmailAddressAction(Uri dataUri) { in onPickEmailAddressAction() argument
610 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/TvSettings/Settings/src/com/android/tv/settings/basic/
DBasicModeFeatureProviderImplX.java78 Uri dataUri = Uri.parse(basicModeExitData); in startBasicModeExitActivity() local
79 Intent intent = new Intent().setComponent(componentName).setData(dataUri); in startBasicModeExitActivity()
/packages/apps/DeskClock/src/com/android/deskclock/
DHandleApiCalls.kt294 val dataUri = intent.data in handleDismissTimer() constant
295 if (dataUri != null) { in handleDismissTimer()
296 val selectedTimer = getSelectedTimer(dataUri) in handleDismissTimer()
326 private fun getSelectedTimer(dataUri: Uri): Timer? { in getSelectedTimer()
328 val timerId = ContentUris.parseId(dataUri).toInt() 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/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/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/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/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/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java416 private void launchActivityWithUri(Uri dataUri) { in launchActivityWithUri() argument
418 intent.setData(dataUri); in launchActivityWithUri()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DConversation.java576 public Message setData(@NonNull String dataMimeType, @NonNull Uri dataUri) { in setData() argument
578 mDataUri = dataUri; in setData()

12