Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 376) sorted by relevance

12345678910>>...16

/frameworks/base/tools/split-select/
DRule.cpp25 inline static void indentStr(String8& str, int indent) { in indentStr() argument
27 str.append(" "); in indentStr()
43 String8 str; in toJson() local
44 indentStr(str, indent); in toJson()
45 str.append("{\n"); in toJson()
47 indentStr(str, indent); in toJson()
48 str.append("\"op\": \""); in toJson()
51 str.append("ALWAYS_TRUE"); in toJson()
54 str.append("GREATER_THAN"); in toJson()
57 str.append("LESS_THAN"); in toJson()
[all …]
/frameworks/base/tools/aapt/
DAaptConfig.h37 bool parse(const android::String8& str, ConfigDescription* out = NULL);
45 bool parseCommaSeparatedList(const android::String8& str, std::set<ConfigDescription>* outSet);
55 bool parseMcc(const char* str, android::ResTable_config* out = NULL);
56 bool parseMnc(const char* str, android::ResTable_config* out = NULL);
57 bool parseLayoutDirection(const char* str, android::ResTable_config* out = NULL);
58 bool parseSmallestScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
59 bool parseScreenWidthDp(const char* str, android::ResTable_config* out = NULL);
60 bool parseScreenHeightDp(const char* str, android::ResTable_config* out = NULL);
61 bool parseScreenLayoutSize(const char* str, android::ResTable_config* out = NULL);
62 bool parseScreenLayoutLong(const char* str, android::ResTable_config* out = NULL);
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/asm/
Dpvmp3_mdct_18_gcc.s83 str r9,[r0],#4
87 str lr,[r1],#-4
99 str r0,[r5,#0x40]
102 str r0,[r5,#0x38]
105 str r1,[r5,#0x30]
108 str r12,[r5,#0x28]
110 str r12,[r5,#0x20]
112 str r12,[r5,#0x18]
114 str r12,[r5,#0x10]
116 str r12,[r5,#8]
[all …]
Dpvmp3_dct_16_gcc.s56 str r2,[sp,#0x14]
65 str r3,[sp]
87 str r4,[sp,#4]
95 str lr,[sp,#0x10]
112 str r9,[sp,#0xc]
115 str r9,[sp,#0x18]
120 str r9,[sp,#8]
140 str r8,[r0]
143 str r8,[r0,#0x20]
148 str r3,[r0,#0x10]
[all …]
/frameworks/av/services/audiopolicy/utilities/convert/
Dconvert.h108 static inline bool fromString(const std::string &str, T &result)
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
127 std::stringstream ss(str);
131 if (str.substr(0, 2) == "0x") {
146 static inline bool toString(const T &value, std::string &str)
156 str = oss.str();
167 static inline bool run(const std::string &str, dstType &result)
169 return fromString<dstType>(str, result);
177 static inline bool run(const srcType &str, std::string &result)
[all …]
/frameworks/base/tools/aapt2/
DStringPiece.h41 BasicStringPiece(const BasicStringPiece<TChar>& str);
42 BasicStringPiece(const std::basic_string<TChar>& str);
43 BasicStringPiece(const TChar* str);
44 BasicStringPiece(const TChar* str, size_t len);
47 BasicStringPiece<TChar>& assign(const TChar* str, size_t len);
85 inline BasicStringPiece<TChar>::BasicStringPiece(const BasicStringPiece<TChar>& str) : in BasicStringPiece() argument
86 mData(str.mData), mLength(str.mLength) { in BasicStringPiece()
90 inline BasicStringPiece<TChar>::BasicStringPiece(const std::basic_string<TChar>& str) : in BasicStringPiece() argument
91 mData(str.data()), mLength(str.length()) { in BasicStringPiece()
95 inline BasicStringPiece<char>::BasicStringPiece(const char* str) : in BasicStringPiece() argument
[all …]
DUtil.h34 std::vector<std::string> split(const StringPiece& str, char sep);
35 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep);
41 bool stringStartsWith(const BasicStringPiece<T>& str, const BasicStringPiece<T>& prefix) { in stringStartsWith() argument
42 if (str.size() < prefix.size()) { in stringStartsWith()
45 return str.substr(0, prefix.size()) == prefix; in stringStartsWith()
52 bool stringEndsWith(const BasicStringPiece<T>& str, const BasicStringPiece<T>& suffix) { in stringEndsWith() argument
53 if (str.size() < suffix.size()) { in stringEndsWith()
56 return str.substr(str.size() - suffix.size(), suffix.size()) == suffix; in stringEndsWith()
63 StringPiece16 trimWhitespace(const StringPiece16& str);
77 StringPiece16::const_iterator findNonAlphaNumericAndNotInSet(const StringPiece16& str,
[all …]
DUtil.cpp34 static std::vector<std::string> splitAndTransform(const StringPiece& str, char sep, in splitAndTransform() argument
37 const StringPiece::const_iterator end = std::end(str); in splitAndTransform()
38 StringPiece::const_iterator start = std::begin(str); in splitAndTransform()
42 parts.emplace_back(str.substr(start, current).toString()); in splitAndTransform()
52 std::vector<std::string> split(const StringPiece& str, char sep) { in split() argument
53 return splitAndTransform(str, sep, nullptr); in split()
56 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep) { in splitAndLowercase() argument
57 return splitAndTransform(str, sep, ::tolower); in splitAndLowercase()
60 StringPiece16 trimWhitespace(const StringPiece16& str) { in trimWhitespace() argument
61 if (str.size() == 0 || str.data() == nullptr) { in trimWhitespace()
[all …]
DResourceParser.h46 static void extractResourceName(const StringPiece16& str, StringPiece16* outPackage,
56 static bool tryParseReference(const StringPiece16& str, ResourceNameRef* outReference,
63 static bool tryParseAttributeReference(const StringPiece16& str,
74 static bool parseStyleParentReference(const StringPiece16& str, Reference* outReference,
82 static std::unique_ptr<Reference> tryParseReference(const StringPiece16& str,
89 static std::unique_ptr<BinaryPrimitive> tryParseNullOrEmpty(const StringPiece16& str);
95 static std::unique_ptr<BinaryPrimitive> tryParseColor(const StringPiece16& str);
101 static std::unique_ptr<BinaryPrimitive> tryParseBool(const StringPiece16& str);
107 static std::unique_ptr<BinaryPrimitive> tryParseInt(const StringPiece16& str);
113 static std::unique_ptr<BinaryPrimitive> tryParseFloat(const StringPiece16& str);
[all …]
/frameworks/base/core/java/android/net/
DDhcpInfo.java53 StringBuffer str = new StringBuffer(); in toString() local
55 str.append("ipaddr "); putAddress(str, ipAddress); in toString()
56 str.append(" gateway "); putAddress(str, gateway); in toString()
57 str.append(" netmask "); putAddress(str, netmask); in toString()
58 str.append(" dns1 "); putAddress(str, dns1); in toString()
59 str.append(" dns2 "); putAddress(str, dns2); in toString()
60 str.append(" DHCP server "); putAddress(str, serverAddress); in toString()
61 str.append(" lease ").append(leaseDuration).append(" seconds"); in toString()
63 return str.toString(); in toString()
/frameworks/base/core/java/android/text/
DBidiFormatter.java302 public String markAfter(String str, TextDirectionHeuristic heuristic) { in markAfter() argument
303 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter()
305 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter()
308 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter()
331 public String markBefore(String str, TextDirectionHeuristic heuristic) { in markBefore() argument
332 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore()
334 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore()
337 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore()
350 public boolean isRtl(String str) { in isRtl() argument
351 return mDefaultTextDirectionHeuristic.isRtl(str, 0, str.length()); in isRtl()
[all …]
/frameworks/support/v4/java/android/support/v4/text/
DBidiFormatter.java296 private String markAfter(String str, TextDirectionHeuristicCompat heuristic) { in markAfter() argument
297 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter()
299 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter()
302 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter()
323 private String markBefore(String str, TextDirectionHeuristicCompat heuristic) { in markBefore() argument
324 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore()
326 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore()
329 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore()
342 public boolean isRtl(String str) { in isRtl() argument
343 return mDefaultTextDirectionHeuristicCompat.isRtl(str, 0, str.length()); in isRtl()
[all …]
/frameworks/av/media/libmedia/
DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; in AudioParameter() local
42 strcpy(str, keyValuePairs.string()); in AudioParameter()
43 char *pair = strtok_r(str, ";", &last); in AudioParameter()
65 delete[] str; in AudioParameter()
75 String8 str = String8(""); in toString() local
79 str += mParameters.keyAt(i); in toString()
80 str += "="; in toString()
81 str += mParameters.valueAt(i); in toString()
82 if (i < (size - 1)) str += ";"; in toString()
84 return str; in toString()
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DAtomicFile.java98 FileOutputStream str = null; in startWrite() local
100 str = new FileOutputStream(mBaseName); in startWrite()
107 str = new FileOutputStream(mBaseName); in startWrite()
112 return str; in startWrite()
121 public void finishWrite(FileOutputStream str) { in finishWrite() argument
122 if (str != null) { in finishWrite()
123 sync(str); in finishWrite()
125 str.close(); in finishWrite()
138 public void failWrite(FileOutputStream str) { in failWrite() argument
139 if (str != null) { in failWrite()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java141 StringBuffer str = new StringBuffer ("States: "); in validateNetworkDisconnection() local
142 str.append(printStates()); in validateNetworkDisconnection()
144 str.append(String.format(" Initial state should be CONNECTED, but it is %s.", in validateNetworkDisconnection()
146 mReason = str.toString(); in validateNetworkDisconnection()
151 str.append(String.format(" Last state should be DISCONNECTED, but it is %s", in validateNetworkDisconnection()
153 mReason = str.toString(); in validateNetworkDisconnection()
167 str.append(String.format(" Transition state from %s to %s is not valid", in validateNetworkDisconnection()
169 mReason = str.toString(); in validateNetworkDisconnection()
173 mReason = str.toString(); in validateNetworkDisconnection()
182 StringBuffer str = new StringBuffer("States "); in validateNetworkConnection() local
[all …]
/frameworks/base/core/java/android/hardware/
DCamera.java2654 String str = get(KEY_PREVIEW_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewSizes() local
2655 return splitSize(str); in getSupportedPreviewSizes()
2674 String str = get(KEY_VIDEO_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedVideoSizes() local
2675 return splitSize(str); in getSupportedVideoSizes()
2734 String str = get(KEY_JPEG_THUMBNAIL_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedJpegThumbnailSizes() local
2735 return splitSize(str); in getSupportedJpegThumbnailSizes()
2810 String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFrameRates() local
2811 return splitInt(str); in getSupportedPreviewFrameRates()
2865 String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFpsRange() local
2866 return splitRange(str); in getSupportedPreviewFpsRange()
[all …]
/frameworks/av/cmds/screenrecord/
DTextRenderer.cpp156 const char* str = str8.string(); in computeScaledStringWidth() local
157 return computeScaledStringWidth(str, strlen(str)); in computeScaledStringWidth()
169 float TextRenderer::computeScaledStringWidth(const char* str, in computeScaledStringWidth() argument
173 size_t chi = glyphIndex(str[i]); in computeScaledStringWidth()
189 const char* str = str8.string(); in drawString() local
190 size_t len = strlen(str); // again, unsure about String8 handling in drawString()
200 size_t chi = glyphIndex(str[i]); in drawString()
254 float xpos, float ypos, const String8& str) { in drawWrappedString() argument
255 ALOGV("drawWrappedString %.3f,%.3f '%s'", xpos, ypos, str.string()); in drawWrappedString()
278 float stringWidth = computeScaledStringWidth(str); in drawWrappedString()
[all …]
/frameworks/base/core/java/android/util/
DSpline.java216 StringBuilder str = new StringBuilder(); in toString() local
218 str.append("MonotoneCubicSpline{["); in toString()
221 str.append(", "); in toString()
223 str.append("(").append(mX[i]); in toString()
224 str.append(", ").append(mY[i]); in toString()
225 str.append(": ").append(mM[i]).append(")"); in toString()
227 str.append("]}"); in toString()
228 return str.toString(); in toString()
279 StringBuilder str = new StringBuilder(); in toString() local
281 str.append("LinearSpline{["); in toString()
[all …]
DAtomicFile.java100 FileOutputStream str = null; in startWrite() local
102 str = new FileOutputStream(mBaseName); in startWrite()
113 str = new FileOutputStream(mBaseName); in startWrite()
118 return str; in startWrite()
127 public void finishWrite(FileOutputStream str) { in finishWrite() argument
128 if (str != null) { in finishWrite()
129 FileUtils.sync(str); in finishWrite()
131 str.close(); in finishWrite()
144 public void failWrite(FileOutputStream str) { in failWrite() argument
145 if (str != null) { in failWrite()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java68 FileOutputStream str = null; in startWrite() local
70 str = new FileOutputStream(mBaseName); in startWrite()
81 str = new FileOutputStream(mBaseName); in startWrite()
86 return str; in startWrite()
89 public void finishWrite(FileOutputStream str) { in finishWrite() argument
90 if (str != null) { in finishWrite()
91 FileUtils.sync(str); in finishWrite()
93 str.close(); in finishWrite()
101 public void failWrite(FileOutputStream str) { in failWrite() argument
102 if (str != null) { in failWrite()
[all …]
/frameworks/compile/mclinker/lib/LD/
DDebugString.cpp52 const char* str = strings.data(); in merge() local
53 const char* str_end = str + pSection.size(); in merge()
54 while (str < str_end) { in merge()
55 size_t len = string_length(str); in merge()
56 m_StringTable.insertString(llvm::StringRef(str, len)); in merge()
57 str = str + len + 1; in merge()
79 const char* str = d_str.data() + offset; in applyOffset() local
83 m_StringTable.getOutputOffset(llvm::StringRef(str, string_length(str)))); in applyOffset()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java26 private void verifyDuration(String str, in verifyDuration() argument
31 duration.parse(str); in verifyDuration()
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); in verifyDuration()
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); in verifyDuration()
35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration()
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); in verifyDuration()
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); in verifyDuration()
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds); in verifyDuration()
/frameworks/av/camera/
DCameraParameters2.cpp112 char str[16]; in set() local
113 sprintf(str, "%d", value); in set()
114 set(key, str); in set()
119 char str[16]; // 14 should be enough. We overestimate to be safe. in setFloat() local
120 snprintf(str, sizeof(str), "%g", value); in setFloat()
121 set(key, str); in setFloat()
185 static int parse_pair(const char *str, int *first, int *second, char delim, in parse_pair() argument
190 int w = (int)strtol(str, &end, 10); in parse_pair()
193 ALOGE("Cannot find delimeter (%c) in str=%s", delim, str); in parse_pair()
237 char str[32]; in setPreviewSize() local
[all …]
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp41 ScopedUtfChars str(env, lang); in FontFamily_create() local
42 fontLanguage = FontLanguage(str.c_str(), str.size()); in FontFamily_create()
61 ScopedUtfChars str(env, path); in FontFamily_addFont() local
62 SkTypeface* face = SkTypeface::CreateFromFile(str.c_str()); in FontFamily_addFont()
64 ALOGE("addFont failed to create font %s", str.c_str()); in FontFamily_addFont()
74 ScopedUtfChars str(env, path); in FontFamily_addFontWeightStyle() local
75 SkTypeface* face = SkTypeface::CreateFromFile(str.c_str()); in FontFamily_addFontWeightStyle()
77 ALOGE("addFont failed to create font %s", str.c_str()); in FontFamily_addFontWeightStyle()
101 ScopedUtfChars str(env, jpath); in FontFamily_addFontFromAsset() local
102 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAsset()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java253 StringBuilder str = new StringBuilder(); in toString() local
254 str.append("LensShadingMap{"); in toString()
259 str.append(channelPrefix[ch]); in toString()
262 str.append("["); in toString()
265 str.append(gain); in toString()
267 str.append(", "); in toString()
270 str.append("]"); in toString()
272 str.append(", "); in toString()
276 str.append(")"); in toString()
278 str.append(", "); in toString()
[all …]

12345678910>>...16