Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/rs/script_api/
DGenerateStubsWhiteList.cpp99 list<string> tokens{istream_iterator<string>{stream}, istream_iterator<string>{}}; in expandTypedefs() local
101 for (auto i = tokens.begin(); i != tokens.end();) { in expandTypedefs()
134 tokens.insert(i, newTokens.begin(), newTokens.end()); in expandTypedefs()
135 tokens.erase(i); in expandTypedefs()
139 return tokens; in expandTypedefs()
143 static bool eatFront(list<string>* tokens, const char* prefix) { in eatFront() argument
144 if (tokens->front() == prefix) { in eatFront()
145 tokens->pop_front(); in eatFront()
155 static const char* findManglingOfBuiltInType(list<string>* tokens) { in findManglingOfBuiltInType() argument
157 auto t = tokens->begin(); in findManglingOfBuiltInType()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pProvDiscEvent.java58 String[] tokens = string.split(" "); in WifiP2pProvDiscEvent() local
60 if (tokens.length < 2) { in WifiP2pProvDiscEvent()
64 if (tokens[0].endsWith("PBC-REQ")) event = PBC_REQ; in WifiP2pProvDiscEvent()
65 else if (tokens[0].endsWith("PBC-RESP")) event = PBC_RSP; in WifiP2pProvDiscEvent()
66 else if (tokens[0].endsWith("ENTER-PIN")) event = ENTER_PIN; in WifiP2pProvDiscEvent()
67 else if (tokens[0].endsWith("SHOW-PIN")) event = SHOW_PIN; in WifiP2pProvDiscEvent()
72 device.deviceAddress = tokens[1]; in WifiP2pProvDiscEvent()
75 pin = tokens[2]; in WifiP2pProvDiscEvent()
DWifiP2pConfig.java70 String[] tokens = supplicantEvent.split(" "); in WifiP2pConfig() local
72 if (tokens.length < 2 || !tokens[0].equals("P2P-GO-NEG-REQUEST")) { in WifiP2pConfig()
76 deviceAddress = tokens[1]; in WifiP2pConfig()
79 if (tokens.length > 2) { in WifiP2pConfig()
80 String[] nameVal = tokens[2].split("="); in WifiP2pConfig()
DWifiP2pGroup.java100 String[] tokens = supplicantEvent.split(" "); in WifiP2pGroup() local
102 if (tokens.length < 3) { in WifiP2pGroup()
106 if (tokens[0].startsWith("P2P-GROUP")) { in WifiP2pGroup()
107 mInterface = tokens[1]; in WifiP2pGroup()
108 mIsGroupOwner = tokens[2].equals("GO"); in WifiP2pGroup()
126 } else if (tokens[0].equals("P2P-INVITATION-RECEIVED")) { in WifiP2pGroup()
129 for (String token : tokens) { in WifiP2pGroup()
DWifiP2pDevice.java181 String[] tokens = string.split("[ \n]"); in WifiP2pDevice() local
184 if (tokens.length < 1) { in WifiP2pDevice()
188 switch (tokens.length) { in WifiP2pDevice()
228 if (tokens[0].startsWith("P2P-DEVICE-FOUND")) { in WifiP2pDevice()
/frameworks/ex/common/java/com/android/common/
DRfc822Validator.java97 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(text); in isValid() local
98 return tokens.length == 1 && in isValid()
100 matcher(tokens[0].getAddress()).matches(); in isValid()
154 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(cs); in fixText()
157 for (int i = 0; i < tokens.length; i++) { in fixText()
158 String text = tokens[i].getAddress(); in fixText()
167 tokens[i].setAddress(removeIllegalCharacters(text) + "@" + mDomain); in fixText()
180 tokens[i].setAddress(fix + "@" + (!emptyDomain ? domain : mDomain)); in fixText()
184 sb.append(tokens[i].toString()); in fixText()
185 if (i + 1 < tokens.length) { in fixText()
/frameworks/native/opengl/tools/glgen/src/
DCFunc.java120 String[] tokens = s.split("\\s"); in parseCFunc() local
124 String ftypeName = tokens[i++]; in parseCFunc()
127 ftypeName = tokens[i++]; in parseCFunc()
131 String fname = tokens[i++]; in parseCFunc()
134 fname = tokens[i++]; in parseCFunc()
140 while (i < tokens.length) { in parseCFunc()
141 String tok = tokens[i++]; in parseCFunc()
144 tok = tokens[i++]; in parseCFunc()
160 argTypeName = tokens[i++]; in parseCFunc()
164 argName = tokens[i++]; in parseCFunc()
DParameterChecker.java40 String[] tokens = s.split("\\s"); in ParameterChecker() local
41 map.put(tokens[0], tokens); in ParameterChecker()
/frameworks/base/services/core/java/com/android/server/wm/
DWatermark.java56 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { in Watermark() argument
59 for (int i=0; i<tokens.length; i++) { in Watermark()
60 Log.i(TAG_WM, " TOKEN #" + i + ": " + tokens[i]); in Watermark()
65 mTokens = tokens; in Watermark()
86 int fontSize = WindowManagerService.getPropertyInt(tokens, 1, in Watermark()
97 mDeltaX = WindowManagerService.getPropertyInt(tokens, 2, in Watermark()
99 mDeltaY = WindowManagerService.getPropertyInt(tokens, 3, in Watermark()
101 int shadowColor = WindowManagerService.getPropertyInt(tokens, 4, in Watermark()
103 int color = WindowManagerService.getPropertyInt(tokens, 5, in Watermark()
105 int shadowRadius = WindowManagerService.getPropertyInt(tokens, 6, in Watermark()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DTokenBucket.java53 public TokenBucket(int deltaMs, int capacity, int tokens) { in TokenBucket() argument
56 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); in TokenBucket()
71 public void reset(int tokens) { in reset() argument
72 checkArgumentNonnegative(tokens); in reset()
73 mAvailable = Math.min(tokens, mCapacity); in reset()
/frameworks/native/opengl/libagl/
DTokenManager.cpp35 status_t TokenManager::getToken(GLsizei n, GLuint *tokens) in getToken() argument
39 *tokens++ = mTokenizer.acquire(); in getToken()
43 void TokenManager::recycleTokens(GLsizei n, const GLuint *tokens) in recycleTokens() argument
47 const GLuint token = *tokens++; in recycleTokens()
DTokenManager.h40 status_t getToken(GLsizei n, GLuint *tokens);
41 void recycleTokens(GLsizei n, const GLuint *tokens);
/frameworks/rs/tests/lldb/tests/harness/
DRS_funs.py1386 tokens = re.findall(r"[^(),;]+", line)
1387 assert len(tokens) > 0
1388 ret_name = tokens[0].split()
1394 for tok in tokens[1:]:
/frameworks/base/services/core/java/com/android/server/pm/
DPackageUsage.java124 String[] tokens = line.split(" "); in readVersion0LP() local
125 if (tokens.length != 2) { in readVersion0LP()
130 String packageName = tokens[0]; in readVersion0LP()
136 long timestamp = parseAsLong(tokens[1]); in readVersion0LP()
151 String[] tokens = line.split(" "); in readVersion1LP() local
152 if (tokens.length != PackageManager.NOTIFY_PACKAGE_USE_REASONS_COUNT + 1) { in readVersion1LP()
156 String packageName = tokens[0]; in readVersion1LP()
165 pkg.mLastPackageUsageTimeInMills[reason] = parseAsLong(tokens[reason + 1]); in readVersion1LP()
/frameworks/base/core/java/android/content/
DUriMatcher.java166 String[] tokens = null; in addURI() local
173 tokens = newPath.split("/"); in addURI()
176 int numTokens = tokens != null ? tokens.length : 0; in addURI()
179 String token = i < 0 ? authority : tokens[i]; in addURI()
/frameworks/base/core/java/com/google/android/util/
DAbstractMessageParser.java73 private ArrayList<Token> tokens; field in AbstractMessageParser
105 this.tokens = new ArrayList<Token>(); in AbstractMessageParser()
165 for (int i = 0; i < tokens.size(); ++i) { in parse()
166 if (tokens.get(i).isMedia()) { in parse()
167 if ((i > 0) && (tokens.get(i - 1) instanceof Html)) { in parse()
168 ((Html)tokens.get(i - 1)).trimLeadingWhitespace(); in parse()
170 if ((i + 1 < tokens.size()) && (tokens.get(i + 1) instanceof Html)) { in parse()
171 ((Html)tokens.get(i + 1)).trimTrailingWhitespace(); in parse()
177 for (int i = 0; i < tokens.size(); ++i) { in parse()
178 if (tokens.get(i).isHtml() && in parse()
[all …]
DSmileyParser.java64 ArrayList<Token> tokens = part.getTokens(); in getSpannableString() local
65 int len = tokens.size(); in getSpannableString()
67 Token token = tokens.get(i); in getSpannableString()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java247 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize("Foo Bar (something) <foo@google.com>"); in testRfc822TokenizerFullAddress() local
248 assertNotNull(tokens); in testRfc822TokenizerFullAddress()
249 assertEquals(1, tokens.length); in testRfc822TokenizerFullAddress()
250 assertEquals("foo@google.com", tokens[0].getAddress()); in testRfc822TokenizerFullAddress()
251 assertEquals("Foo Bar", tokens[0].getName()); in testRfc822TokenizerFullAddress()
252 assertEquals("something",tokens[0].getComment()); in testRfc822TokenizerFullAddress()
257 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize("\"Foo Bar\\"); in testRfc822TokenizeItemWithError() local
258 assertNotNull(tokens); in testRfc822TokenizeItemWithError()
259 assertEquals(1, tokens.length); in testRfc822TokenizeItemWithError()
260 assertEquals("Foo Bar", tokens[0].getAddress()); in testRfc822TokenizeItemWithError()
/frameworks/support/samples/Support13Demos/src/com/example/android/supportv13/view/inputmethod/
DCommitContentSupport.java242 final ArrayList<String> tokens = new ArrayList<>(); in flagsToString() local
244 tokens.add("INPUT_CONTENT_GRANT_READ_URI_PERMISSION"); in flagsToString()
248 tokens.add("0x" + Integer.toHexString(flags)); in flagsToString()
250 return TextUtils.join(" | ", tokens); in flagsToString()
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPRequest.java75 String[] tokens = authRequestLine.split("[ ,]+"); in generateAuthAnswer() local
77 if (tokens.length < 3 || !tokens[0].equalsIgnoreCase("digest")) { in generateAuthAnswer()
82 for (int n = 1; n < tokens.length; n++) { in generateAuthAnswer()
83 String s = tokens[n]; in generateAuthAnswer()
/frameworks/av/drm/mediacas/plugins/clearkey/
DJsonAssetLoader.cpp146 Vector<String8>* tokens) { in parseJsonObject() argument
169 tokens->clear(); in parseJsonObject()
178 tokens->add(token); in parseJsonObject()
DJsonAssetLoader.h51 const String8& jsonObject, Vector<String8>* tokens);
/frameworks/av/drm/mediadrm/plugins/clearkey/
DJsonWebKey.cpp184 Vector<String8>* tokens) { in parseJsonObject() argument
207 tokens->clear(); in parseJsonObject()
215 tokens->add(token); in parseJsonObject()
/frameworks/base/core/tests/coretests/src/android/text/method/
DEditorState.java80 final String[] tokens = string.split(" +"); in setByString() local
81 for (String token : tokens) { in setByString()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java160 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(address); in constructFakeEntry() local
161 final String tokenizedAddress = tokens.length > 0 ? tokens[0].getAddress() : address; in constructFakeEntry()

123