Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DClusterSource.java35 PathMatcher mMatcher; field in ClusterSource
40 mMatcher = new PathMatcher(); in ClusterSource()
41 mMatcher.add("/cluster/*/time", CLUSTER_ALBUMSET_TIME); in ClusterSource()
43 mMatcher.add("/cluster/*/tag", CLUSTER_ALBUMSET_TAG); in ClusterSource()
44 mMatcher.add("/cluster/*/size", CLUSTER_ALBUMSET_SIZE); in ClusterSource()
47 mMatcher.add("/cluster/*/time/*", CLUSTER_ALBUM_TIME); in ClusterSource()
49 mMatcher.add("/cluster/*/tag/*", CLUSTER_ALBUM_TAG); in ClusterSource()
50 mMatcher.add("/cluster/*/size/*", CLUSTER_ALBUM_SIZE); in ClusterSource()
51 mMatcher.add("/cluster/*/face/*", CLUSTER_ALBUM_FACE); in ClusterSource()
61 int matchType = mMatcher.match(path); in createMediaObject()
[all …]
H A 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()
62 int matchType = mMatcher.match(path); in createMediaObject()
66 int mediaType = mMatcher.getIntVar(0); in createMediaObject()
67 String setsName = mMatcher.getVar(1); in createMediaObject()
72 String setsName = mMatcher.getVar(0); in createMediaObject()
[all …]
H A 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()
H A 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()
85 switch (mMatcher.match(path)) { in createMediaObject()
[all …]
H A 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()
H A 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()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
H A DBmsgTokenizer.java31 private final Matcher mMatcher; field in BmsgTokenizer
42 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
43 mPos = mMatcher.regionStart(); in BmsgTokenizer()
50 mMatcher.region(mPos, mMatcher.regionEnd()); in next()
52 if (!mMatcher.lookingAt()) { in next()
60 mPos = mMatcher.end(); in next()
62 if (mMatcher.group(1) != null) { in next()
67 return new Property(mMatcher.group(2), mMatcher.group(3)); in next()
/aosp12/frameworks/base/core/java/android/provider/
H A DSearchIndexablesProvider.java73 private UriMatcher mMatcher; field in SearchIndexablesProvider
89 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in attachInfo()
90 mMatcher.addURI(mAuthority, SearchIndexablesContract.INDEXABLES_XML_RES_PATH, in attachInfo()
92 mMatcher.addURI(mAuthority, SearchIndexablesContract.INDEXABLES_RAW_PATH, in attachInfo()
94 mMatcher.addURI(mAuthority, SearchIndexablesContract.NON_INDEXABLES_KEYS_PATH, in attachInfo()
96 mMatcher.addURI(mAuthority, SearchIndexablesContract.SITE_MAP_PAIRS_PATH, in attachInfo()
98 mMatcher.addURI(mAuthority, SearchIndexablesContract.SLICE_URI_PAIRS_PATH, in attachInfo()
100 mMatcher.addURI(mAuthority, SearchIndexablesContract.DYNAMIC_INDEXABLES_RAW_PATH, in attachInfo()
121 switch (mMatcher.match(uri)) { in query()
216 switch (mMatcher.match(uri)) { in getType()
H A DDocumentsProvider.java159 private UriMatcher mMatcher; field in DocumentsProvider
194 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in registerAuthority()
195 mMatcher.addURI(mAuthority, "root", MATCH_ROOTS); in registerAuthority()
196 mMatcher.addURI(mAuthority, "root/*", MATCH_ROOT); in registerAuthority()
197 mMatcher.addURI(mAuthority, "root/*/recent", MATCH_RECENT); in registerAuthority()
198 mMatcher.addURI(mAuthority, "root/*/search", MATCH_SEARCH); in registerAuthority()
199 mMatcher.addURI(mAuthority, "document/*", MATCH_DOCUMENT); in registerAuthority()
200 mMatcher.addURI(mAuthority, "document/*/children", MATCH_CHILDREN); in registerAuthority()
913 switch (mMatcher.match(uri)) { in query()
965 switch (mMatcher.match(uri)) { in getType()
[all …]
/aosp12/packages/apps/Gallery2/src_pd/com/android/gallery3d/picasasource/
H A 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()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/matchers/
H A DIndexMatcher.java31 private final Matcher<View> mMatcher; field in IndexMatcher
36 mMatcher = matcher; in IndexMatcher()
44 mMatcher.describeTo(description); in describeTo()
49 return mMatcher.matches(view) && mCurrentIndex++ == mIndex; in matchesSafely()
/aosp12/packages/modules/StatsD/statsd/src/
H A DFieldValue.h219 Matcher(const Field& matcher, int32_t mask) : mMatcher(matcher), mMask(mask){}; in Matcher()
221 const Field mMatcher; member
225 return mMatcher; in getMatcher()
241 return mMatcher.getDepth() == 2 && getRawMaskAtDepth(1) == 0x7f; in hasAllPositionMatcher()
245 if (mMatcher.getDepth() == 2 && mMatcher.getRawPosAtDepth(1) == 0) { in hasAnyPositionMatcher()
246 (*prefix) = mMatcher.getPrefix(1); in hasAnyPositionMatcher()
253 return mMatcher != that.getMatcher() || mMask != that.getMask();
257 return mMatcher == that.mMatcher && mMask == that.mMask;
H A DHashableDimensionKey.cpp215 links.conditionFields[i].mMatcher.getField()); in getDimensionForCondition()
217 links.conditionFields[i].mMatcher.getTag()); in getDimensionForCondition()
236 statePrimaryKey->mutableValue(i)->mField.setField(link.stateFields[i].mMatcher.getField()); in getDimensionForState()
237 statePrimaryKey->mutableValue(i)->mField.setTag(link.stateFields[i].mMatcher.getTag()); in getDimensionForState()
273 if (stateLink.stateFields[i].mMatcher == stateField && in linked()
274 stateLink.metricFields[i].mMatcher == metricField) { in linked()
H A DFieldValue.cpp45 if (mTag != matcher.mMatcher.getTag()) { in matches()
48 if ((mField & matcher.mMask) == matcher.mMatcher.getField()) { in matches()
53 (mField & (matcher.mMask & kClearAllPositionMatcherMask)) == matcher.mMatcher.getField()) { in matches()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-rotary-lib/src/androidTest/java/com/android/car/ui/actions/
H A DWaitForViewAction.java37 private Matcher<View> mMatcher; field in WaitForViewAction
41 mMatcher = matcher; in WaitForViewAction()
53 mMatcher.describeTo(description); in getDescription()
66 if (mMatcher.matches(child)) { in perform()
/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/androidTest/java/com/android/car/ui/actions/
H A DWaitForViewAction.java37 private Matcher<View> mMatcher; field in WaitForViewAction
41 mMatcher = matcher; in WaitForViewAction()
53 mMatcher.describeTo(description); in getDescription()
66 if (mMatcher.matches(child)) { in perform()
H A DWaitForNoMatchingViewAction.java36 private Matcher<View> mMatcher; field in WaitForNoMatchingViewAction
40 mMatcher = matcher; in WaitForNoMatchingViewAction()
52 mMatcher.describeTo(description); in getDescription()
66 if (mMatcher.matches(child)) { in perform()
/aosp12/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
H A DBluetoothMapIMProvider.java54 private UriMatcher mMatcher; field in BluetoothMapIMProvider
68 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in attachInfo()
69 mMatcher.addURI(mAuthority, BluetoothMapContract.TABLE_ACCOUNT, MATCH_ACCOUNT); in attachInfo()
70 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_MESSAGE, MATCH_MESSAGE); in attachInfo()
71 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_CONVERSATION, in attachInfo()
73 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_CONVOCONTACT, in attachInfo()
324 switch (mMatcher.match(uri)) { in query()
H A DBluetoothMapEmailProvider.java58 private UriMatcher mMatcher; field in BluetoothMapEmailProvider
90 mMatcher = new UriMatcher(UriMatcher.NO_MATCH); in attachInfo()
91 mMatcher.addURI(mAuthority, BluetoothMapContract.TABLE_ACCOUNT, MATCH_ACCOUNT); in attachInfo()
92 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_FOLDER, MATCH_FOLDER); in attachInfo()
93 mMatcher.addURI(mAuthority, "#/" + BluetoothMapContract.TABLE_MESSAGE, MATCH_MESSAGE); in attachInfo()
523 switch (mMatcher.match(uri)) { in query()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DWorkProfileManager.java70 private final ItemInfoMatcher mMatcher; field in WorkProfileManager
83 mMatcher = mAllApps.mPersonalMatcher.negate(); in WorkProfileManager()
167 return mMatcher; in getMatcher()
/aosp12/packages/modules/StatsD/statsd/src/matchers/
H A DSimpleAtomMatchingTracker.cpp33 : AtomMatchingTracker(id, index, protoHash), mMatcher(matcher), mUidMap(uidMap) { in SimpleAtomMatchingTracker()
74 bool matched = matchesSimple(mUidMap, mMatcher, event); in onLogEvent()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
H A DContactAggregator.java62 private final ContactMatcher mMatcher = new ContactMatcher(); field in ContactAggregator
488 mMatcher.clear(); in updateAggregationAfterVisibilityChange()
490 updateMatchScoresBasedOnIdentityMatch(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
491 updateMatchScoresBasedOnNameMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
493 mMatcher.pickBestMatches(ContactMatcher.SCORE_THRESHOLD_PRIMARY); in updateAggregationAfterVisibilityChange()
498 mMatcher.clear(); in updateAggregationAfterVisibilityChange()
499 updateMatchScoresBasedOnEmailMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
500 updateMatchScoresBasedOnPhoneMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
502 mMatcher.pickBestMatches(ContactMatcher.SCORE_THRESHOLD_SECONDARY); in updateAggregationAfterVisibilityChange()
H A DContactAggregator2.java74 private final RawContactMatcher mMatcher = new RawContactMatcher(); field in ContactAggregator2
473 mMatcher.clear(); in updateAggregationAfterVisibilityChange()
475 updateMatchScoresBasedOnIdentityMatch(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
476 updateMatchScoresBasedOnNameMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
478 mMatcher.pickBestMatches(SCORE_THRESHOLD_PRIMARY); in updateAggregationAfterVisibilityChange()
483 mMatcher.clear(); in updateAggregationAfterVisibilityChange()
484 updateMatchScoresBasedOnEmailMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
485 updateMatchScoresBasedOnPhoneMatches(db, rawContactId, mMatcher); in updateAggregationAfterVisibilityChange()
487 mMatcher.pickBestMatches(SCORE_THRESHOLD_SECONDARY); in updateAggregationAfterVisibilityChange()
/aosp12/packages/modules/StatsD/statsd/tests/
H A DFieldValue_test.cpp80 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST()
81 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
101 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST()
102 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
222 EXPECT_EQ((int32_t)0x02010001, link.metricFields[0].mMatcher.getField()); in TEST()
224 EXPECT_EQ((int32_t)10, link.metricFields[0].mMatcher.getTag()); in TEST()
227 EXPECT_EQ((int32_t)0x02028002, link.conditionFields[0].mMatcher.getField()); in TEST()
229 EXPECT_EQ((int32_t)27, link.conditionFields[0].mMatcher.getTag()); in TEST()
/aosp12/packages/apps/Settings/tests/perftests/src/com/android/settings/tests/perf/
H A 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()

12