Home
last modified time | relevance | path

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

12

/packages/modules/StatsD/statsd/tests/
DLogEntryMatcher_test.cpp155 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
159 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
190 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
193 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
196 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
200 EXPECT_FALSE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
203 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
207 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
210 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
213 EXPECT_TRUE(matchesSimple(uidMap, *simpleMatcher, event).matched); in TEST()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DSearchUtilTest.java33 SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(actual, "poten"); in testFindMatchingLine() local
34 assertEquals("With potentially many lines.", matched.line); in testFindMatchingLine()
35 assertEquals(5, matched.startIndex); in testFindMatchingLine()
38 matched = SearchUtil.findMatchingLine(actual, "hello"); in testFindMatchingLine()
39 assertEquals("hello", matched.line); in testFindMatchingLine()
40 assertEquals(0, matched.startIndex); in testFindMatchingLine()
43 matched = SearchUtil.findMatchingLine(actual, "this"); in testFindMatchingLine()
44 assertEquals("this is a long test string.", matched.line); in testFindMatchingLine()
45 assertEquals(0, matched.startIndex); in testFindMatchingLine()
48 matched = SearchUtil.findMatchingLine(actual, "punc"); in testFindMatchingLine()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DInteropUtil.java70 boolean matched = adapterService.interopMatchAddr(feature, address); in interopMatchAddr()
71 Log.d(TAG, "interopMatchAddr: matched=" + matched); in interopMatchAddr()
72 return matched; in interopMatchAddr()
99 boolean matched = adapterService.interopMatchName(feature, name); in interopMatchName()
100 Log.d(TAG, "interopMatchName: matched=" + matched); in interopMatchName()
101 return matched; in interopMatchName()
129 boolean matched = adapterService.interopMatchAddrOrName(feature, address); in interopMatchAddrOrName()
130 Log.d(TAG, "interopMatchAddrOrName: matched=" + matched); in interopMatchAddrOrName()
131 return matched; in interopMatchAddrOrName()
/packages/modules/StatsD/statsd/src/matchers/
Dmatcher_util.cpp39 bool matched; in combinationMatch() local
42 matched = true; in combinationMatch()
45 matched = false; in combinationMatch()
52 matched = false; in combinationMatch()
55 matched = true; in combinationMatch()
62 matched = matcherResults[children[0]] == MatchingState::kNotMatched; in combinationMatch()
65 matched = false; in combinationMatch()
68 matched = true; in combinationMatch()
74 matched = true; in combinationMatch()
77 matched = false; in combinationMatch()
[all …]
DSimpleAtomMatchingTracker.cpp93 auto [matched, transformedEvent] = matchesSimple(mUidMap, mMatcher, event); in onLogEvent()
94 matcherResults[matcherIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
95 VLOG("Stats SimpleAtomMatcher %lld matched? %d", (long long)mId, matched); in onLogEvent()
97 if (matched && transformedEvent != nullptr) { in onLogEvent()
DCombinationAtomMatchingTracker.cpp165 bool matched = combinationMatch(mChildren, mLogicalOperation, matcherResults); in onLogEvent() local
166 matcherResults[matcherIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
Dmatcher_util.h37 bool matched; member
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCheckLockWorker.java54 public void onChecked(boolean matched, int throttleTimeoutMs) { in onChecked() argument
59 mLockMatched = matched; in onChecked()
62 mListener.onCheckCompleted(matched, throttleTimeoutMs); in onChecked()
124 void onCheckCompleted(boolean matched, int timeoutMs); in onCheckCompleted() argument
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java50 final MatchedLine matched = new MatchedLine(); in findMatchingLine() local
71 matched.line = contents.substring(start + 1, end); in findMatchingLine()
72 matched.startIndex = index - (start + 1); in findMatchingLine()
74 return matched; in findMatchingLine()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java33 final MatchedLine matched = new MatchedLine(); in findMatchingLine() local
54 matched.line = contents.substring(start + 1, end); in findMatchingLine()
55 matched.startIndex = index - (start + 1); in findMatchingLine()
57 return matched; in findMatchingLine()
/packages/apps/Settings/src/com/android/settings/password/
DCredentialCheckResultTracker.java55 public void setResult(boolean matched, Intent intent, int timeoutMs, int effectiveUserId) { in setResult() argument
56 mResultMatched = matched; in setResult()
78 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
DConfirmLockPattern.java549 final boolean matched = response.isMatched();
550 if (matched && mReturnCredentials) {
560 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
587 public void onChecked(boolean matched, int timeoutMs) {
589 if (matched && isInternalActivity() && mReturnCredentials) {
593 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs,
600 private void onPatternChecked(boolean matched, Intent intent, int timeoutMs, in onPatternChecked() argument
603 if (matched) { in onPatternChecked()
672 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
674 onPatternChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
DConfirmLockPassword.java516 final boolean matched = response.isMatched(); in startVerifyPassword()
517 if (matched && mReturnCredentials) { in startVerifyPassword()
527 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startVerifyPassword()
546 public void onChecked(boolean matched, int timeoutMs) { in startCheckPassword()
548 if (matched && isInternalActivity() && mReturnCredentials) { in startCheckPassword()
552 mCredentialCheckResultTracker.setResult(matched, intent, timeoutMs, in startCheckPassword()
586 private void onPasswordChecked(boolean matched, Intent intent, int timeoutMs, in onPasswordChecked() argument
589 if (matched) { in onPasswordChecked()
658 public void onCredentialChecked(boolean matched, Intent intent, int timeoutMs, in onCredentialChecked() argument
660 onPasswordChecked(matched, intent, timeoutMs, effectiveUserId, newResult); in onCredentialChecked()
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/misc/
Dtrigger_data_matching.json67 // This trigger is not matched because the source has "exact" trigger data matching.
90 // This trigger is matched because trigger data 7 is within the default trigger data
Dmax_distinct_destinations_in_source.json154 // Trigger is matched with the source from October 23
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java162 boolean matched = false; in split()
166 matched = true; in split()
168 if (!matched) { in split()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dshortcut_dict_content.cpp162 bool matched = true; in findShortcutEntryAndGetPos() local
165 matched = false; in findShortcutEntryAndGetPos()
169 if (matched) { in findShortcutEntryAndGetPos()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dshortcut_dict_content.cpp177 bool matched = true; in findShortcutEntryAndGetPos() local
180 matched = false; in findShortcutEntryAndGetPos()
184 if (matched) { in findShortcutEntryAndGetPos()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state.cpp224 const bool matched = (currentCodePoints[j] == baseLowerC in getProximityType() local
226 if (matched) { in getProximityType()
239 const bool matched = (currentCodePoints[j] == baseLowerC in getProximityType() local
241 if (matched) { in getProximityType()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredNfcFServicesCache.java323 boolean matched = false; in invalidateCache()
327 matched = true; in invalidateCache()
331 if (!matched) { in invalidateCache()
334 matched = false; in invalidateCache()
339 matched = true; in invalidateCache()
343 if (!matched) { in invalidateCache()
346 matched = false; in invalidateCache()
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py127 matched = False
129matched |= (address == None or response.address == bluetooth.Address(address)) and (data == None or
132 return event if matched else None
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListItemView.java1726 final SearchUtil.MatchedLine matched = SearchUtil.findMatchingLine(snippet, query); in updateSnippet() local
1728 if (matched != null && matched.line != null) { in updateSnippet()
1734 if (matched.line.length() > lengthThreshold) { in updateSnippet()
1735 return snippetize(matched.line, matched.startIndex, lengthThreshold); in updateSnippet()
1737 return matched.line; in updateSnippet()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_cache.cc756 bool matched = false; in bta_gattc_read_db_hash_cmpl() local
768 matched = (local_hash == remote_hash); in bta_gattc_read_db_hash_cmpl()
775 if (!matched) { in bta_gattc_read_db_hash_cmpl()
804 if (matched) { in bta_gattc_read_db_hash_cmpl()
/packages/modules/StatsD/statsd/src/shell/
DShellSubscriberClient.cpp179 auto [matched, transformedEvent] = matchesSimple(mUidMap, matcher, event); in writeEventToProtoIfMatched()
180 if (!matched) { in writeEventToProtoIfMatched()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbap/
DBluetoothPbapService.java468 boolean matched = in handleNotificationTask()
472 Log.d(TAG, "INTEROP_ADV_PBAP_VER_1_2: matched=" + matched); in handleNotificationTask()
474 if (pce_version == PBAP_ADV_VERSION && !matched) { in handleNotificationTask()

12