Home
last modified time | relevance | path

Searched refs:getPathSegments (Results 1 – 25 of 30) 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();
DContentResolver.java2072 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.java231 assertEquals("a a", uri.getPathSegments().get(0)); in testPathSegmentDecoding()
232 assertEquals("b b", uri.getPathSegments().get(1)); in testPathSegmentDecoding()
243 assertEquals(2, appended.getPathSegments().size()); in testSms()
244 assertEquals("conversations", appended.getPathSegments().get(0)); in testSms()
245 assertEquals("addr=555-1212", appended.getPathSegments().get(1)); in testSms()
321 assertEquals(0, uri.getPathSegments().size()); in testEmptyPath()
328 assertEquals(2, uri.getPathSegments().size()); in testPathOperations()
334 assertEquals(3, uri.getPathSegments().size()); in testPathOperations()
340 assertEquals(4, uri.getPathSegments().size()); in testPathOperations()
346 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.java329 public abstract List<String> getPathSegments(); in getPathSegments() method in Uri
630 public List<String> getPathSegments() { in getPathSegments() method in Uri.StringUri
631 return getPathPart().getPathSegments(); in getPathSegments()
947 public List<String> getPathSegments() { in getPathSegments() method in Uri.OpaqueUri
1072 List<String> segments = getPathSegments(); in getLastPathSegment()
1304 public List<String> getPathSegments() { in getPathSegments() method in Uri.HierarchicalUri
1305 return this.path.getPathSegments(); in getPathSegments()
2180 PathSegments getPathSegments() { in getPathSegments() method in Uri.PathPart
2417 List<String> seg = getPathSegments(); in isPathPrefixMatch()
2418 List<String> prefixSeg = prefix.getPathSegments(); in isPathPrefixMatch()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockOptionsProvider.java86 List<String> segments = uri.getPathSegments(); in getType()
132 List<String> segments = uri.getPathSegments(); in openFile()
/frameworks/base/core/java/android/provider/
DDocumentsContract.java1175 final List<String> paths = uri.getPathSegments(); in isDocumentUri()
1218 final List<String> paths = uri.getPathSegments(); in isTreeUri()
1224 final List<String> paths = uri.getPathSegments(); in isRootUri()
1246 final List<String> paths = rootUri.getPathSegments(); in getRootId()
1259 final List<String> paths = documentUri.getPathSegments(); in getDocumentId()
1274 final List<String> paths = documentUri.getPathSegments(); in getTreeDocumentId()
DContactsInternal.java95 final List<String> pathSegments = uri.getPathSegments(); in maybeStartManagedQuickContact()
DDeviceConfig.java785 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.java1401 if (conditionId.getPathSegments().size() < 2 in tryParseCountdownConditionId()
1402 || !COUNTDOWN_PATH.equals(conditionId.getPathSegments().get(0))) return 0; in tryParseCountdownConditionId()
1404 return Long.parseLong(conditionId.getPathSegments().get(1)); in tryParseCountdownConditionId()
1423 if (conditionId.getPathSegments().size() < 4 in isValidCountdownToAlarmConditionId()
1424 || !IS_ALARM_PATH.equals(conditionId.getPathSegments().get(2))) { in isValidCountdownToAlarmConditionId()
1428 return Boolean.parseBoolean(conditionId.getPathSegments().get(3)); in isValidCountdownToAlarmConditionId()
1489 && conditionId.getPathSegments().size() == 1 in tryParseScheduleConditionId()
1490 && ZenModeConfig.SCHEDULE_PATH.equals(conditionId.getPathSegments().get(0)); in tryParseScheduleConditionId()
1597 && conditionId.getPathSegments().size() == 1 in tryParseEventConditionId()
1598 && 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/services/core/java/com/android/server/om/
DOverlayActorEnforcer.java58 List<String> actorPathSegments = actorUri.getPathSegments(); in getPackageNameForActor()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java417 final List<String> pathSegments = uri.getPathSegments(); in getCompleteUri()
575 final List<String> pathSegments = uri.getPathSegments(); in getMethodAndKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMmsQueryHelperTest.java166 List<String> segments = uri.getPathSegments(); in query()
/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.java1558 return uri.getPathSegments().get(index - 1); in getUriSegment()
1569 return uri.getPathSegments().size() + 1; in countUriSegments()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java2323 if (uri.getPathSegments().size() > 0) {
2324 String table = uri.getPathSegments().get(0);
2428 final int segmentSize = uri.getPathSegments().size();
2457 name = uri.getPathSegments().get(1);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java1911 List<String> segA = uriA.getPathSegments(); in isPathPrefixMatch()
1912 List<String> segB = uriB.getPathSegments(); in isPathPrefixMatch()

12