Home
last modified time | relevance | path

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

123

/cts/tests/tests/content/src/android/content/cts/
DUriMatcherTest.java58 assertEquals(sCode1, mUriMatcher.match(uri1)); in testMatch()
59 assertEquals(sCode2, mUriMatcher.match(uri2)); in testMatch()
60 assertEquals(sCode3, mUriMatcher.match(uri3)); in testMatch()
61 assertEquals(sCode4, mUriMatcher.match(uri4)); in testMatch()
65 assertEquals(-1, mUriMatcher.match(unknown)); in testMatch()
70 mUriMatcher.match(null); in testMatchFailure()
78 assertEquals(-1, mUriMatcher.match(uri1)); in testAddURI()
79 assertEquals(-1, mUriMatcher.match(uri2)); in testAddURI()
80 assertEquals(-1, mUriMatcher.match(uri3)); in testAddURI()
81 assertEquals(-1, mUriMatcher.match(uri4)); in testAddURI()
[all …]
DIntentFilter_AuthorityEntryTest.java56 assertEquals(IntentFilter.NO_MATCH_DATA, mAuthorityEntry.match(uri)); in testMatch()
58 assertEquals(IntentFilter.NO_MATCH_DATA, mAuthorityEntry.match(uri)); in testMatch()
61 assertEquals(IntentFilter.NO_MATCH_DATA, mAuthorityEntry.match(uri)); in testMatch()
64 assertEquals(IntentFilter.MATCH_CATEGORY_HOST, mAuthorityEntry.match(uri)); in testMatch()
68 assertEquals(IntentFilter.MATCH_CATEGORY_HOST, mAuthorityEntry.match(uri)); in testMatch()
72 assertEquals(IntentFilter.MATCH_CATEGORY_PORT, mAuthorityEntry.match(uri)); in testMatch()
76 assertEquals(IntentFilter.MATCH_CATEGORY_HOST, mAuthorityEntry.match(uri)); in testMatch()
DMockContentProvider.java146 switch (URL_MATCHER.match(uri)) { in delete()
185 switch (URL_MATCHER.match(uri)) { in getType()
204 if (URL_MATCHER.match(uri) == TESTTABLE2_ID) { in getStreamTypes()
232 switch (URL_MATCHER.match(uri)) { in insert()
269 switch (URL_MATCHER.match(uri)) { in query()
325 switch (URL_MATCHER.match(uri)) { in update()
358 switch (URL_MATCHER.match(uri)) { in openAssetFile()
374 switch (URL_MATCHER.match(uri)) { in openTypedAssetFile()
DIntentFilterTest.java773 assertEquals(IntentFilter.NO_MATCH_ACTION, mIntentFilter.match(resolver, intent, true, in testMatchWithIntent()
777 mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
781 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
783 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
785 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
790 mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
792 mIntentFilter.match(resolver, intent, false, null)); in testMatchWithIntent()
794 assertEquals(IntentFilter.NO_MATCH_CATEGORY, mIntentFilter.match(resolver, intent, true, in testMatchWithIntent()
798 mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
801 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.match(resolver, intent, true, null)); in testMatchWithIntent()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DPatternMatcherTest.java119 assertTrue(mPatternMatcher.match("test")); in testMatch()
120 assertFalse(mPatternMatcher.match("test1")); in testMatch()
123 assertTrue(mPatternMatcher.match("testHello")); in testMatch()
124 assertFalse(mPatternMatcher.match("atestHello")); in testMatch()
127 assertFalse(mPatternMatcher.match("testHello")); in testMatch()
128 assertFalse(mPatternMatcher.match("test")); in testMatch()
129 assertFalse(mPatternMatcher.match("atestHello")); in testMatch()
132 assertTrue(mPatternMatcher.match("")); in testMatch()
135 assertTrue(mPatternMatcher.match("test")); in testMatch()
138 assertFalse(mPatternMatcher.match("test")); in testMatch()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBAudioPeripheralButtonsActivity.java89 boolean match = mButtonAttributes != null; in calculateMatch()
92 if (match && mButtonAttributes.mHasBtnA != mHasBtnA) { in calculateMatch()
93 match = false; in calculateMatch()
95 if (match && mButtonAttributes.mHasBtnB != mHasBtnB && !interceptedVolume) { in calculateMatch()
96 match = false; in calculateMatch()
98 if (match && mButtonAttributes.mHasBtnC != mHasBtnC && !interceptedVolume) { in calculateMatch()
99 match = false; in calculateMatch()
101 Log.i(TAG, "match:" + match); in calculateMatch()
102 getPassButton().setEnabled(match); in calculateMatch()
/cts/suite/audio_quality/lib/src/
DSimpleScriptExec.cpp44 android::String8 match; in checkIfPassed() local
45 match.append(PASS_MAGIC_WORD); in checkIfPassed()
46 match.append(reMatch); in checkIfPassed()
47 LOGV("re match %s", match.string()); in checkIfPassed()
53 if (regcomp(&re, match.string(), cflags) != 0) { in checkIfPassed()
/cts/tests/tests/drm/jni/
Dandroid_drm_cts_NativeCodeTest.cpp40 const char *match = "Result: Parcel(00000000 '....')"; in android_drm_cts_InstallDrmEngineTest() local
41 if (!strncmp(buffer, match, strlen(match))) { in android_drm_cts_InstallDrmEngineTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java139 int match = URI_MATCHER.match(uri); in query() local
140 switch (match) { in query()
175 int match = URI_MATCHER.match(uri); in update() local
176 switch (match) { in update()
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/
DDirectoryProvider.java112 final int match = mURIMatcher.match(uri); in query() local
113 switch (match) { in query()
228 final int match = mURIMatcher.match(uri); in openAssetFile() local
230 switch (match) { in openAssetFile()
/cts/suite/audio_quality/lib/src/audio/
DAudioHardware.cpp48 android::String8 match("[ \t]+([A-Za-z0-9_]+)[ \t]+([0-9]+)"); in detectAudioHw() local
51 if (!SimpleScriptExec::checkIfPassed(resultStr, match, nmatch, pmatch)) { in detectAudioHw()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dca.conf68 countryName = match
69 stateOrProvinceName = match
70 organizationName = match
/cts/tests/tests/content/src/android/content/pm/cts/
DResolveInfoTest.java64 assertEquals(resolveInfo.match, infoFromParcel.match); in testDump()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteFtsTest.java119 private Cursor queryFtsTable(String table, String match) { in queryFtsTable() argument
121 "content MATCH ?", new String[] { match }, in queryFtsTable()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DUriHelper.java56 if (mUriMatcher.match(uri) == UriMatcher.NO_MATCH) { in newInstance()
64 return mUriTypeMap.get(mUriMatcher.match(uri), null); in getTypeOf()
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile103 # Regular expression which should only match correct argument names
106 # Regular expression which should only match correct instance attribute names
115 # Regular expression which should only match correct attribute names in class
119 # Regular expression which should only match correct class names
122 # Regular expression which should only match correct module level names
129 # Regular expression which should only match correct function names
136 # Regular expression which should only match correct list comprehension /
140 # Regular expression which should only match correct method names
144 # Regular expression which should only match correct module names
151 # Regular expression which should only match function or class names that do
[all …]
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dshared.rsh24 /* These constants must match those in UnitTest.java */
/cts/tests/tests/rscpp/librscpptest/
Dshared.rsh24 /* These constants must match those in UnitTest.java */
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDummyGalProvider.java85 final int match = sURIMatcher.match(uri); in query() local
87 switch (match) { in query()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dshared.rsh27 /* These constants must match those in UnitTest.java */
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/
DDragSourceContentProvider.java45 switch (sMatcher.match(uri)) { in query()
/cts/apps/CameraITS/tools/
Dhardware.py209 if tty_re.match(entry):
257 inf_match = inf_re.match(inf_entry)
319 if file_re.match(dir_entry):
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DEphemeralProvider.java50 return (sUriMatcher.match(uri) != 1) ? null : sCursor; in query()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp2/src/com/android/cts/ephemeralapp2/
DEphemeralProvider.java50 return (sUriMatcher.match(uri) != 1) ? null : sCursor; in query()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DNormalProvider.java50 return (sUriMatcher.match(uri) != 1) ? null : sCursor; in query()

123