Home
last modified time | relevance | path

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

1234567891011

/frameworks/av/media/codecs/m4v_h263/enc/src/
Dvlc_encode_inline.h26 UInt end, match; in zero_run_search() local
31 match = 1 << 31; in zero_run_search()
37 while (match >= end) in zero_run_search()
39 if ((match&bitmapzz[0]) == 0) in zero_run_search()
43 match >>= 1; in zero_run_search()
47 match >>= 1; in zero_run_search()
72 match = 1 << 31; in zero_run_search()
74 while (match >= end) in zero_run_search()
76 if ((match&bitmapzz[1]) == 0) in zero_run_search()
80 match >>= 1; in zero_run_search()
[all …]
/frameworks/native/libs/binderdebug/
DBinderDebug.cpp55 std::smatch match; in scanBinderContext() local
57 if (std::regex_search(line, match, kContextLine)) { in scanBinderContext()
58 isDesiredContext = match.str(1) == contextName; in scanBinderContext()
70 std::smatch match; in getBinderPidInfo() local
75 if (std::regex_search(line, match, kReferencePrefix)) { in getBinderPidInfo()
76 const std::string& ptrString = "0x" + match.str(2); // use number after c in getBinderPidInfo()
96 if (std::regex_search(line, match, kThreadPrefix)) { in getBinderPidInfo()
100 bool isInUse = match.str(1) != "1"; in getBinderPidInfo()
104 bool isBinderThread = match.str(2) != "0"; in getBinderPidInfo()
122 std::smatch match; in getBinderClientPids() local
[all …]
/frameworks/base/tools/aapt/tests/
DResourceFilter_test.cpp37 EXPECT_TRUE(filter.match(config)); in TEST()
42 EXPECT_TRUE(filter.match(config)); in TEST()
52 EXPECT_TRUE(filter.match(config)); in TEST()
63 EXPECT_TRUE(filter.match(config)); in TEST()
75 EXPECT_TRUE(filter.match(config)); in TEST()
86 EXPECT_TRUE(filter.match(config)); in TEST()
97 EXPECT_FALSE(filter.match(config)); in TEST()
110 EXPECT_FALSE(filter.match(config)); in TEST()
123 EXPECT_TRUE(filter.match(config)); in TEST()
134 EXPECT_TRUE(filter.match(config)); in TEST()
[all …]
/frameworks/base/core/java/android/os/
DPatternMatcher.java119 public boolean match(String str) { in match() method in PatternMatcher
199 static boolean matchPattern(String match, String pattern, int[] parsedPattern, int type) { in matchPattern() argument
200 if (match == null) return false; in matchPattern()
202 return pattern.equals(match); in matchPattern()
204 return match.startsWith(pattern); in matchPattern()
206 return matchGlobPattern(pattern, match); in matchPattern()
208 return matchAdvancedPattern(parsedPattern, match); in matchPattern()
210 return match.endsWith(pattern); in matchPattern()
215 static boolean matchGlobPattern(String pattern, String match) { in matchGlobPattern() argument
218 return match.length() <= 0; in matchGlobPattern()
[all …]
DUEventObserver.java50 private static native void nativeAddMatch(String match); in nativeAddMatch() argument
51 private static native void nativeRemoveMatch(String match); in nativeRemoveMatch() argument
99 public final void startObserving(String match) { in startObserving() argument
100 if (match == null || match.isEmpty()) { in startObserving()
105 t.addObserver(match, this); in startObserving()
223 public void addObserver(String match, UEventObserver observer) { in addObserver() argument
225 mKeysAndObservers.add(match); in addObserver()
227 nativeAddMatch(match); in addObserver()
237 final String match = (String)mKeysAndObservers.remove(i); in removeObserver() local
238 nativeRemoveMatch(match); in removeObserver()
/frameworks/av/media/libstagefright/foundation/
DADebug.cpp111 char *match = strcasestr(debugName, term); in GetDebugName() local
112 if (match != NULL && (match == debugName || match[-1] == '.' in GetDebugName()
113 || match[len] == '.' || match[len] == '\0')) { in GetDebugName()
114 char *src = match + len; in GetDebugName()
115 if (match == debugName || match[-1] == '.') { in GetDebugName()
118 memmove(match, src, debugName + strlen(debugName) - src + 1); in GetDebugName()
/frameworks/base/core/jni/
Dandroid_os_UEventObserver.cpp48 const String8& match = gMatches.itemAt(i); in isMatch() local
54 if (strstr(field, match.string())) { in isMatch()
55 ALOGV("Matched uevent message with pattern: %s", match.string()); in isMatch()
88 ScopedUtfChars match(env, matchStr); in nativeAddMatch() local
91 gMatches.add(String8(match.c_str())); in nativeAddMatch()
95 ScopedUtfChars match(env, matchStr); in nativeRemoveMatch() local
99 if (gMatches.itemAt(i) == match.c_str()) { in nativeRemoveMatch()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/eab/
DEabProvider.java499 int match = URI_MATCHER.match(uri); in query() local
503 Log.d(TAG, "Query URI: " + match); in query()
505 switch (match) { in query()
560 int match = URI_MATCHER.match(uri); in insert() local
563 switch (match) { in insert()
580 Log.d(TAG, "Insert uri: " + match + " ID: " + result); in insert()
594 int match = URI_MATCHER.match(uri); in bulkInsert() local
597 switch (match) { in bulkInsert()
634 Log.d(TAG, "bulkInsert uri: " + match + " count: " + result); in bulkInsert()
641 int match = URI_MATCHER.match(uri); in delete() local
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.h23 virtual bool match(const android::ResTable_config& config) const = 0;
37 bool match(const android::ResTable_config& config) const;
86 bool match(const android::ResTable_config& config) const { in match() function
112 bool match(const android::ResTable_config& config) const { in match() function
113 return !mFilter->match(config); in match()
129 bool match(const android::ResTable_config& config) const { in match() function
132 if (!mFilters[i]->match(config)) { in match()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastMetadata.java215 Matcher match = pattern.matcher(qrCodeString); in convertToBroadcastMetadata() local
216 if (match.find()) { in convertToBroadcastMetadata()
218 resultList.add(match.group(1)); in convertToBroadcastMetadata()
231 Log.d(TAG, "Converted qrCodeString result: " + match.group()); in convertToBroadcastMetadata()
258 Matcher match = pattern.matcher(subgroupString); in convertToSubgroup() local
259 if (match.find()) { in convertToSubgroup()
261 resultList.add(match.group(1)); in convertToSubgroup()
268 Log.d(TAG, "Converted subgroupString result: " + match.group()); in convertToSubgroup()
293 Matcher match = pattern.matcher(configMetadataString); in convertToConfigMetadata() local
294 if (match.find()) { in convertToConfigMetadata()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLocalProvider.java113 int match = sURLMatcher.match(url); in query() local
114 switch (match) { in query()
142 int match = sURLMatcher.match(url); in getType() local
143 switch (match) { in getType()
157 int match = sURLMatcher.match(url); in update() local
159 switch (match) { in update()
/frameworks/av/media/codec2/docs/
Ddoxyfilter.sh46 ind = re.match(r'^( *)', line).group(1)
49 m = re.match(r'^ *[*]/', line)
56 m = re.match(r'^ *//', line)
61 m = re.match(r'^ */[*]', line)
66 in_comment = not re.match(r'^ *[*]/', line)
86 if re.match(r'^namespace android {', line):
92 elif re.match(r'^} +// +namespace', line):
/frameworks/base/tools/bit/
Daapt.cpp182 smatch match; in inspect_apk() local
183 if (regex_match(line, match, NS_REGEX)) { in inspect_apk()
184 int depth = match[1].length() / 2; in inspect_apk()
191 scope->namespaces[match[2]] = match[3]; in inspect_apk()
192 } else if (regex_match(line, match, ELEMENT_REGEX)) { in inspect_apk()
195 string str = match[2]; in inspect_apk()
203 element->lineno = atoi(match[3].str().c_str()); in inspect_apk()
204 element->depth = match[1].length() / 2; in inspect_apk()
217 } else if (regex_match(line, match, ATTR_REGEX)) { in inspect_apk()
220 string str = match[2]; in inspect_apk()
[all …]
/frameworks/base/core/java/android/animation/
DStateListAnimator.java164 Tuple match = null; in setState() local
169 match = tuple; in setState()
173 if (match == mLastMatch) { in setState()
179 mLastMatch = match; in setState()
180 if (match != null) { in setState()
181 start(match); in setState()
185 private void start(Tuple match) { in start() argument
186 match.mAnimator.setTarget(getTarget()); in start()
187 mRunningAnimator = match.mAnimator; in start()
/frameworks/base/core/tests/coretests/src/android/app/
DSuggestionProvider.java65 int match = sURLMatcher.match(url); in query() local
66 switch (match) { in query()
87 int match = sURLMatcher.match(url); in getType() local
88 switch (match) { in getType()
/frameworks/base/core/java/android/inputmethodservice/
DInlineSuggestionSessionController.java108 if (mImeInputStarted && match(mSession.getRequestInfo())) { in onMakeInlineSuggestionsRequest()
140 if (!mSession.isCallbackInvoked() && match(mSession.getRequestInfo())) { in notifyOnStartInput()
229 boolean match(@Nullable InlineSuggestionsRequestInfo requestInfo) { in match() method in InlineSuggestionSessionController
230 return match(requestInfo, mImeClientPackageName, mImeClientFieldId); in match()
237 boolean match(@Nullable AutofillId autofillId) { in match() method in InlineSuggestionSessionController
238 return match(autofillId, mImeClientFieldId); in match()
241 private static boolean match( in match() method in InlineSuggestionSessionController
249 imeClientPackageName) && match(inlineSuggestionsRequestInfo.getAutofillId(), in match()
253 private static boolean match(@Nullable AutofillId autofillId, in match() method in InlineSuggestionSessionController
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildPolicyCriterionTypes.py222 match = criteria_pattern.match(line)
223 if match:
227 criterion_name = criterion_mapping_table[match.groupdict()['type']]
229 ''.join((w.capitalize() for w in match.groupdict()['literal'].split('_')))
230 criterion_numerical_value = match.groupdict()['values']
314 match = criteria_pattern.match(line)
315 if match:
319 criterion_name = criterion_mapping_table[match.groupdict()['type']]
321 ''.join((w.capitalize() for w in match.groupdict()['literal'].split('_')))
322 criterion_numerical_value = match.groupdict()['values']
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogEventLoggerTest.kt67 uiEventLogger[0].match( in testLogTileAlreadyAdded()
79 uiEventLogger[0].match(TileRequestDialogEvent.TILE_REQUEST_DIALOG_SHOWN, instanceId) in testLogDialogShown()
92 uiEventLogger[0].match(TileRequestDialogEvent.TILE_REQUEST_DIALOG_DISMISSED, instanceId) in testLogDialogDismissed()
106 .match(TileRequestDialogEvent.TILE_REQUEST_DIALOG_TILE_NOT_ADDED, instanceId) in testLogDialogTileNotAdded()
119 uiEventLogger[0].match(TileRequestDialogEvent.TILE_REQUEST_DIALOG_TILE_ADDED, instanceId) in testLogDialogTileAdded()
132 private fun UiEventLoggerFake.FakeUiEvent.match( in match() method in com.android.systemui.qs.external.TileRequestDialogEventLoggerTest
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java178 OffsetResult match = lookupByInstantOffsetDst(timeMillis, utcOffsetMillis, isDst); in lookupByNitz() local
179 if (match == null && isDst != null) { in lookupByNitz()
185 match = lookupByInstantOffsetDst(timeMillis, utcOffsetMillis, null /* isDst */); in lookupByNitz()
187 return match; in lookupByNitz()
267 TimeZone match = null; in lookupByInstantOffsetDst() local
272 if (match == null) { in lookupByInstantOffsetDst()
273 match = tz; in lookupByInstantOffsetDst()
281 if (match == null) { in lookupByInstantOffsetDst()
284 return new OffsetResult(match, isOnlyMatch); in lookupByInstantOffsetDst()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java120 int match = sURLMatcher.match(url); in getType() local
121 switch (match) { in getType()
133 int match = sURLMatcher.match(url); in openFile() local
134 switch (match) { in openFile()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DCompanionDeviceDiscoveryService.java280 final DeviceFilterPair<BluetoothDevice> match = findMatch(device, filters); in findAndReportMatches() local
281 if (match != null) { in findAndReportMatches()
282 onDeviceFound(match); in findAndReportMatches()
415 final DeviceFilterPair<ScanResult> match = findMatch(result, mFilters); in onScanResult() local
416 if (match == null) return; in onScanResult()
419 onDeviceLost(match); in onScanResult()
422 onDeviceFound(match); in onScanResult()
443 final DeviceFilterPair<BluetoothDevice> match = findMatch(device, mFilters); in onReceive()
444 if (match == null) return; in onReceive()
447 onDeviceFound(match); in onReceive()
[all …]
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java157 boolean match = false; in verify()
179 match = hostName.endsWith(cn.substring(1)); in verify()
180 if(match && strictWithSubDomains) { in verify()
183 match = countDots(hostName) == countDots(cn); in verify()
186 match = hostName.equals(cn); in verify()
188 if(match) { in verify()
192 if(!match) { in verify()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/
DEuiccRulesAuthTableTest.java165 assertTrue(EuiccRulesAuthTable.match("12", "12")); in testMatch()
166 assertTrue(EuiccRulesAuthTable.match("1E", "12")); in testMatch()
167 assertTrue(EuiccRulesAuthTable.match("12E", "12")); in testMatch()
168 assertTrue(EuiccRulesAuthTable.match("EEE", "12")); in testMatch()
169 assertTrue(EuiccRulesAuthTable.match("120", "120")); in testMatch()
170 assertTrue(EuiccRulesAuthTable.match("12E", "120")); in testMatch()
171 assertTrue(EuiccRulesAuthTable.match("EEE", "120")); in testMatch()
173 assertFalse(EuiccRulesAuthTable.match("13", "12")); in testMatch()
174 assertFalse(EuiccRulesAuthTable.match("2E", "12")); in testMatch()
175 assertFalse(EuiccRulesAuthTable.match("123", "120")); in testMatch()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioProfileVectorHelper.cpp261 int match; in checkCompatibleChannelMask() local
264 match = 100 + __builtin_popcount( in checkCompatibleChannelMask()
269 match = __builtin_popcount( in checkCompatibleChannelMask()
272 match += 100; in checkCompatibleChannelMask()
276 match = __builtin_popcount( in checkCompatibleChannelMask()
280 match = 100 + __builtin_popcount( in checkCompatibleChannelMask()
287 match = 1000; in checkCompatibleChannelMask()
293 match = 1000; in checkCompatibleChannelMask()
300 if (match > bestMatch) { in checkCompatibleChannelMask()
301 bestMatch = match; in checkCompatibleChannelMask()
/frameworks/base/core/java/android/text/method/
DDialerKeyListener.java69 int match = super.lookup(event, content); in lookup() local
71 if (match != 0) { in lookup()
72 return match; in lookup()

1234567891011