/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 205 public static String[] split(String str, String delims) { in split() argument 206 return split(str, delims, false); in split() 243 String str, String delims, boolean trimTokens) { in split() argument 244 StringTokenizer tokenizer = new StringTokenizer(str, delims); in split() 349 public static String[] splitAndTrim(String str, String delims) { in splitAndTrim() argument 350 return split(str, delims, true); in splitAndTrim() 354 public static int[] splitInts(String str) throws IllegalArgumentException { in splitInts() argument 355 StringTokenizer tokenizer = new StringTokenizer(str, ","); in splitInts() 366 public static long[] splitLongs(String str) throws IllegalArgumentException { in splitLongs() argument 367 StringTokenizer tokenizer = new StringTokenizer(str, ","); in splitLongs() [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | GattPMCReceiver.java | 67 String str; in onReceive() local 85 str = extras.getString("StartTime"); in onReceive() 86 Log.d(TAG, "Start Time = " + str); in onReceive() 87 startTime = Integer.valueOf(str); in onReceive() 94 str = extras.getString("WriteTime"); in onReceive() 95 Log.d(TAG, "Write Time = " + str); in onReceive() 96 writeTime = Integer.valueOf(str); in onReceive() 102 str = extras.getString("IdleTime"); in onReceive() 103 Log.d(TAG, "Idle Time = " + str); in onReceive() 104 idleTime = Integer.valueOf(str); in onReceive() [all …]
|
D | BleScanReceiver.java | 257 String str; in onReceive() local 271 str = extras.getString("ScanMode"); in onReceive() 272 Log.d(TAG, "Scan Mode = " + str); in onReceive() 273 scanMode = Integer.valueOf(str); in onReceive() 279 str = extras.getString("StartTime"); in onReceive() 280 Log.d(TAG, "Start Time = " + str); in onReceive() 281 startTime = Integer.valueOf(str); in onReceive() 287 str = extras.getString("ScanTime"); in onReceive() 288 Log.d(TAG, "Scan Time = " + str); in onReceive() 289 scanTime = Integer.valueOf(str); in onReceive() [all …]
|
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/ |
D | genPCLm.cpp | 229 void PCLmGenerator::writeStr2OutBuff(char *str) { in writeStr2OutBuff() argument 230 sint32 strSize = strlen(str); in writeStr2OutBuff() 234 memcpy(currBuffPtr, str, strSize); in writeStr2OutBuff() 617 char str[512]; in injectImageTransform() local 619 sprintf(str, "q /image Do Q\n"); in injectImageTransform() 620 strLength = strlen(str); in injectImageTransform() 643 sprintf(pOutStr, "%s", str); in injectImageTransform() 653 char str[512]; in injectJPEG() local 731 sprintf(str, "q /image Do Q\n"); in injectJPEG() 745 void writeStr2Buff(char *buffer, char *str) { in writeStr2Buff() argument [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | IOCase.java | 178 public boolean checkStartsWith(String str, String start) { in checkStartsWith() argument 179 return str.regionMatches(!sensitive, 0, start, 0, start.length()); in checkStartsWith() 193 public boolean checkEndsWith(String str, String end) { in checkEndsWith() argument 195 return str.regionMatches(!sensitive, str.length() - endLen, end, 0, endLen); in checkEndsWith() 210 public boolean checkRegionMatches(String str, int strStartIndex, String search) { in checkRegionMatches() argument 211 return str.regionMatches(!sensitive, strStartIndex, search, 0, search.length()); in checkRegionMatches() 221 String convertCase(String str) { in convertCase() argument 222 if (str == null) { in convertCase() 225 return sensitive ? str : str.toLowerCase(); in convertCase()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | LoggerUtils.java | 72 String str = ""; in getActionStr() local 75 str += getFieldName(action.touch, Action.Touch.class); in getActionStr() 77 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr() 81 str += getFieldName(action.command, Action.Command.class); in getActionStr() 87 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr() 89 return str; in getActionStr() 96 String str = ""; in getTargetStr() local 99 str = getItemStr(t); in getTargetStr() 102 str = getFieldName(t.controlType, ControlType.class); in getTargetStr() 105 str = getFieldName(t.containerType, ContainerType.class); in getTargetStr() [all …]
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CaptureDataSerializer.java | 185 StringBuilder str = new StringBuilder(); in toString() local 186 str.append("LensShadingMap{"); in toString() 194 str.append(channelName[ch]); in toString() 195 str.append(":("); in toString() 198 str.append("["); in toString() 201 str.append(gain); in toString() 203 str.append(", "); in toString() 206 str.append("]"); in toString() 208 str.append(", "); in toString() 212 str.append(")"); in toString() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | prettywriter.h | 73 bool String(const Ch* str, SizeType length, bool copy = false) { 76 return Base::WriteString(str, length); 80 bool String(const std::basic_string<Ch>& str) { in String() argument 81 return String(str.data(), SizeType(str.size())); in String() 91 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); } 141 bool String(const Ch* str) { return String(str, internal::StrLen(str)); } in String() argument 142 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); } in Key() argument
|
D | document.h | 286 GenericStringRef(const CharType (&str)[N]) RAPIDJSON_NOEXCEPT // NOLINT, implicit 287 : s(str), length(N-1) {} 308 explicit GenericStringRef(const CharType* str) 309 : s(str), length(internal::StrLen(str)){ RAPIDJSON_ASSERT(s != NULL); } 318 GenericStringRef(const CharType* str, SizeType len) 319 : s(str), length(len) { RAPIDJSON_ASSERT(s != NULL); } 332 GenericStringRef(CharType (&str)[N]) /* = delete */; // NOLINT, implicit 348 inline GenericStringRef<CharType> StringRef(const CharType* str) { 349 return GenericStringRef<CharType>(str, internal::StrLen(str)); 368 inline GenericStringRef<CharType> StringRef(const CharType* str, size_t length) { [all …]
|
D | writer.h | 122 bool String(const Ch* str, SizeType length, bool copy = false) { 125 return WriteString(str, length); 129 bool String(const std::basic_string<Ch>& str) { in String() argument 130 return String(str.data(), SizeType(str.size())); in String() 140 … bool Key(const Ch* str, SizeType length, bool copy = false) { return String(str, length, copy); } 175 bool String(const Ch* str) { return String(str, internal::StrLen(str)); } in String() argument 176 bool Key(const Ch* str) { return Key(str, internal::StrLen(str)); } in Key() argument 244 bool WriteString(const Ch* str, SizeType length) { in WriteString() argument 259 GenericStringStream<SourceEncoding> is(str); in WriteString()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 59 StringBuilder str = new StringBuilder(); in toString() local 60 str.append("Device(addr="); in toString() 61 str.append(address); in toString() 62 str.append(" name=\""); in toString() 63 str.append(name); in toString() 64 str.append("\" leds="); in toString() 65 str.append(leds); in toString() 66 str.append("\" configuration_type="); in toString() 67 str.append(configurationType); in toString() 68 str.append(")"); in toString() [all …]
|
/packages/apps/Test/connectivity/sl4n/ |
D | main.cpp | 44 char str[SOCK_BUF_LEN]; in SockTest() local 82 memset(str, MEMSET_VALUE, sizeof(str)); in SockTest() 83 int read_result = read(comm_fd, str, SOCK_BUF_LEN); in SockTest() 90 d.Parse(str); in SockTest() 95 strncpy(str, str2.c_str(), sizeof(str)-1); in SockTest() 96 int result = write(comm_fd, str, strlen(str)+1); in SockTest()
|
/packages/apps/SecureElement/src/com/android/se/internal/ |
D | ByteArrayConverter.java | 126 public static byte[] hexStringToByteArray(String str, int offset, int length) { in hexStringToByteArray() argument 131 str = str.toUpperCase(); in hexStringToByteArray() 133 byte[] outputBytes = new byte[str.length() / 2]; in hexStringToByteArray() 136 char c1 = str.charAt(i + offset); in hexStringToByteArray() 137 char c2 = str.charAt(i + 1 + offset); in hexStringToByteArray() 154 public static byte[] hexStringToByteArray(String str) { in hexStringToByteArray() argument 155 return hexStringToByteArray(str, 0, str.length()); in hexStringToByteArray()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | CarrierIdProvider.java | 439 for (String str : attr.mccmncTuple) { in convertCarrierAttrToContentValues() 440 cv.put(CarrierId.All.MCCMNC, str); in convertCarrierAttrToContentValues() 447 for (String str : attr.imsiPrefixXpattern) { in convertCarrierAttrToContentValues() 448 cv.put(CarrierId.All.IMSI_PREFIX_XPATTERN, str); in convertCarrierAttrToContentValues() 455 for (String str : attr.gid1) { in convertCarrierAttrToContentValues() 456 cv.put(CarrierId.All.GID1, str.toLowerCase()); in convertCarrierAttrToContentValues() 463 for (String str : attr.gid2) { in convertCarrierAttrToContentValues() 464 cv.put(CarrierId.All.GID2, str.toLowerCase()); in convertCarrierAttrToContentValues() 471 for (String str : attr.plmn) { in convertCarrierAttrToContentValues() 472 cv.put(CarrierId.All.PLMN, str); in convertCarrierAttrToContentValues() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | readertest.cpp | 103 #define TEST_INTEGER(Handler, str, x) \ in TEST() argument 105 StringStream s(str); \ in TEST() 178 #define TEST_DOUBLE(fullPrecision, str, x) \ in TestParseDouble() argument 180 StringStream s(str); \ in TestParseDouble() 189 printf(" String: %s\n Actual: %.17g\nExpected: %.17g\n", str, h.actual_, x); \ in TestParseDouble() 414 #define TEST_NUMBER_ERROR(errorCode, str) \ in TEST() argument 417 sprintf(buffer, "%s", str); \ in TEST() 456 bool String(const typename Encoding::Ch* str, size_t length, bool copy) { in String() 460 …memcpy(const_cast<typename Encoding::Ch*>(str_), str, (length + 1) * sizeof(typename Encoding::Ch)… in String() 463 str_ = str; in String() [all …]
|
D | valuetest.cpp | 672 std::string str = "Hello World"; in TEST() local 673 str[5] = '\0'; in TEST() 674 EXPECT_STREQ(str.data(),"Hello"); // embedded '\0' in TEST() 675 EXPECT_EQ(str.size(), 11u); in TEST() 678 Value vs0(StringRef(str)); in TEST() 680 EXPECT_EQ(vs0.GetString(), str.data()); in TEST() 681 EXPECT_EQ(vs0.GetStringLength(), str.size()); in TEST() 682 TestEqual(vs0, str); in TEST() 685 Value vs1(str, allocator); in TEST() 687 EXPECT_NE(vs1.GetString(), str.data()); in TEST() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 433 public static boolean isToken(String str) { in isToken() argument 439 final int length = str.length(); in isToken() 444 char ch = str.charAt(idx); in isToken() 452 private static boolean isAtomPhrase(String str) { in isAtomPhrase() argument 457 final int length = str.length(); in isAtomPhrase() 459 char ch = str.charAt(idx); in isAtomPhrase() 471 private static boolean isDotAtomText(String str) { in isDotAtomText() argument 478 final int length = str.length(); in isDotAtomText() 483 char ch = str.charAt(idx); in isDotAtomText() 500 private static String quote(String str) { in quote() argument [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | StoreUtils.java | 87 public static ComponentName stringToComponentName(String str) { in stringToComponentName() argument 88 int sep = str.indexOf('/'); in stringToComponentName() 89 if (sep < 0 || (sep+1) >= str.length()) { in stringToComponentName() 92 String pkg = str.substring(0, sep); in stringToComponentName() 93 String cls = str.substring(sep+1); in stringToComponentName() 164 final String str = bundle.getString(attrName); in getStringAttrFromPersistableBundle() local 165 return str == null ? null : converter.apply(str); in getStringAttrFromPersistableBundle()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | DefaultSuggestionView.java | 127 private CharSequence formatText(String str, Suggestion suggestion) { in formatText() argument 129 if (isHtml && looksLikeHtml(str)) { in formatText() 130 return Html.fromHtml(str); in formatText() 132 return str; in formatText() 136 private boolean looksLikeHtml(String str) { in looksLikeHtml() argument 137 if (TextUtils.isEmpty(str)) return false; in looksLikeHtml() 138 for (int i = str.length() - 1; i >= 0; i--) { in looksLikeHtml() 139 char c = str.charAt(i); in looksLikeHtml()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | MatrixFit.java | 135 String str = "x" + j + "' = "; in printEquation() local 137 str += "x" + i + " * " + mMatrix[i][j+mDimension+1] + " + "; in printEquation() 139 str += mMatrix[mDimension][j+mDimension+1]; in printEquation() 140 Log.v(LOGTAG, str); in printEquation() 147 String str = ""; in printMatrix() local 149 str += "" + matrix[i][j] + " "; in printMatrix() 151 Log.v(LOGTAG, str); in printMatrix()
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.cpp | 379 char str[255]; in AddFrame() local 381 sprintf(str,"[%dx%d] %p\n",m_im_width,m_im_height,im); in AddFrame() 382 strcat(profile_string, str); in AddFrame() 394 sprintf(str,"Corner Detection [%d corners] = %g ms\n",m_nr_corners_ins, elapsedTimeCorner); in AddFrame() 395 strcat(profile_string, str); in AddFrame() 414 sprintf(str,"Matching [%d] = %g ms\n",m_nr_matches,elapsedTimeMatch); in AddFrame() 415 strcat(profile_string, str); in AddFrame() 444 sprintf(str,"Homography = %g ms\n",elapsedTimeHomography); in AddFrame() 445 strcat(profile_string, str); in AddFrame() 468 sprintf(str,"#Inliers = %d \n",m_num_inlier_indices); in AddFrame() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | BmessageParser.java | 72 public static Bmessage createBmessage(String str) { in createBmessage() argument 76 Log.d(TAG, "actual wired contents: " + str); in createBmessage() 80 p.parse(str); in createBmessage() 107 private void parse(String str) throws IOException, ParseException { in parse() argument 114 mParser = new BmsgTokenizer(str + CRLF); in parse() 383 private VCardEntry parseVcard(String str) throws IOException, ParseException { in parseVcard() argument 392 p.parse(new ByteArrayInputStream(str.getBytes())); in parseVcard() 403 p.parse(new ByteArrayInputStream(str.getBytes())); in parseVcard()
|
D | BmsgTokenizer.java | 33 public BmsgTokenizer(String str) { in BmsgTokenizer() argument 34 this(str, 0); in BmsgTokenizer() 37 public BmsgTokenizer(String str, int offset) { in BmsgTokenizer() argument 38 mStr = str; in BmsgTokenizer() 40 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppUtils.java | 145 private static String removeFirstAndLastDoubleQuotes(String str) { in removeFirstAndLastDoubleQuotes() argument 146 if (TextUtils.isEmpty(str)) { in removeFirstAndLastDoubleQuotes() 147 return str; in removeFirstAndLastDoubleQuotes() 151 int end = str.length() - 1; in removeFirstAndLastDoubleQuotes() 152 if (str.charAt(begin) == '\"') { in removeFirstAndLastDoubleQuotes() 155 if (str.charAt(end) == '\"') { in removeFirstAndLastDoubleQuotes() 158 return str.substring(begin, end+1); in removeFirstAndLastDoubleQuotes()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppUtils.java | 153 private static String removeFirstAndLastDoubleQuotes(String str) { in removeFirstAndLastDoubleQuotes() argument 154 if (TextUtils.isEmpty(str)) { in removeFirstAndLastDoubleQuotes() 155 return str; in removeFirstAndLastDoubleQuotes() 159 int end = str.length() - 1; in removeFirstAndLastDoubleQuotes() 160 if (str.charAt(begin) == '\"') { in removeFirstAndLastDoubleQuotes() 163 if (str.charAt(end) == '\"') { in removeFirstAndLastDoubleQuotes() 166 return str.substring(begin, end+1); in removeFirstAndLastDoubleQuotes()
|