/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/Launcher3/src/com/android/launcher3/logging/ |
D | LoggerUtils.java | 73 String str = ""; in getActionStr() local 76 str += getFieldName(action.touch, Action.Touch.class); in getActionStr() 78 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr() 82 str += getFieldName(action.command, Action.Command.class); in getActionStr() 88 str += " direction=" + getFieldName(action.dir, Action.Direction.class); in getActionStr() 90 return str; in getActionStr() 97 String str = ""; in getTargetStr() local 100 str = getItemStr(t); in getTargetStr() 103 str = getFieldName(t.controlType, ControlType.class); in getTargetStr() 106 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 | 442 for (String str : attr.mccmncTuple) { in convertCarrierAttrToContentValues() 443 cv.put(CarrierId.All.MCCMNC, str); in convertCarrierAttrToContentValues() 450 for (String str : attr.imsiPrefixXpattern) { in convertCarrierAttrToContentValues() 451 cv.put(CarrierId.All.IMSI_PREFIX_XPATTERN, str); in convertCarrierAttrToContentValues() 458 for (String str : attr.gid1) { in convertCarrierAttrToContentValues() 459 cv.put(CarrierId.All.GID1, str.toLowerCase()); in convertCarrierAttrToContentValues() 466 for (String str : attr.gid2) { in convertCarrierAttrToContentValues() 467 cv.put(CarrierId.All.GID2, str.toLowerCase()); in convertCarrierAttrToContentValues() 474 for (String str : attr.plmn) { in convertCarrierAttrToContentValues() 475 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/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/modules/NetworkStack/common/moduleutils/src/android/net/shared/ |
D | Layer2Information.java | 46 StringBuffer str = new StringBuffer(); in toString() local 47 str.append("L2Key: ").append(mL2Key); in toString() 48 str.append(", Cluster: ").append(mCluster); in toString() 49 str.append(", bssid: ").append(mBssid); in toString() 50 return str.toString(); in toString()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
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()
|
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() 392 private VCardEntry parseVcard(String str) throws IOException, ParseException { in parseVcard() argument 401 p.parse(new ByteArrayInputStream(str.getBytes())); in parseVcard() 412 p.parse(new ByteArrayInputStream(str.getBytes())); in parseVcard()
|
/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()
|
/packages/services/Car/tools/emulator/ |
D | vhal_emulator_test.py | 132 self._log.error("getValueFromMsg: Received malformed message: %s", str(rxMsg)) 177 cfg.prop, str(cfg), str(rxMsg.config)) 191 cfg.prop, str(rxMsg.config)) 277 prop, str(rxMsg)) 313 … self._log.error("testVms: VmsCore did not respond with AvailabilityResponse: %s", str(rxMsg)) 323 … self._log.error("testVms: VmsCore did not respond with AvailabilityResponse: %s", str(rxMsg)) 337 … self._log.error("testVms: Malformed AvailabilityResponse: index: %d %s", index, str(rxMsg))
|
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplereader/ |
D | simplereader.cpp | 15 bool String(const char* str, SizeType length, bool copy) { in String() 16 cout << "String(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; in String() 20 bool Key(const char* str, SizeType length, bool copy) { in Key() 21 cout << "Key(" << str << ", " << length << ", " << boolalpha << copy << ")" << endl; in Key()
|