Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DClusterSource.java35 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 …]
DFilterSource.java36 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 …]
DLocalSource.java38 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 …]
DSnailSource.java27 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()
DComboSource.java25 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()
DSecureSource.java23 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/
DBmsgTokenizer.java30 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/
DFieldValue.h221 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;
DHashableDimensionKey.cpp254 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()
DFieldValue.cpp48 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()
Dstats_log_util.cpp238 const Field& field = fieldMatchers[*index].mMatcher; in writeDimensionPathToProtoHelper()
306 fieldMatchers[0].mMatcher.getTag()); in writeDimensionPathToProto()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
DPicasaSource.java44 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/
DAbstractSystemPropertiesDumperRule.java44 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/
DLocalUriMatcherTest.java34 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/
DWaitForViewAction.kt31 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/
DSimpleAtomMatchingTracker.cpp33 : 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()
DSimpleAtomMatchingTracker.h53 const SimpleAtomMatcher mMatcher;
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapIMProvider.java53 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()
DBluetoothMapEmailProvider.java57 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/
DCloudMediaProvider.java125 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/
DContactAggregator.java62 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()
DContactAggregator2.java74 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/
DLaunchSettingsTest.java132 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/
DMockContentProvider.java47 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/
DFieldValue_test.cpp89 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()