Home
last modified time | relevance | path

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

12

/packages/apps/Calendar/src/com/android/calendar/
DEventInfoActivity.kt85 val pathSegments = data.getPathSegments() in onCreate() constant
86 val size: Int = pathSegments.size in onCreate()
87 if (size > 2 && "EventTime".equals(pathSegments[2])) { in onCreate()
90 mEventId = pathSegments[1].toLong() in onCreate()
92 mStartMillis = pathSegments[3].toLong() in onCreate()
93 mEndMillis = pathSegments[4].toLong() 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/modules/AppSearch/service/java/com/android/server/appsearch/transformer/
DPersonEnterpriseTransformer.java167 List<String> pathSegments = Uri.parse(lookupUri).getPathSegments(); in getCorpLookupUri() local
168 if (pathSegments.size() < 3) { in getCorpLookupUri()
171 if (pathSegments.size() > 3) { in getCorpLookupUri()
173 long contactId = Long.parseLong(pathSegments.get(3)); in getCorpLookupUri()
174 return getCorpLookupUriFromLookupKey(pathSegments.get(2), contactId); in getCorpLookupUri()
179 return getCorpLookupUriFromLookupKey(pathSegments.get(2)); in getCorpLookupUri()
/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/providers/MediaProvider/photopicker/src/com/android/photopicker/data/
DDataServiceImpl.kt358 uri?.pathSegments?.size == in <lambda>()
359 (2 + ALBUM_CHANGE_NOTIFICATION_URI.pathSegments.size) in <lambda>()
361 val albumAuthority = uri.pathSegments[uri.pathSegments.size - 2] ?: "" in <lambda>()
362 val albumID = uri.pathSegments[uri.pathSegments.size - 1] ?: "" in <lambda>()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DTestMediaProvider.kt114 val pathSegments: MutableList<String> = uri.getPathSegments() in query() constant
115 if (pathSegments.size == 4 && pathSegments[2].equals("album")) { in query()
117 return getAlbumMedia(pathSegments[3]) in query()
DTestNotificationServiceImpl.kt61 uri.pathSegments.forEach { in <lambda>()
/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/Contacts/src/com/android/contacts/sdn/
DSdnProvider.kt94 CONTACT_LOOKUP -> handleLookup(projection, uri.pathSegments[2]) in <lambda>()
96 handleLookup(projection, uri.pathSegments[2], uri.pathSegments[3]) in <lambda>()
97 PHONE_LOOKUP -> handlePhoneLookup(projection, uri.pathSegments[1]) in <lambda>()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DExtraSettingsUtil.java131 List<String> pathSegments = uri.getPathSegments(); in getCompleteUri() local
132 if (pathSegments != null && !pathSegments.isEmpty()) { in getCompleteUri()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/testutils/
DTestQCProvider.java71 List<String> pathSegments = uri.getPathSegments(); in onBind() local
72 String key = pathSegments.get(0); in onBind()
/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.kt154 val pathSegments = mEventUri?.getPathSegments() in updateLoadedDays() constant
155 val size: Int = pathSegments?.size as Int in updateLoadedDays()
159 val first: Long = (pathSegments[size - 2])?.toLong() as Long in updateLoadedDays()
160 val last: Long = (pathSegments[size - 1])?.toLong() as Long 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/modules/ConfigInfrastructure/framework/java/android/provider/
DDeviceConfig.java1630 List<String> pathSegments = uri.getPathSegments(); in handleChange() local
1632 final String namespace = pathSegments.get(1); in handleChange()
1634 if (pathSegments.size() > 2) { in handleChange()
1635 String[] keys = new String[pathSegments.size() - 2]; in handleChange()
1636 for (int i = 2; i < pathSegments.size(); ++i) { in handleChange()
1637 keys[i - 2] = pathSegments.get(i); in handleChange()
/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.java1109 final List<String> pathSegments = lookupUri.getPathSegments(); in shareSelectedContacts() local
1110 if (pathSegments.size() < 2) { in shareSelectedContacts()
1113 final String lookupKey = pathSegments.get(pathSegments.size() - 2); in shareSelectedContacts()
/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/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java3905 final List<String> pathSegments = uri.getPathSegments(); in deleteInTransaction() local
3906 final int segmentCount = pathSegments.size(); in deleteInTransaction()
3911 final String lookupKey = pathSegments.get(2); in deleteInTransaction()
3919 final List<String> pathSegments = uri.getPathSegments(); in deleteInTransaction() local
3920 final String lookupKey = pathSegments.get(2); in deleteInTransaction()
4397 final List<String> pathSegments = uri.getPathSegments(); in updateInTransaction() local
4398 final int segmentCount = pathSegments.size(); in updateInTransaction()
4403 final String lookupKey = pathSegments.get(2); in updateInTransaction()
6259 List<String> pathSegments = uri.getPathSegments(); in queryLocal() local
6260 int segmentCount = pathSegments.size(); in queryLocal()
[all …]
DCallLogProvider.java510 List<String> pathSegments = uri.getPathSegments(); in queryInternal() local
511 String phoneNumber = pathSegments.size() >= 2 ? pathSegments.get(2) : null; in queryInternal()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java1489 final String[] pathSegments = sanitizePath(path);
1490 if (pathSegments.length == 0) {
1494 Arrays.copyOfRange(pathSegments, 1, pathSegments.length));
/packages/apps/Car/DebuggingRestrictionController/libs/
Dokhttp-3.12.1.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/proguard/ okhttp3/ ...
Dhttpclient-4.5.12.jarMETA-INF/MANIFEST.MF META-INF/ org/ org/apache/ org/ ...
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/
DFledgeE2ETest.java4587 String[] pathSegments = requestPath.split("/"); in getMockWebServer() local
4588 String customAudienceId = pathSegments[pathSegments.length - 1]; in getMockWebServer()

12