Home
last modified time | relevance | path

Searched refs:trimmed (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/net/
DPacProxySelector.java100 String trimmed = s.trim(); in parseResponse() local
101 if (trimmed.equals("DIRECT")) { in parseResponse()
103 } else if (trimmed.startsWith(PROXY)) { in parseResponse()
104 Proxy proxy = proxyFromHostPort(Type.HTTP, trimmed.substring(PROXY.length())); in parseResponse()
108 } else if (trimmed.startsWith(SOCKS)) { in parseResponse()
109 Proxy proxy = proxyFromHostPort(Type.SOCKS, trimmed.substring(SOCKS.length())); in parseResponse()
/frameworks/base/tools/aapt2/java/
DAnnotationProcessor.cpp93 const StringPiece trimmed = util::TrimWhitespace(comment); in AppendCommentLine() local
94 if (trimmed.empty()) { in AppendCommentLine()
99 if (trimmed.size() != comment.size()) { in AppendCommentLine()
100 comment = trimmed.to_string(); in AppendCommentLine()
/frameworks/base/tools/aapt2/util/
DUtil_test.cpp42 const StringPiece trimmed = util::TrimWhitespace("\n "); in TEST() local
43 EXPECT_TRUE(trimmed.empty()); in TEST()
44 EXPECT_THAT(trimmed, SizeIs(0u)); in TEST()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.cpp324 StringPiece trimmed = util::TrimWhitespace(iter->value); in FindNonEmptyAttribute() local
325 if (!trimmed.empty()) { in FindNonEmptyAttribute()
326 return trimmed; in FindNonEmptyAttribute()
/frameworks/rs/script_api/
DSpecification.cpp130 const string trimmed = type.substr(0, last); in getVectorSizeAndBaseType() local
131 int i = findCType(trimmed); in getVectorSizeAndBaseType()
133 baseType = trimmed; in getVectorSizeAndBaseType()
/frameworks/base/tools/aapt2/
DResourceParser.cpp367 StringPiece trimmed = util::TrimLeadingWhitespace(first_segment->data); in FlattenXmlSubtree() local
368 if (trimmed.size() != first_segment->data.size()) { in FlattenXmlSubtree()
369 first_segment->data = trimmed.to_string(); in FlattenXmlSubtree()
375 StringPiece trimmed = util::TrimTrailingWhitespace(last_segment->data); in FlattenXmlSubtree() local
376 if (trimmed.size() != last_segment->data.size()) { in FlattenXmlSubtree()
377 last_segment->data = trimmed.to_string(); in FlattenXmlSubtree()
/frameworks/base/core/java/android/text/
DTextUtils.java2288 T trimmed = trimToSize(text, size); in trimToLengthWithEllipsis() local
2289 if (text != null && trimmed.length() < text.length()) { in trimToLengthWithEllipsis()
2290 trimmed = (T) (trimmed.toString() + "..."); in trimToLengthWithEllipsis()
2292 return trimmed; in trimToLengthWithEllipsis()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentTasksTest.java1325 final ArrayList<Task> trimmed = mCallbacksRecorder.mTrimmed; in triggerTrimAndAssertTrimmed() local
1327 assertWithMessage("Expected " + tasks.length + " trimmed tasks, got " + trimmed.size()) in triggerTrimAndAssertTrimmed()
1328 .that(trimmed).hasSize(tasks.length); in triggerTrimAndAssertTrimmed()
1332 assertWithMessage("Expected trimmed task: " + task).that(trimmed).contains(task); in triggerTrimAndAssertTrimmed()
/frameworks/base/cmds/bootanimation/
DFORMAT.md98 To save on memory, textures may be trimmed by their background color. trim.txt sequentially lists
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntry.java1784 final String trimmed = data.trim(); in addPhone() local
1787 formattedNumber = trimmed; in addPhone()
1794 final int length = trimmed.length(); in addPhone()
1796 char ch = trimmed.charAt(i); in addPhone()
/frameworks/base/core/java/android/view/
DView.java6428 final String[] trimmed = new String[i];
6429 System.arraycopy(attributes, 0, trimmed, 0, i);
6430 mAttributes = trimmed;