Home
last modified time | relevance | path

Searched refs:getPathSegments (Results 1 – 25 of 34) 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.java133 final List<String> segments = contentUri.getPathSegments(); in removeId()
DUriMatcher.java223 final List<String> pathSegments = 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.java249 assertEquals("a a", uri.getPathSegments().get(0)); in testPathSegmentDecoding()
250 assertEquals("b b", uri.getPathSegments().get(1)); in testPathSegmentDecoding()
261 assertEquals(2, appended.getPathSegments().size()); in testSms()
262 assertEquals("conversations", appended.getPathSegments().get(0)); in testSms()
263 assertEquals("addr=555-1212", appended.getPathSegments().get(1)); in testSms()
339 assertEquals(0, uri.getPathSegments().size()); in testEmptyPath()
346 assertEquals(2, uri.getPathSegments().size()); in testPathOperations()
352 assertEquals(3, uri.getPathSegments().size()); in testPathOperations()
358 assertEquals(4, uri.getPathSegments().size()); in testPathOperations()
364 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/packages/SystemUI/src/com/android/keyguard/clock/
DClockOptionsProvider.java84 List<String> segments = uri.getPathSegments(); in getType()
130 List<String> segments = uri.getPathSegments(); in openFile()
/frameworks/base/core/java/android/net/
DUri.java340 public abstract List<String> getPathSegments(); in getPathSegments() method in Uri
638 public List<String> getPathSegments() { in getPathSegments() method in Uri.StringUri
639 return getPathPart().getPathSegments(); in getPathSegments()
955 public List<String> getPathSegments() { in getPathSegments() method in Uri.OpaqueUri
1080 List<String> segments = getPathSegments(); in getLastPathSegment()
1315 public List<String> getPathSegments() { in getPathSegments() method in Uri.HierarchicalUri
1316 return this.path.getPathSegments(); in getPathSegments()
2191 PathSegments getPathSegments() { in getPathSegments() method in Uri.PathPart
2433 List<String> seg = getPathSegments(); in isPathPrefixMatch()
2434 List<String> prefixSeg = prefix.getPathSegments(); in isPathPrefixMatch()
/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()
DDeviceConfig.java1182 List<String> pathSegments = uri.getPathSegments(); in handleChange()
/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/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/core/java/android/service/notification/
DZenModeConfig.java1449 if (conditionId.getPathSegments().size() < 2 in tryParseCountdownConditionId()
1450 || !COUNTDOWN_PATH.equals(conditionId.getPathSegments().get(0))) return 0; in tryParseCountdownConditionId()
1452 return Long.parseLong(conditionId.getPathSegments().get(1)); in tryParseCountdownConditionId()
1471 if (conditionId.getPathSegments().size() < 4 in isValidCountdownToAlarmConditionId()
1472 || !IS_ALARM_PATH.equals(conditionId.getPathSegments().get(2))) { in isValidCountdownToAlarmConditionId()
1476 return Boolean.parseBoolean(conditionId.getPathSegments().get(3)); in isValidCountdownToAlarmConditionId()
1537 && conditionId.getPathSegments().size() == 1 in tryParseScheduleConditionId()
1538 && ZenModeConfig.SCHEDULE_PATH.equals(conditionId.getPathSegments().get(0)); in tryParseScheduleConditionId()
1645 && conditionId.getPathSegments().size() == 1 in tryParseEventConditionId()
1646 && EVENT_PATH.equals(conditionId.getPathSegments().get(0)); in tryParseEventConditionId()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageIconProvider.java130 List<String> pathSegments = uri.getPathSegments(); in getPackageNameFromUri()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java434 final List<String> pathSegments = uri.getPathSegments(); in getCompleteUri()
592 final List<String> pathSegments = uri.getPathSegments(); in getMethodAndKey()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayActorEnforcer.java56 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/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabProvider.java523 List<String> pathSegment = uri.getPathSegments(); in query()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataProfileManagerTest.java431 List<String> segA = uriA.getPathSegments(); in isPathPrefixMatch()
432 List<String> segB = uriB.getPathSegments(); in isPathPrefixMatch()
/frameworks/base/media/java/android/media/tv/
DTvContract.java701 List<String> pathSegments = uri.getPathSegments(); in isTwoSegmentUriStartingWith()
/frameworks/base/services/core/java/com/android/server/content/
DContentService.java1737 return uri.getPathSegments().get(index - 1); in getUriSegment()
1748 return uri.getPathSegments().size() + 1; in countUriSegments()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2469 if (uri.getPathSegments().size() > 0) {
2470 String table = uri.getPathSegments().get(0);
2574 final int segmentSize = uri.getPathSegments().size();
2603 name = uri.getPathSegments().get(1);

12