Home
last modified time | relevance | path

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

12345678910

/frameworks/av/media/libstagefright/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/ml/nn/tools/api/
Dgenerate_api.py73 match = re.search(LINESEARCH, orig)
74 while match:
76 key = match[2]
83 if match[3] != "":
84 args = re.split("\s+", match[3])
97 out = out + orig[:match.start(1)] + body_out
98 orig = orig[match.end(4):]
99 match = re.search(LINESEARCH, orig)
155 match = re.search("^(%\S*)", self.line);
156 directive = match[1]
[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.java112 public boolean match(String str) { in match() method in PatternMatcher
172 static boolean matchPattern(String match, String pattern, int[] parsedPattern, int type) { in matchPattern() argument
173 if (match == null) return false; in matchPattern()
175 return pattern.equals(match); in matchPattern()
177 return match.startsWith(pattern); in matchPattern()
179 return matchGlobPattern(pattern, match); in matchPattern()
181 return matchAdvancedPattern(parsedPattern, match); in matchPattern()
186 static boolean matchGlobPattern(String pattern, String match) { in matchGlobPattern() argument
189 return match.length() <= 0; in matchGlobPattern()
191 final int NM = match.length(); 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/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDevice.java191 Matcher match; in WifiP2pDevice() local
203 match = twoTokenPattern.matcher(string); in WifiP2pDevice()
204 if (!match.find()) { in WifiP2pDevice()
207 deviceAddress = match.group(2); in WifiP2pDevice()
210 match = threeTokenPattern.matcher(string); in WifiP2pDevice()
211 if (!match.find()) { in WifiP2pDevice()
214 deviceAddress = match.group(1); in WifiP2pDevice()
217 match = detailedDevicePattern.matcher(string); in WifiP2pDevice()
218 if (!match.find()) { in WifiP2pDevice()
222 deviceAddress = match.group(3); in WifiP2pDevice()
[all …]
DWifiP2pGroup.java128 Matcher match = groupStartedPattern.matcher(supplicantEvent); in WifiP2pGroup() local
129 if (!match.find()) { in WifiP2pGroup()
133 mNetworkName = match.group(1); in WifiP2pGroup()
135 mFrequency = Integer.parseInt(match.group(2)); in WifiP2pGroup()
138 mPassphrase = match.group(4); in WifiP2pGroup()
139 mOwner = new WifiP2pDevice(match.group(5)); in WifiP2pGroup()
140 if (match.group(6) != null) { in WifiP2pGroup()
/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/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DDomainMatcher.java53 Label(int match) { in Label() argument
54 mMatch = match; in Label()
64 public void addDomain(Iterator<String> labels, int match) { in addDomain() argument
75 subLabel.addDomain(labels, match); in addDomain()
78 subLabel.mMatch = match; in addDomain()
165 int match = MATCH_NONE; in isSubDomain() local
171 match = label.getMatch(); in isSubDomain()
172 if (match == MATCH_PRIMARY) { in isSubDomain()
177 return match; in isSubDomain()
/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/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()
263 TimeZone match = null; in lookupByInstantOffsetDst() local
268 if (match == null) { in lookupByInstantOffsetDst()
269 match = tz; in lookupByInstantOffsetDst()
277 if (match == null) { in lookupByInstantOffsetDst()
280 return new OffsetResult(match, isOnlyMatch); in lookupByInstantOffsetDst()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java97 final RatTypeListener match = CollectionUtils.find(mRatListeners, in onSubscriptionsChanged() local
99 if (match != null) continue; in onSubscriptionsChanged()
119 final Integer match = CollectionUtils.find(newSubs, it -> it == listener.mSubId); in onSubscriptionsChanged() local
120 if (match != null) continue; in onSubscriptionsChanged()
141 final RatTypeListener match = CollectionUtils.find(mRatListeners, in getRatTypeForSubscriberId() local
143 return match != null ? match.mLastCollapsedRatType : TelephonyManager.NETWORK_TYPE_UNKNOWN; in getRatTypeForSubscriberId()
/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/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/engineconfigurable/tools/
DbuildCommonTypesStructureFile.py128 match = criteria_pattern.match(line)
129 if match:
133 component_type_name = component_type_mapping_table[match.groupdict()['type']]
134 component_type_literal = match.groupdict()['literal'].lower()
136 component_type_numerical_value = match.groupdict()['values']
/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/compile/slang/tests/F_reflection3264_reduce_mismatch/
Dreflection3264_reduce_mismatch.rscript6 // accumulator types need not match; function names need not match
22 // which functions are present need not match; special arguments need not match
36 // result type must match; ordinary argument types must match

12345678910