Home
last modified time | relevance | path

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

123456

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpControllerConstants.java169 String str = "UNKNOWN"; in dumpMessageString() local
173 str = "REQ_PASS_THROUGH_CMD"; in dumpMessageString()
176 str = "REQ_SET_PLAYER_APP_SETTING"; in dumpMessageString()
179 str = "REQ_GRP_NAV_CMD"; in dumpMessageString()
182 str = "CB_SUPPORTED_PLAYER_APP_SETTING"; in dumpMessageString()
185 str = "CB_PLAYER_APP_SETTING_CHANGED"; in dumpMessageString()
188 str = "CB_SET_ABS_VOL_CMD"; in dumpMessageString()
191 str = "CB_REGISTER_ABS_VOL"; in dumpMessageString()
194 str = "CB_TRACK_CHANGED"; in dumpMessageString()
197 str = "CB_PLAY_POS_CHANGED"; in dumpMessageString()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java205 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/UnifiedEmail/src/org/apache/commons/io/
DIOCase.java178 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/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java185 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/
Dprettywriter.h73 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
Dwriter.h122 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()
Ddocument.h286 GenericStringRef(const CharType (&str)[N]) RAPIDJSON_NOEXCEPT
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 */;
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 …]
/packages/apps/Test/connectivity/sl4n/
Dmain.cpp43 char str[SOCK_BUF_LEN]; in SockTest() local
81 memset(str, MEMSET_VALUE, sizeof(str)); in SockTest()
82 int read_result = read(comm_fd, str, SOCK_BUF_LEN); in SockTest()
89 d.Parse(str); in SockTest()
94 strncpy(str, str2.c_str(), sizeof(str)-1); in SockTest()
95 int result = write(comm_fd, str, strlen(str)+1); in SockTest()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java59 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/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndldic.c508 NJ_CHAR *str; in que_strcmp_complete_with_hyouki() local
530 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
531 if (str == NULL) { in que_strcmp_complete_with_hyouki()
537 ret = nj_strncmp(yomi, str, que_yomilen); in que_strcmp_complete_with_hyouki()
543 str = get_hyouki(iwnn, handle, que_id, &slen); in que_strcmp_complete_with_hyouki()
544 if (str == NULL) { in que_strcmp_complete_with_hyouki()
550 ret = nj_strncmp(hyouki, str, que_hyoukilen); in que_strcmp_complete_with_hyouki()
595 NJ_CHAR *str; in que_strcmp_include() local
629 str = get_string(iwnn, handle, que_id, &slen); in que_strcmp_include()
632 str = NULL; in que_strcmp_include()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DComposingText.java265 public void insertStrSegment(int layer, StrSegment str) { in insertStrSegment() argument
267 mStringLayer[layer].add(cursor, str); in insertStrSegment()
279 public void insertStrSegment(int layer1, int layer2, StrSegment str) { in insertStrSegment() argument
280 mStringLayer[layer1].add(mCursor[layer1], str); in insertStrSegment()
285 StrSegment tmp = new StrSegment(str.string, pos, pos); in insertStrSegment()
308 protected void replaceStrSegment0(int layer, StrSegment[] str, int from, int to) { in replaceStrSegment0() argument
320 for (int i = str.length - 1; i >= 0; i--) { in replaceStrSegment0()
321 strLayer.add(from, str[i]); in replaceStrSegment0()
324 modifyUpper(layer, from, str.length, to - from + 1); in replaceStrSegment0()
334 public void replaceStrSegment(int layer, StrSegment[] str, int num) { in replaceStrSegment() argument
[all …]
DCandidateFilter.java46 String str = word.candidate; in isAllowed() local
47 for (int i = 0; i < str.length(); i++) { in isAllowed()
48 if (str.charAt(i) < 0x20 || 0x7E < str.charAt(i)) { in isAllowed()
DStrSegment.java47 public StrSegment(String str) { in StrSegment() argument
48 this(str, -1, -1); in StrSegment()
67 public StrSegment(String str, int from, int to) { in StrSegment() argument
68 this.string = str; in StrSegment()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java433 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/services/Telephony/src/org/apache/james/mime4j/codec/
DEncoderUtil.java433 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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DRomkanFullKatakana.java173 StrSegment[] str = new StrSegment[MAX_LENGTH]; in convert() local
177 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i); in convert()
184 key.append(str[i].string); in convert()
195 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
200 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
202 str[MAX_LENGTH - 1].to, str[MAX_LENGTH - 1].to); in convert()
DRomkan.java169 StrSegment[] str = new StrSegment[MAX_LENGTH]; in convert() local
173 str[MAX_LENGTH - i] = text.getStrSegment(1, cursor - i); in convert()
180 key.append(str[i].string); in convert()
191 out[0] = new StrSegment(match, str[start].from, str[MAX_LENGTH - 1].to); in convert()
196 str[start].from, str[MAX_LENGTH - 1].to - 1); in convert()
198 str[MAX_LENGTH - 1].to, str[MAX_LENGTH - 1].to); in convert()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dreadertest.cpp103 #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 …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionView.java127 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/Bluetooth/src/com/android/bluetooth/pbapclient/utils/
DBmsgTokenizer.java62 public BmsgTokenizer(String str) { in BmsgTokenizer() argument
63 this(str, 0); in BmsgTokenizer()
66 public BmsgTokenizer(String str, int offset) { in BmsgTokenizer() argument
67 mStr = str; in BmsgTokenizer()
69 mMatcher = Pattern.compile("(([^:]*):(.*))?\r\n").matcher(str); in BmsgTokenizer()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DStringFilter.java12 public abstract boolean matches(String str); in matches() argument
17 public boolean matches(String str) { in matchesAll()
26 public boolean matches(String str) {
27 return validEntries.contains(str);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java135 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/UnifiedEmail/src/org/apache/commons/io/output/
DProxyWriter.java80 public void write(String str) throws IOException { in write() argument
81 out.write(str); in write()
91 public void write(String str, int st, int end) throws IOException { in write() argument
92 out.write(str, st, end); in write()
/packages/apps/Test/connectivity/sl4n/rapidjson/example/simplereader/
Dsimplereader.cpp15 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()
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Ddbreg.cpp379 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 …]

123456