/frameworks/base/tools/split-select/ |
D | Rule.cpp | 25 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/ |
D | AaptConfig.h | 37 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/ |
D | pvmp3_mdct_18_gcc.s | 83 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 …]
|
D | pvmp3_dct_16_gcc.s | 56 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/base/core/java/android/text/ |
D | BidiFormatter.java | 305 public String markAfter(CharSequence str, TextDirectionHeuristic heuristic) { in markAfter() argument 306 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markAfter() 308 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { in markAfter() 311 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { in markAfter() 334 public String markBefore(CharSequence str, TextDirectionHeuristic heuristic) { in markBefore() argument 335 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); in markBefore() 337 if (!mIsRtlContext && (isRtl || getEntryDir(str) == DIR_RTL)) { in markBefore() 340 if (mIsRtlContext && (!isRtl || getEntryDir(str) == DIR_LTR)) { in markBefore() 353 public boolean isRtl(String str) { in isRtl() argument 354 return isRtl((CharSequence) str); in isRtl() [all …]
|
/frameworks/av/services/audiopolicy/utilities/convert/ |
D | convert.h | 108 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/ |
D | ResourceUtils.h | 40 bool extractResourceName(const StringPiece16& str, StringPiece16* outPackage, 48 bool parseResourceName(const StringPiece16& str, ResourceNameRef* outResource, 58 bool tryParseReference(const StringPiece16& str, ResourceNameRef* outReference, 64 bool isReference(const StringPiece16& str); 70 bool tryParseAttributeReference(const StringPiece16& str, ResourceNameRef* outReference); 75 bool isAttributeReference(const StringPiece16& str); 80 bool tryParseBool(const StringPiece16& str, bool* outValue); 91 Maybe<Reference> parseStyleParentReference(const StringPiece16& str, std::string* outError); 98 std::unique_ptr<Reference> tryParseReference(const StringPiece16& str, bool* outCreate = nullptr); 104 std::unique_ptr<BinaryPrimitive> tryParseNullOrEmpty(const StringPiece16& str); [all …]
|
D | ResourceUtils.cpp | 29 bool extractResourceName(const StringPiece16& str, StringPiece16* outPackage, in extractResourceName() argument 33 const char16_t* start = str.data(); in extractResourceName() 34 const char16_t* end = start + str.size(); in extractResourceName() 53 bool parseResourceName(const StringPiece16& str, ResourceNameRef* outRef, bool* outPrivate) { in parseResourceName() argument 54 if (str.empty()) { in parseResourceName() 60 if (str.data()[0] == u'*') { in parseResourceName() 68 if (!extractResourceName(str.substr(offset, str.size() - offset), &package, &type, &entry)) { in parseResourceName() 93 bool tryParseReference(const StringPiece16& str, ResourceNameRef* outRef, bool* outCreate, in tryParseReference() argument 95 StringPiece16 trimmedStr(util::trimWhitespace(str)); in tryParseReference() 139 bool isReference(const StringPiece16& str) { in isReference() argument [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Util.h | 34 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); 65 StringPiece trimWhitespace(const StringPiece& str); [all …]
|
D | StringPiece.h | 42 BasicStringPiece(const BasicStringPiece<TChar>& str); 43 BasicStringPiece(const std::basic_string<TChar>& str); 44 BasicStringPiece(const TChar* str); 45 BasicStringPiece(const TChar* str, size_t len); 48 BasicStringPiece<TChar>& assign(const TChar* str, size_t len); 87 inline BasicStringPiece<TChar>::BasicStringPiece(const BasicStringPiece<TChar>& str) : in BasicStringPiece() argument 88 mData(str.mData), mLength(str.mLength) { in BasicStringPiece() 92 inline BasicStringPiece<TChar>::BasicStringPiece(const std::basic_string<TChar>& str) : in BasicStringPiece() argument 93 mData(str.data()), mLength(str.length()) { in BasicStringPiece() 97 inline BasicStringPiece<char>::BasicStringPiece(const char* str) : in BasicStringPiece() argument [all …]
|
D | Util.cpp | 31 static std::vector<std::string> splitAndTransform(const StringPiece& str, char sep, in splitAndTransform() argument 34 const StringPiece::const_iterator end = std::end(str); in splitAndTransform() 35 StringPiece::const_iterator start = std::begin(str); in splitAndTransform() 39 parts.emplace_back(str.substr(start, current).toString()); in splitAndTransform() 49 std::vector<std::string> split(const StringPiece& str, char sep) { in split() argument 50 return splitAndTransform(str, sep, nullptr); in split() 53 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep) { in splitAndLowercase() argument 54 return splitAndTransform(str, sep, ::tolower); in splitAndLowercase() 57 StringPiece16 trimWhitespace(const StringPiece16& str) { in trimWhitespace() argument 58 if (str.size() == 0 || str.data() == nullptr) { in trimWhitespace() [all …]
|
/frameworks/base/core/java/android/net/ |
D | DhcpInfo.java | 53 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/support/v4/java/android/support/v4/text/ |
D | BidiFormatter.java | 296 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/ |
D | AudioParameter.cpp | 38 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/base/core/java/android/hardware/ |
D | Camera.java | 2660 String str = get(KEY_PREVIEW_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewSizes() local 2661 return splitSize(str); in getSupportedPreviewSizes() 2680 String str = get(KEY_VIDEO_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedVideoSizes() local 2681 return splitSize(str); in getSupportedVideoSizes() 2740 String str = get(KEY_JPEG_THUMBNAIL_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedJpegThumbnailSizes() local 2741 return splitSize(str); in getSupportedJpegThumbnailSizes() 2816 String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFrameRates() local 2817 return splitInt(str); in getSupportedPreviewFrameRates() 2871 String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFpsRange() local 2872 return splitRange(str); in getSupportedPreviewFpsRange() [all …]
|
/frameworks/support/v4/java/android/support/v4/util/ |
D | AtomicFile.java | 98 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/ |
D | NetworkState.java | 141 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/av/cmds/screenrecord/ |
D | TextRenderer.cpp | 156 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/ |
D | Spline.java | 216 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 …]
|
D | AtomicFile.java | 100 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/av/camera/ |
D | CameraParameters2.cpp | 112 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/java/com/android/internal/os/ |
D | AtomicFile.java | 68 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/ |
D | DebugString.cpp | 52 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/base/tests/WallpaperTest/src/com/example/wallpapertest/ |
D | MainActivity.java | 92 String str = view.getText().toString(); in loadPropIntText() local 93 if (str != null && !TextUtils.isEmpty(str)) { in loadPropIntText() 95 float fval = Float.parseFloat(str); in loadPropIntText() 98 Log.i(TAG, "Bad number: " + str, e); in loadPropIntText() 105 String str = view.getText().toString(); in loadFloatText() local 106 if (str != null && !TextUtils.isEmpty(str)) { in loadFloatText() 108 return Float.parseFloat(str); in loadFloatText() 110 Log.i(TAG, "Bad number: " + str, e); in loadFloatText() 117 String str = view.getText().toString(); in loadIntText() local 118 if (str != null && !TextUtils.isEmpty(str)) { in loadIntText() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | LensShadingMap.java | 253 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 …]
|