/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | ClusterSource.java | 35 PathMatcher mMatcher; field in ClusterSource 40 mMatcher = new PathMatcher(); in ClusterSource() 41 mMatcher.add("/cluster/*/time", CLUSTER_ALBUMSET_TIME); in ClusterSource() 42 mMatcher.add("/cluster/*/location", CLUSTER_ALBUMSET_LOCATION); in ClusterSource() 43 mMatcher.add("/cluster/*/tag", CLUSTER_ALBUMSET_TAG); in ClusterSource() 44 mMatcher.add("/cluster/*/size", CLUSTER_ALBUMSET_SIZE); in ClusterSource() 45 mMatcher.add("/cluster/*/face", CLUSTER_ALBUMSET_FACE); in ClusterSource() 47 mMatcher.add("/cluster/*/time/*", CLUSTER_ALBUM_TIME); in ClusterSource() 48 mMatcher.add("/cluster/*/location/*", CLUSTER_ALBUM_LOCATION); in ClusterSource() 49 mMatcher.add("/cluster/*/tag/*", CLUSTER_ALBUM_TAG); in ClusterSource() [all …]
|
D | FilterSource.java | 36 private PathMatcher mMatcher; field in FilterSource 43 mMatcher = new PathMatcher(); in FilterSource() 44 mMatcher.add("/filter/mediatype/*/*", FILTER_BY_MEDIATYPE); in FilterSource() 45 mMatcher.add("/filter/delete/*", FILTER_BY_DELETE); in FilterSource() 46 mMatcher.add("/filter/empty/*", FILTER_BY_EMPTY); in FilterSource() 47 mMatcher.add(FILTER_EMPTY_ITEM, FILTER_BY_EMPTY_ITEM); in FilterSource() 48 mMatcher.add(FILTER_CAMERA_SHORTCUT, FILTER_BY_CAMERA_SHORTCUT); in FilterSource() 49 mMatcher.add(FILTER_CAMERA_SHORTCUT_ITEM, FILTER_BY_CAMERA_SHORTCUT_ITEM); in FilterSource() 62 int matchType = mMatcher.match(path); in createMediaObject() 66 int mediaType = mMatcher.getIntVar(0); in createMediaObject() [all …]
|
D | LocalSource.java | 38 private PathMatcher mMatcher; field in LocalSource 59 mMatcher = new PathMatcher(); in LocalSource() 60 mMatcher.add("/local/image", LOCAL_IMAGE_ALBUMSET); in LocalSource() 61 mMatcher.add("/local/video", LOCAL_VIDEO_ALBUMSET); in LocalSource() 62 mMatcher.add("/local/all", LOCAL_ALL_ALBUMSET); in LocalSource() 64 mMatcher.add("/local/image/*", LOCAL_IMAGE_ALBUM); in LocalSource() 65 mMatcher.add("/local/video/*", LOCAL_VIDEO_ALBUM); in LocalSource() 66 mMatcher.add("/local/all/*", LOCAL_ALL_ALBUM); in LocalSource() 67 mMatcher.add("/local/image/item/*", LOCAL_IMAGE_ITEM); in LocalSource() 68 mMatcher.add("/local/video/item/*", LOCAL_VIDEO_ITEM); in LocalSource() [all …]
|
D | SnailSource.java | 27 private PathMatcher mMatcher; field in SnailSource 33 mMatcher = new PathMatcher(); in SnailSource() 34 mMatcher.add("/snail/set/*", SNAIL_ALBUM); in SnailSource() 35 mMatcher.add("/snail/item/*", SNAIL_ITEM); in SnailSource() 42 switch (mMatcher.match(path)) { in createMediaObject() 44 String itemPath = "/snail/item/" + mMatcher.getVar(0); in createMediaObject() 49 int id = mMatcher.getIntVar(0); in createMediaObject()
|
D | ComboSource.java | 25 private PathMatcher mMatcher; field in ComboSource 30 mMatcher = new PathMatcher(); in ComboSource() 31 mMatcher.add("/combo/*", COMBO_ALBUMSET); in ComboSource() 32 mMatcher.add("/combo/*/*", COMBO_ALBUM); in ComboSource() 44 switch (mMatcher.match(path)) { in createMediaObject()
|
D | SecureSource.java | 23 private static PathMatcher mMatcher = new PathMatcher(); field in SecureSource 28 mMatcher.add("/secure/all/*", SECURE_ALBUM); 29 mMatcher.add("/secure/unlock", SECURE_UNLOCK); 38 return (SECURE_ALBUM == mMatcher.match(Path.fromString(path))); in isSecurePath() 43 switch (mMatcher.match(path)) { in createMediaObject()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | BmsgTokenizer.java | 30 private final Matcher mMatcher; field in BmsgTokenizer 41 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer() 42 mPos = mMatcher.regionStart(); in BmsgTokenizer() 49 mMatcher.region(mPos, mMatcher.regionEnd()); in next() 51 if (!mMatcher.lookingAt()) { in next() 59 mPos = mMatcher.end(); in next() 61 if (mMatcher.group(1) != null) { in next() 66 return new Property(mMatcher.group(2), mMatcher.group(3)); in next()
|
/packages/modules/StatsD/statsd/src/ |
D | FieldValue.h | 221 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher() 223 const Field mMatcher; member 227 return mMatcher; in getMatcher() 243 return mMatcher.getDepth() >= 1 && mMatcher.getRawPosAtDepth(1) == 0 && in hasAllPositionMatcher() 248 return mMatcher.getDepth() >= 1 && mMatcher.getRawPosAtDepth(1) == 1; in hasFirstPositionMatcher() 252 return mMatcher.getDepth() >= 1 && mMatcher.isLastPosMatcher(1); in hasLastPositionMatcher() 256 return ((mMatcher.getField() & kClearAllPositionMatcherMask) == in isEqualWithoutPositionBits() 261 return mMatcher != that.getMatcher() || mMask != that.getMask(); 265 return mMatcher == that.mMatcher && mMask == that.mMask;
|
D | HashableDimensionKey.cpp | 254 links.conditionFields[i].mMatcher.getField()); in getDimensionForCondition() 256 links.conditionFields[i].mMatcher.getTag()); in getDimensionForCondition() 275 statePrimaryKey->mutableValue(i)->mField.setField(link.stateFields[i].mMatcher.getField()); in getDimensionForState() 276 statePrimaryKey->mutableValue(i)->mField.setTag(link.stateFields[i].mMatcher.getTag()); in getDimensionForState() 312 if (stateLink.stateFields[i].mMatcher == stateField && in linked() 313 stateLink.metricFields[i].mMatcher == metricField) { in linked()
|
D | FieldValue.cpp | 48 if (mTag != matcher.mMatcher.getTag()) { in matches() 51 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches() 56 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches()
|
D | stats_log_util.cpp | 238 const Field& field = fieldMatchers[*index].mMatcher; in writeDimensionPathToProtoHelper() 306 fieldMatchers[0].mMatcher.getTag()); in writeDimensionPathToProto()
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/ |
D | PicasaSource.java | 44 private PathMatcher mMatcher; field in PicasaSource 51 mMatcher = new PathMatcher(); in PicasaSource() 52 mMatcher.add("/picasa/all", PICASA_ALBUMSET); in PicasaSource() 53 mMatcher.add("/picasa/image", PICASA_ALBUMSET); in PicasaSource() 54 mMatcher.add("/picasa/video", PICASA_ALBUMSET); in PicasaSource() 76 switch (mMatcher.match(path)) { in createMediaObject()
|
/packages/modules/AdServices/adservices/tests/test-util/side-less/com/android/adservices/common/ |
D | AbstractSystemPropertiesDumperRule.java | 44 private final Matcher mMatcher; field in AbstractSystemPropertiesDumperRule 50 mMatcher = (prop) -> prop.name.startsWith(prefix); in AbstractSystemPropertiesDumperRule() 57 runSafely(cleanUpErrors, () -> mPreTestSystemProperties.addAll(mHelper.getAll(mMatcher))); in preTest() 68 () -> mOnTestFailureSystemProperties.addAll(mHelper.getAll(mMatcher))); in onTestFailure()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | LocalUriMatcherTest.java | 34 private LocalUriMatcher mMatcher = new LocalUriMatcher(MediaStore.AUTHORITY); field in LocalUriMatcherTest 367 assertEquals(match, mMatcher.matchUri( in testPickerV2UriMatch() 374 assertEquals(UriMatcher.NO_MATCH, mMatcher.matchUri( in testPickerV2UriMatch() 385 assertEquals(match, mMatcher.matchUri( in testPickerV2UriMatch() 392 assertEquals(UriMatcher.NO_MATCH, mMatcher.matchUri( in testPickerV2UriMatch() 400 assertEquals(match, mMatcher.matchUri(uri, true)); in assertMatchesHidden() 404 assertEquals(match, mMatcher.matchUri(uri, false)); in assertMatchesPublic()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | WaitForViewAction.kt | 31 class WaitForViewAction(private val mMatcher: Matcher<View>, private val mWaitTimeMillis: Long) : constant in com.android.healthconnect.controller.tests.utils.WaitForViewAction 39 mMatcher.describeTo(description) in getDescription() 52 if (mMatcher.matches(child)) { in perform()
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | SimpleAtomMatchingTracker.cpp | 33 : AtomMatchingTracker(id, protoHash), mMatcher(matcher), mUidMap(uidMap) { in SimpleAtomMatchingTracker() 58 for (const FieldValueMatcher& fvm : mMatcher.field_value_matcher()) { in init() 93 auto [matched, transformedEvent] = matchesSimple(mUidMap, mMatcher, event); in onLogEvent()
|
D | SimpleAtomMatchingTracker.h | 53 const SimpleAtomMatcher mMatcher;
|
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapIMProvider.java | 53 private UriMatcher mMatcher; field in BluetoothMapIMProvider 65 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in attachInfo() 66 mMatcher.addURI(mAuthority, BluetoothMapContract.TABLE_ACCOUNT, MATCH_ACCOUNT); in attachInfo() 67 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_MESSAGE, MATCH_MESSAGE); in attachInfo() 68 mMatcher.addURI( in attachInfo() 70 mMatcher.addURI( in attachInfo() 343 switch (mMatcher.match(uri)) { in query()
|
D | BluetoothMapEmailProvider.java | 57 private UriMatcher mMatcher; field in BluetoothMapEmailProvider 92 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in attachInfo() 93 mMatcher.addURI(mAuthority, BluetoothMapContract.TABLE_ACCOUNT, MATCH_ACCOUNT); in attachInfo() 94 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_FOLDER, MATCH_FOLDER); in attachInfo() 95 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_MESSAGE, MATCH_MESSAGE); in attachInfo() 537 switch (mMatcher.match(uri)) { in query()
|
/packages/providers/MediaProvider/apex/framework/java/android/provider/ |
D | CloudMediaProvider.java | 125 private final UriMatcher mMatcher = new UriMatcher(UriMatcher.NO_MATCH); field in CloudMediaProvider 143 mMatcher.addURI(authority, URI_PATH_MEDIA, MATCH_MEDIAS); in registerAuthority() 144 mMatcher.addURI(authority, URI_PATH_DELETED_MEDIA, MATCH_DELETED_MEDIAS); in registerAuthority() 145 mMatcher.addURI(authority, URI_PATH_ALBUM, MATCH_ALBUMS); in registerAuthority() 146 mMatcher.addURI(authority, URI_PATH_MEDIA_COLLECTION_INFO, MATCH_MEDIA_COLLECTION_INFO); in registerAuthority() 147 mMatcher.addURI(authority, URI_PATH_SURFACE_CONTROLLER, MATCH_SURFACE_CONTROLLER); in registerAuthority() 522 switch (mMatcher.match(uri)) { in query()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator.java | 62 private final ContactMatcher mMatcher = new ContactMatcher(); field in ContactAggregator 486 mMatcher.clear(); in updateAggregationAfterVisibilityChange() 488 updateMatchScoresBasedOnIdentityMatch(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 489 updateMatchScoresBasedOnNameMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 491 mMatcher.pickBestMatches(ContactMatcher.SCORE_THRESHOLD_PRIMARY); in updateAggregationAfterVisibilityChange() 496 mMatcher.clear(); in updateAggregationAfterVisibilityChange() 497 updateMatchScoresBasedOnEmailMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 498 updateMatchScoresBasedOnPhoneMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 500 mMatcher.pickBestMatches(ContactMatcher.SCORE_THRESHOLD_SECONDARY); in updateAggregationAfterVisibilityChange()
|
D | ContactAggregator2.java | 74 private final RawContactMatcher mMatcher = new RawContactMatcher(); field in ContactAggregator2 471 mMatcher.clear(); in updateAggregationAfterVisibilityChange() 473 updateMatchScoresBasedOnIdentityMatch(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 474 updateMatchScoresBasedOnNameMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 476 mMatcher.pickBestMatches(SCORE_THRESHOLD_PRIMARY); in updateAggregationAfterVisibilityChange() 481 mMatcher.clear(); in updateAggregationAfterVisibilityChange() 482 updateMatchScoresBasedOnEmailMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 483 updateMatchScoresBasedOnPhoneMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange() 485 mMatcher.pickBestMatches(SCORE_THRESHOLD_SECONDARY); in updateAggregationAfterVisibilityChange()
|
/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/ |
D | LaunchSettingsTest.java | 132 Matcher mMatcher = PATTERN.matcher(shellCommandResult); in handleLaunchResult() local 133 if (mMatcher.find()) { in handleLaunchResult() 134 mResult.get(title).add(Integer.valueOf(mMatcher.group().split("\\s")[1])); in handleLaunchResult()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 47 private UriMatcher mMatcher; field in MockContentProvider.Query 68 mMatcher = matcher; in Query() 139 if (mMatcher != null && mMatcher.match(uri) == UriMatcher.NO_MATCH) { in equals()
|
/packages/modules/StatsD/statsd/tests/ |
D | FieldValue_test.cpp | 89 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST() 90 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST() 110 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST() 111 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST() 472 EXPECT_EQ((int32_t)0x02010001, link.metricFields[0].mMatcher.getField()); in TEST() 474 EXPECT_EQ((int32_t)10, link.metricFields[0].mMatcher.getTag()); in TEST() 477 EXPECT_EQ((int32_t)0x02028002, link.conditionFields[0].mMatcher.getField()); in TEST() 479 EXPECT_EQ((int32_t)27, link.conditionFields[0].mMatcher.getTag()); in TEST()
|