Searched defs:str (Results 176 - 200 of 217) sorted by last modified time

123456789

/frameworks/base/core/java/android/app/usage/
H A DUsageEvents.java249 private int findStringIndex(String str) { argument
250 final int index = Arrays.binarySearch(mStringPool, str);
252 throw new IllegalStateException("String '" + str + "' is not in the string pool");
/frameworks/base/core/java/android/content/
H A DComponentName.java252 * @param str The String that was returned by flattenToString().
254 * names that were encoded in <var>str</var>
258 public static ComponentName unflattenFromString(String str) { argument
259 int sep = str.indexOf('/');
260 if (sep < 0 || (sep+1) >= str.length()) {
263 String pkg = str.substring(0, sep);
264 String cls = str.substring(sep+1);
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java1498 static public Signature stringToSignature(String str) { argument
1499 final int N = str.length();
1502 sig[i] = (byte)str.charAt(i);
1673 String str = sa.getNonConfigurationString(
1675 if (str != null && str.length() > 0) {
1676 String nameError = validateName(str, true, false);
1679 + str + "\": " + nameError;
1683 pkg.mSharedUserId = str.intern();
2686 String str;
[all...]
/frameworks/base/core/java/android/content/res/
H A DStringBlock.java82 String str = nativeGetString(mNative, idx);
83 CharSequence res = str;
85 if (localLOGV) Log.v(TAG, "Got string: " + str);
134 res = applyStyles(str, style, mStyleIDs);
166 private CharSequence applyStyles(String str, int[] style, StyleIDs ids) { argument
168 return str;
170 SpannableString buffer = new SpannableString(str);
/frameworks/base/core/java/android/hardware/
H A DCamera.java2660 String str = get(KEY_PREVIEW_SIZE + SUPPORTED_VALUES_SUFFIX);
2661 return splitSize(str);
2680 String str = get(KEY_VIDEO_SIZE + SUPPORTED_VALUES_SUFFIX);
2681 return splitSize(str);
2740 String str = get(KEY_JPEG_THUMBNAIL_SIZE + SUPPORTED_VALUES_SUFFIX);
2741 return splitSize(str);
2816 String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX);
2817 return splitInt(str);
2871 String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX);
2872 return splitRange(str);
4063 split(String str) argument
4077 splitInt(String str) argument
4090 splitInt(String str, int[] output) argument
4102 splitFloat(String str, float[] output) argument
4133 splitSize(String str) argument
4149 strToSize(String str) argument
4166 splitRange(String str) argument
4191 splitArea(String str) argument
[all...]
/frameworks/base/core/java/android/os/
H A DFileUtils.java560 public static String trimFilename(String str, int maxBytes) { argument
561 final StringBuilder res = new StringBuilder(str);
H A DPatternMatcher.java64 public boolean match(String str) { argument
65 return matchPattern(mPattern, str, mType);
H A DPooledStringWriter.java58 public void writeString(String str) { argument
59 final Integer cur = mPool.get(str);
63 mPool.put(str, mNext);
65 mOut.writeString(str);
/frameworks/base/core/java/android/text/
H A DBidiFormatter.java295 * given explicitly by a heuristic to estimate the {@code str}'s directionality.
297 * @param str CharSequence after which the mark may need to appear.
298 * @param heuristic The text direction heuristic that will be used to estimate the {@code str}'s
305 public String markAfter(CharSequence str, TextDirectionHeuristic heuristic) { argument
306 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
308 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) {
311 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) {
324 * directionality is given explicitly by a heuristic to estimate the {@code str}'s directionality.
326 * @param str CharSequenc
334 markBefore(CharSequence str, TextDirectionHeuristic heuristic) argument
353 isRtl(String str) argument
360 isRtl(CharSequence str) argument
394 unicodeWrap(@ullable String str, TextDirectionHeuristic heuristic, boolean isolate) argument
403 unicodeWrap(@ullable CharSequence str, TextDirectionHeuristic heuristic, boolean isolate) argument
435 unicodeWrap(String str, TextDirectionHeuristic heuristic) argument
442 unicodeWrap(CharSequence str, TextDirectionHeuristic heuristic) argument
456 unicodeWrap(String str, boolean isolate) argument
463 unicodeWrap(CharSequence str, boolean isolate) argument
474 unicodeWrap(String str) argument
481 unicodeWrap(CharSequence str) argument
520 getExitDir(CharSequence str) argument
537 getEntryDir(CharSequence str) argument
[all...]
H A DTextUtils.java448 * @param str the string to be examined
449 * @return true if str is null or zero length
451 public static boolean isEmpty(@Nullable CharSequence str) { argument
452 if (str == null || str.length() == 0)
459 public static String nullIfEmpty(@Nullable String str) { argument
460 return isEmpty(str) ? null : str;
1436 public static boolean isGraphic(CharSequence str) { argument
1437 final int len = str
1476 isDigitsOnly(CharSequence str) argument
1499 isPrintableAsciiOnly(final CharSequence str) argument
[all...]
/frameworks/base/core/java/android/text/format/
H A DTimeFormatter.java389 private void modifyAndAppend(CharSequence str, int modifier) { argument
392 for (int i = 0; i < str.length(); i++) {
393 outputBuilder.append(brokenToLower(str.charAt(i)));
397 for (int i = 0; i < str.length(); i++) {
398 outputBuilder.append(brokenToUpper(str.charAt(i)));
402 for (int i = 0; i < str.length(); i++) {
403 char c = str.charAt(i);
413 outputBuilder.append(str);
/frameworks/base/core/java/android/util/
H A DAtomicFile.java100 FileOutputStream str = null;
102 str = new FileOutputStream(mBaseName);
113 str = new FileOutputStream(mBaseName);
118 return str;
127 public void finishWrite(FileOutputStream str) { argument
128 if (str != null) {
129 FileUtils.sync(str);
131 str.close();
144 public void failWrite(FileOutputStream str) { argument
145 if (str !
[all...]
H A DBase64.java109 * @param str the input String to decode, which is converted to
117 public static byte[] decode(String str, int flags) { argument
118 return decode(str.getBytes(), flags);
H A DEventLog.java207 * @param str A value to log
210 public static native int writeEvent(int tag, String str); argument
H A DKeyValueListParser.java46 * @param str the string to parse.
49 public void setString(String str) throws IllegalArgumentException { argument
51 if (str != null) {
52 mSplitter.setString(str);
58 "'" + pair + "' in '" + str + "' is not a valid key-value pair");
H A DPrefixPrinter.java47 public void println(String str) { argument
48 mPrinter.println(mPrefix + str);
/frameworks/base/core/java/android/widget/
H A DTimePickerClockDelegate.java645 static private int lastIndexOfAny(String str, char[] any) { argument
648 for (int i = str.length() - 1; i >= 0; i--) {
649 char c = str.charAt(i);
/frameworks/base/core/java/com/android/internal/app/
H A DLocaleHelper.java63 * @param str the string to sentence-case.
67 public static String toSentenceCase(String str, Locale locale) { argument
68 if (str.isEmpty()) {
69 return str;
71 final int firstCodePointLen = str.offsetByCodePoints(0, 1);
72 return str.substring(0, firstCodePointLen).toUpperCase(locale)
73 + str.substring(firstCodePointLen);
83 * @param str the string to normalize
87 public static String normalizeForSearch(String str, Locale locale) { argument
92 return str
232 removePrefixForCompare(Locale locale, String str) argument
[all...]
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c71 static void dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent);
72 static int stringToUuid(const char *str, effect_uuid_t *uuid);
73 static int uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen);
242 char str[512]; local
243 dumpEffectDescriptor(pDescriptor, str, sizeof(str), 0 /* indent */);
244 ALOGV("EffectQueryEffect() desc:%s", str);
516 char *str; local
526 str = strstr(path, "/lib/");
527 if (str
917 dumpEffectDescriptor(effect_descriptor_t *desc, char *str, size_t len, int indent) argument
943 stringToUuid(const char *str, effect_uuid_t *uuid) argument
965 uuidToString(const effect_uuid_t *uuid, char *str, size_t maxLen) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioEffect.cpp446 status_t AudioEffect::stringToGuid(const char *str, effect_uuid_t *guid) argument
448 if (str == NULL || guid == NULL) {
454 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
472 status_t AudioEffect::guidToString(const effect_uuid_t *guid, char *str, size_t maxLen) argument
474 if (guid == NULL || str == NULL) {
478 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
H A DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; local
42 strcpy(str, keyValuePairs.string());
43 char *pair = strtok_r(str, ";", &last);
65 delete[] str;
75 String8 str = String8(""); local
79 str += mParameters.keyAt(i);
80 str += "=";
81 str += mParameters.valueAt(i);
82 if (i < (size - 1)) str += ";";
84 return str;
100 char str[12]; local
111 char str[23]; local
[all...]
H A DIMediaExtractor.cpp195 String8 str = name; local
196 str.append(" for mime ");
197 str.append(mime);
198 str.append(", source ");
199 str.append(sourceDescription);
200 str.append(String8::format(", pid %d: ", owner));
202 str.append("deleted\n");
204 str.append("active\n");
208 str.appendFormat(" track {%s} ", desc.string());
211 str
[all...]
H A DIMediaMetadataRetriever.cpp185 const char* str = reply.readCString(); local
186 if (str != NULL) {
187 String8 value(str);
H A DMediaResource.cpp52 String8 str; local
53 str.appendFormat("%s/%s:%llu", asString(mType), asString(mSubType), (unsigned long long)mValue);
54 return str;
H A DMediaResourcePolicy.cpp44 String8 str; local
45 str.appendFormat("%s:%s", mType.string(), mValue.string());
46 return str;

Completed in 915 milliseconds

123456789