Home
last modified time | relevance | path

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

123

/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.java172 String[] tokens = string.split("[ \n]"); in WifiP2pDevice() local
175 if (tokens.length < 1) { in WifiP2pDevice()
179 switch (tokens.length) { in WifiP2pDevice()
219 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()
157 argTypeName = tokens[i++]; in parseCFunc()
165 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.java54 Watermark(Display display, DisplayMetrics dm, SurfaceSession session, String[] tokens) { in Watermark() argument
57 for (int i=0; i<tokens.length; i++) { in Watermark()
58 Log.i(WindowManagerService.TAG, " TOKEN #" + i + ": " + tokens[i]); in Watermark()
63 mTokens = tokens; in Watermark()
84 int fontSize = WindowManagerService.getPropertyInt(tokens, 1, in Watermark()
95 mDeltaX = WindowManagerService.getPropertyInt(tokens, 2, in Watermark()
97 mDeltaY = WindowManagerService.getPropertyInt(tokens, 3, in Watermark()
99 int shadowColor = WindowManagerService.getPropertyInt(tokens, 4, in Watermark()
101 int color = WindowManagerService.getPropertyInt(tokens, 5, in Watermark()
103 int shadowRadius = WindowManagerService.getPropertyInt(tokens, 6, in Watermark()
[all …]
DTaskGroup.java25 public ArrayList<IApplicationToken> tokens = new ArrayList<IApplicationToken>(); field in TaskGroup
29 return "id=" + taskId + " tokens=" + tokens; in toString()
DDisplayContent.java327 AppTokenList tokens = task.mAppTokens; in checkForDeferredActions() local
328 for (int tokenNdx = tokens.size() - 1; tokenNdx >= 0; --tokenNdx) { in checkForDeferredActions()
329 AppWindowToken wtoken = tokens.get(tokenNdx); in checkForDeferredActions()
385 AppTokenList tokens = tasks.get(taskNdx).mAppTokens; in dump() local
386 for (int tokenNdx = tokens.size() - 1; tokenNdx >= 0; --tokenNdx) { in dump()
387 final AppWindowToken wtoken = tokens.get(tokenNdx); in dump()
/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/base/core/java/android/net/
DSamplingDataTracker.java65 String[] tokens = line.split("[ ]+"); in getSamplingSnapshots() local
66 if (tokens.length < 17) { in getSamplingSnapshots()
75 String currentIface = tokens[0].split(":")[0]; in getSamplingSnapshots()
82 ss.mTxByteCount = Long.parseLong(tokens[1]); in getSamplingSnapshots()
83 ss.mTxPacketCount = Long.parseLong(tokens[2]); in getSamplingSnapshots()
84 ss.mTxPacketErrorCount = Long.parseLong(tokens[3]); in getSamplingSnapshots()
85 ss.mRxByteCount = Long.parseLong(tokens[9]); in getSamplingSnapshots()
86 ss.mRxPacketCount = Long.parseLong(tokens[10]); in getSamplingSnapshots()
87 ss.mRxPacketErrorCount = Long.parseLong(tokens[11]); in getSamplingSnapshots()
/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/java/android/content/
DUriMatcher.java167 String[] tokens = null; in addURI() local
174 tokens = PATH_SPLIT_PATTERN.split(newPath); in addURI()
177 int numTokens = tokens != null ? tokens.length : 0; in addURI()
180 String token = i < 0 ? authority : tokens[i]; in addURI()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeParameters.java143 final String[] tokens = spec.split(","); in parse() local
144 rt.mSchedule = new int[tokens.length]; in parse()
145 for (int i = 0; i < tokens.length; i++) { in parse()
146 final Matcher m = PATTERN.matcher(tokens[i]); in parse()
147 if (!m.matches()) throw new IllegalArgumentException("Bad token: " + tokens[i]); in parse()
/frameworks/base/core/tests/coretests/src/android/text/
DTextUtilsTest.java235 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize("Foo Bar (something) <foo@google.com>"); in testRfc822TokenizerFullAddress() local
236 assertNotNull(tokens); in testRfc822TokenizerFullAddress()
237 assertEquals(1, tokens.length); in testRfc822TokenizerFullAddress()
238 assertEquals("foo@google.com", tokens[0].getAddress()); in testRfc822TokenizerFullAddress()
239 assertEquals("Foo Bar", tokens[0].getName()); in testRfc822TokenizerFullAddress()
240 assertEquals("something",tokens[0].getComment()); in testRfc822TokenizerFullAddress()
245 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize("\"Foo Bar\\"); in testRfc822TokenizeItemWithError() local
246 assertNotNull(tokens); in testRfc822TokenizeItemWithError()
247 assertEquals(1, tokens.length); in testRfc822TokenizeItemWithError()
248 assertEquals("Foo Bar", tokens[0].getAddress()); in testRfc822TokenizeItemWithError()
/frameworks/volley/src/com/android/volley/toolbox/
DHttpHeaderParser.java61 String[] tokens = headerValue.split(","); in parseCacheHeaders() local
62 for (int i = 0; i < tokens.length; i++) { in parseCacheHeaders()
63 String token = tokens[i].trim(); in parseCacheHeaders()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothUtil.java89 final String[] tokens = new String[ids.length]; in uuidsToString()
90 for (int i = 0; i < tokens.length; i++) { in uuidsToString()
91 tokens[i] = uuidToString(ids[i]); in uuidsToString()
93 return TextUtils.join(",", tokens); in uuidsToString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java335 String[] tokens = ret.split(" = "); in getMacAddress() local
336 if (tokens.length == 2) return tokens[1]; in getMacAddress()
510 String[] tokens = ret.split(" "); in getBand() local
512 if (tokens.length == 2) return Integer.parseInt(tokens[1]); in getBand()
982 String[] tokens = status.split("\n"); in p2pGetDeviceAddress() local
983 for (String token : tokens) { in p2pGetDeviceAddress()
1003 String[] tokens = peerInfo.split("\n"); in getGroupCapability()
1004 for (String token : tokens) { in getGroupCapability()
1027 String[] tokens= peerInfo.split("\n"); in p2pGetParam()
1030 for (String token : tokens) { in p2pGetParam()
/frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/matcher/
DRootMatchers.java211 List<IBinder> tokens = Lists.newArrayList();
213 tokens.add(activity.getWindow().getDecorView().getApplicationWindowToken());
215 return tokens;
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java120 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(address); in constructFakeEntry() local
121 final String tokenizedAddress = tokens.length > 0 ? tokens[0].getAddress() : address; in constructFakeEntry()
/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/media/java/android/media/session/
DMediaSessionManager.java332 public void onActiveSessionsChanged(final List<MediaSession.Token> tokens) {
339 int size = tokens.size();
341 controllers.add(new MediaController(mContext, tokens.get(i)));

123