Home
last modified time | relevance | path

Searched refs:pathSegments (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Calendar/src/com/android/calendar/
DEventInfoActivity.java87 List<String> pathSegments = data.getPathSegments(); in onCreate() local
88 int size = pathSegments.size(); in onCreate()
89 if (size > 2 && "EventTime".equals(pathSegments.get(2))) { in onCreate()
92 mEventId = Long.parseLong(pathSegments.get(1)); in onCreate()
94 mStartMillis = Long.parseLong(pathSegments.get(3)); in onCreate()
95 mEndMillis = Long.parseLong(pathSegments.get(4)); in onCreate()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DTestContentProvider.java99 List<String> pathSegments = uri.getPathSegments(); in call() local
102 if ((pathSegments == null) || (pathSegments.size() != 2)) { in call()
106 if (!methodName.equals(pathSegments.get(0))) { in call()
109 String key = pathSegments.get(1); in call()
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProvider.java155 List<String> pathSegments = uri.getPathSegments(); in checkUri() local
163 || pathSegments == null in checkUri()
164 || pathSegments.size() != 2 in checkUri()
165 || !LICENSE_FILE_NAME.equals(pathSegments.get(1))) { in checkUri()
172 context.getPackageManager().getModuleInfo(pathSegments.get(0), 0 /* flags */); in checkUri()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
DLogUtils.java96 List<String> pathSegments = uri.getPathSegments(); in contentUriToString() local
106 final String account = pathSegments.get(0); in contentUriToString()
109 for (int i = 1; i < pathSegments.size(); i++) { in contentUriToString()
110 builder.appendPath(pathSegments.get(i)); in contentUriToString()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DCandidateSuggestion.java292 final List<String> pathSegments = uri.getPathSegments(); in getMethodFromUri() local
293 if ((pathSegments == null) || pathSegments.isEmpty()) { in getMethodFromUri()
296 return pathSegments.get(0); in getMethodFromUri()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/contact/
DContactDetailsViewModel.java140 List<String> pathSegments = refreshedContactLookupUri.getPathSegments(); in onContactListChanged()
141 String lookupKey = pathSegments.get(pathSegments.size() - 2); in onContactListChanged()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsUtil.java135 List<String> pathSegments = uri.getPathSegments(); in getCompleteUri() local
136 if (pathSegments != null && !pathSegments.isEmpty()) { in getCompleteUri()
/packages/apps/Dialer/java/com/android/dialer/phonelookup/database/
DPhoneLookupHistoryContentProvider.java320 List<String> pathSegments = uri.getPathSegments(); in uriType() local
321 Assert.checkArgument(pathSegments.size() == 1); in uriType()
322 Assert.checkArgument(pathSegments.get(0).equals(PhoneLookupHistory.TABLE)); in uriType()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.java180 List<String> pathSegments = mEventUri.getPathSegments(); in updateLoadedDays() local
181 int size = pathSegments.size(); in updateLoadedDays()
185 long first = Long.parseLong(pathSegments.get(size - 2)); in updateLoadedDays()
186 long last = Long.parseLong(pathSegments.get(size - 1)); in updateLoadedDays()
/packages/apps/Contacts/src/com/android/contacts/detail/
DContactDisplayUtils.java296 List<String> pathSegments = uri.getPathSegments(); in getDrawable() local
297 if (pathSegments.size() != 1) { in getDrawable()
304 final String name = pathSegments.get(0); in getDrawable()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java357 List<String> pathSegments = mSelectedContactUri.getPathSegments(); in parseSelectedContactUri() local
358 mSelectedContactLookupKey = Uri.encode(pathSegments.get(2)); in parseSelectedContactUri()
359 if (pathSegments.size() == 4) { in parseSelectedContactUri()
DDefaultContactBrowseListFragment.java1106 final List<String> pathSegments = lookupUri.getPathSegments(); in shareSelectedContacts() local
1107 if (pathSegments.size() < 2) { in shareSelectedContacts()
1110 final String lookupKey = pathSegments.get(pathSegments.size() - 2); in shareSelectedContacts()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java3676 final List<String> pathSegments = uri.getPathSegments(); in deleteInTransaction() local
3677 final int segmentCount = pathSegments.size(); in deleteInTransaction()
3682 final String lookupKey = pathSegments.get(2); in deleteInTransaction()
3690 final List<String> pathSegments = uri.getPathSegments(); in deleteInTransaction() local
3691 final String lookupKey = pathSegments.get(2); in deleteInTransaction()
4156 final List<String> pathSegments = uri.getPathSegments(); in updateInTransaction() local
4157 final int segmentCount = pathSegments.size(); in updateInTransaction()
4162 final String lookupKey = pathSegments.get(2); in updateInTransaction()
5814 List<String> pathSegments = uri.getPathSegments(); in queryLocal() local
5815 int segmentCount = pathSegments.size(); in queryLocal()
[all …]
DCallLogProvider.java429 List<String> pathSegments = uri.getPathSegments(); in queryInternal() local
430 String phoneNumber = pathSegments.size() >= 2 ? pathSegments.get(2) : null; in queryInternal()
/packages/apps/TV/src/com/android/tv/util/
DUtils.java294 List<String> pathSegments = uri.getPathSegments(); in isTwoSegmentUriStartingWith() local
295 return pathSegments.size() == 2 && pathSegment.equals(pathSegments.get(0)); in isTwoSegmentUriStartingWith()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1367 final String[] pathSegments = sanitizePath(path);
1368 if (pathSegments.length == 0) {
1372 Arrays.copyOfRange(pathSegments, 1, pathSegments.length));
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java3716 final List<String> pathSegments = titleUri.getPathSegments(); in getTitleFromResourceUri() local
3717 if (pathSegments.size() != 2) { in getTitleFromResourceUri()
3722 final String type = pathSegments.get(0); in getTitleFromResourceUri()
3738 final String resourceIdentifier = pathSegments.get(1); in getTitleFromResourceUri()