Home
last modified time | relevance | path

Searched refs:getPathSegments (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java230 final int length = uri.getPathSegments().size(); in delete()
235 final String base = uri.getPathSegments().get(0); in delete()
255 int length = uri.getPathSegments().size(); in getType()
257 String base = uri.getPathSegments().get(0); in getType()
277 int length = uri.getPathSegments().size(); in insert()
283 String base = uri.getPathSegments().get(0); in insert()
349 int length = uri.getPathSegments().size(); in query()
354 String base = uri.getPathSegments().get(0); in query()
368 whereClause.append("(_id = ").append(uri.getPathSegments().get(1)).append(")"); in query()
DContentUris.java134 final List<String> segments = contentUri.getPathSegments(); in removeId()
DUriMatcher.java224 final List<String> pathSegments = uri.getPathSegments();
DContentResolver.java2132 List<String> path = uri.getPathSegments();
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsUriHelperTest.java68 assertThat(uri1.getPathSegments().get(1)).isEqualTo("1234"); in testGetContentUri_multiplePackages()
69 assertThat(uri2.getPathSegments().get(1)).isEqualTo("5678"); in testGetContentUri_multiplePackages()
78 final String id1 = uri1.getPathSegments().get(0); in testGetContentUri_samePackageIdForSamePackageName()
79 final String id2 = uri2.getPathSegments().get(0); in testGetContentUri_samePackageIdForSamePackageName()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java258 assertEquals("a a", uri.getPathSegments().get(0)); in testPathSegmentDecoding()
259 assertEquals("b b", uri.getPathSegments().get(1)); in testPathSegmentDecoding()
270 assertEquals(2, appended.getPathSegments().size()); in testSms()
271 assertEquals("conversations", appended.getPathSegments().get(0)); in testSms()
272 assertEquals("addr=555-1212", appended.getPathSegments().get(1)); in testSms()
348 assertEquals(0, uri.getPathSegments().size()); in testEmptyPath()
355 assertEquals(2, uri.getPathSegments().size()); in testPathOperations()
361 assertEquals(3, uri.getPathSegments().size()); in testPathOperations()
367 assertEquals(4, uri.getPathSegments().size()); in testPathOperations()
373 assertEquals(2, first.getPathSegments().size()); in testPathOperations()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java121 qb.appendWhere(url.getPathSegments().get(1)); in query()
161 String segment = url.getPathSegments().get(1); in update()
/frameworks/base/core/java/android/net/
DUri.java341 public abstract List<String> getPathSegments(); in getPathSegments() method in Uri
639 public List<String> getPathSegments() { in getPathSegments() method in Uri.StringUri
640 return getPathPart().getPathSegments(); in getPathSegments()
955 public List<String> getPathSegments() { in getPathSegments() method in Uri.OpaqueUri
1080 List<String> segments = getPathSegments(); in getLastPathSegment()
1314 public List<String> getPathSegments() { in getPathSegments() method in Uri.HierarchicalUri
1315 return this.path.getPathSegments(); in getPathSegments()
2203 PathSegments getPathSegments() { in getPathSegments() method in Uri.PathPart
2428 List<String> seg = getPathSegments(); in isPathPrefixMatch()
2429 List<String> prefixSeg = prefix.getPathSegments(); in isPathPrefixMatch()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceClientPermissions.java105 return authority != null && authority.hasPermission(uri.getPathSegments()); in hasPermission()
112 authority.addPath(uri.getPathSegments()); in grantUri()
119 authority.removePath(uri.getPathSegments()); in revokeUri()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java1186 final List<String> paths = uri.getPathSegments(); in isDocumentUri()
1229 final List<String> paths = uri.getPathSegments(); in isTreeUri()
1235 final List<String> paths = uri.getPathSegments(); in isRootUri()
1257 final List<String> paths = rootUri.getPathSegments(); in getRootId()
1270 final List<String> paths = documentUri.getPathSegments(); in getDocumentId()
1285 final List<String> paths = documentUri.getPathSegments(); in getTreeDocumentId()
DContactsInternal.java95 final List<String> pathSegments = uri.getPathSegments(); in maybeStartManagedQuickContact()
DContactsContract.java2271 final List<String> pathSegments = enterpriseLookupUri.getPathSegments(); in createCorpLookupUriFromEnterpriseLookupUri()
/frameworks/base/services/core/java/com/android/server/textclassifier/
DIconsUriHelper.java114 final List<String> pathItems = uri.getPathSegments(); in getResourceInfo()
/frameworks/opt/photoviewer/sample/src/com/example/photoviewersample/
DSampleProvider.java152 List<String> pathSegments = uri.getPathSegments(); in openAssetFile()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java136 String sql = "SELECT _blob FROM data WHERE _id=" + url.getPathSegments().get(1); in openFile()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java130 List<String> pathSegments = uri.getPathSegments(); in getPackageNameFromUri()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayActorEnforcer.java55 List<String> actorPathSegments = actorUri.getPathSegments(); in getPackageNameForActor()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMmsQueryHelperTest.java166 List<String> segments = uri.getPathSegments(); in query()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java458 final List<String> pathSegments = uri.getPathSegments(); in getCompleteUri()
616 final List<String> pathSegments = uri.getPathSegments(); in getMethodAndKey()
/frameworks/base/core/java/android/service/notification/
DZenModeConfig.java2145 if (conditionId.getPathSegments().size() < 2 in tryParseCountdownConditionId()
2146 || !COUNTDOWN_PATH.equals(conditionId.getPathSegments().get(0))) return 0; in tryParseCountdownConditionId()
2148 return Long.parseLong(conditionId.getPathSegments().get(1)); in tryParseCountdownConditionId()
2167 if (conditionId.getPathSegments().size() < 4 in isValidCountdownToAlarmConditionId()
2168 || !IS_ALARM_PATH.equals(conditionId.getPathSegments().get(2))) { in isValidCountdownToAlarmConditionId()
2172 return Boolean.parseBoolean(conditionId.getPathSegments().get(3)); in isValidCountdownToAlarmConditionId()
2238 && conditionId.getPathSegments().size() == 1 in tryParseScheduleConditionId()
2239 && ZenModeConfig.SCHEDULE_PATH.equals(conditionId.getPathSegments().get(0)); in tryParseScheduleConditionId()
2351 && conditionId.getPathSegments().size() == 1 in tryParseEventConditionId()
2352 && EVENT_PATH.equals(conditionId.getPathSegments().get(0)); in tryParseEventConditionId()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabProvider.java523 List<String> pathSegment = uri.getPathSegments(); in query()
/frameworks/base/media/java/android/media/tv/
DTvContract.java703 List<String> pathSegments = uri.getPathSegments(); in isTwoSegmentUriStartingWith()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataProfileManagerTest.java816 List<String> segA = uriA.getPathSegments(); in isPathPrefixMatch()
817 List<String> segB = uriB.getPathSegments(); in isPathPrefixMatch()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1772 return uri.getPathSegments().get(index - 1); in getUriSegment()
1783 return uri.getPathSegments().size() + 1; in countUriSegments()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2708 if (uri.getPathSegments().size() > 0) {
2709 String table = uri.getPathSegments().get(0);
2802 final int segmentSize = uri.getPathSegments().size();
2830 name = uri.getPathSegments().get(1);

12