Searched defs:str (Results 176 - 200 of 217) sorted by relevance

123456789

/frameworks/rs/
H A DrsContext.cpp217 static uint32_t getProp(const char *str) { argument
220 property_get(str, buf, "0");
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DAllocation.java2977 * @param str string to create the allocation from
2983 String str,
2988 allocArray = str.getBytes("UTF-8");
2982 createFromString(RenderScript rs, String str, int usage) argument
/frameworks/av/camera/
H A DCameraParameters.cpp256 char str[16]; local
257 sprintf(str, "%d", value);
258 set(key, str);
263 char str[16]; // 14 should be enough. We overestimate to be safe. local
264 snprintf(str, sizeof(str), "%g", value);
265 set(key, str);
297 static int parse_pair(const char *str, int *first, int *second, char delim, argument
302 int w = (int)strtol(str, &end, 10);
305 ALOGE("Cannot find delimeter (%c) in str
349 char str[32]; local
379 char str[32]; local
428 char str[32]; local
[all...]
/frameworks/base/core/java/android/text/
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/com/android/internal/inputmethod/
H A DInputMethodUtils.java983 private void putString(@NonNull final String key, @Nullable final String str) { argument
985 mCopyOnWriteDataStore.put(key, str);
987 Settings.Secure.putStringForUser(mResolver, key, str, mCurrentUserId);
1161 private void putEnabledInputMethodsStr(@Nullable String str) { argument
1163 Slog.d(TAG, "putEnabledInputMethodStr: " + str);
1165 if (TextUtils.isEmpty(str)) {
1170 putString(Settings.Secure.ENABLED_INPUT_METHODS, str);
1172 // TODO: Update callers of putEnabledInputMethodsStr to make str @NonNull.
1173 mEnabledInputMethodsStrCache = (str != null ? str
1232 putSubtypeHistoryStr(@onNull String str) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DPaint.cpp772 static bool isFlag(const jchar* str, size_t length) { argument
780 if (str[0] != RI_LEAD_SURROGATE || str[2] != RI_LEAD_SURROGATE) {
783 return RI_TRAIL_SURROGATE_MIN <= str[1] && str[1] <= RI_TRAIL_SURROGATE_MAX &&
784 RI_TRAIL_SURROGATE_MIN <= str[3] && str[3] <= RI_TRAIL_SURROGATE_MAX;
791 ScopedStringChars str(env, string);
797 for (size_t i = 0; i < str.size(); i++) {
798 jchar cu = str[
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_SoundTrigger.cpp418 char str[SOUND_TRIGGER_MAX_STRING_LEN]; local
423 str,
425 jstring uuid = env->NewStringUTF(str);
H A Dandroid_os_Debug.cpp1025 const jchar* str = env->GetStringCritical(fileName, 0); local
1027 if (str) {
1028 fileName8 = String8(reinterpret_cast<const char16_t*>(str),
1030 env->ReleaseStringCritical(fileName, str);
H A Dandroid_util_Binder.cpp1015 static bool push_eventlog_string(char** pos, const char* end, const char* str) { argument
1016 jint len = strlen(str);
1027 memcpy(*pos, str, len);
H A Dandroid_util_Process.cpp121 const char* str = name8.string(); local
123 if (str[i] < '0' || str[i] > '9') {
124 struct passwd* pwd = getpwnam(str);
131 return atoi(str);
153 const char* str = name8.string(); local
155 if (str[i] < '0' || str[i] > '9') {
156 struct group* grp = getgrnam(str);
163 return atoi(str);
541 const jchar* str = env->GetStringCritical(name, 0); local
946 jstring str = env->NewStringUTF(buffer+start); local
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp114 static char* strdupNew(const char* str) argument
119 if (str == NULL)
122 len = strlen(str);
124 memcpy(newStr, str, len+1);
/frameworks/base/media/java/android/media/
H A DClosedCaptionRenderer.java559 StringBuilder str = new StringBuilder();
560 str.append("{");
561 str.append(mColorMap[mColor]);
563 str.append(", ITALICS");
566 str.append(", UNDERLINE");
568 str.append("}");
570 return str.toString();
664 CCLineBuilder(String str) { argument
665 mDisplayChars = new StringBuilder(str);
1090 String str
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
H A DApplicationsState.java522 public static String normalize(String str) { argument
523 String tmp = Normalizer.normalize(str, Form.NFD);
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpPacket.java598 protected static void addTlv(ByteBuffer buf, byte type, String str) { argument
600 addTlv(buf, type, str.getBytes("US-ASCII"));
602 throw new IllegalArgumentException("String is not US-ASCII: " + str);
/frameworks/base/telephony/java/android/telephony/
H A DPhoneNumberUtils.java2840 String str, boolean acceptThailandCase) {
2849 final int length = str.length();
2851 char ch = str.charAt(i);
2933 private static int tryGetTrunkPrefixOmittedIndex(String str, int currentIndex) { argument
2934 int length = str.length();
2936 final char ch = str.charAt(i);
2947 * Return true if the prefix of "str" is "ignorable". Here, "ignorable" means
2948 * that "str" has only one digit and separator characters. The one digit is
2951 private static boolean checkPrefixIsIgnorable(final String str, argument
2955 if (tryGetISODigit(str
2839 tryGetCountryCallingCodeAndNewIndex( String str, boolean acceptThailandCase) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp212 bool AaptLocaleValue::initFromFilterString(const String8& str) { argument
215 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '_');
H A DBundle.h173 void setFeatureOfPackage(const char* str) { mFeatureOfPackage = str; } argument
175 void setFeatureAfterPackage(const char* str) { mFeatureAfterPackage = str; } argument
/frameworks/base/tools/aapt2/link/
H A DLink.cpp305 uint32_t getCompressionFlags(const StringPiece& str);
315 uint32_t ResourceFileFlattener::getCompressionFlags(const StringPiece& str) { argument
321 if (util::stringEndsWith<char>(str, extension)) {
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/store/
H A DSetterStore.java567 private static boolean isInArray(String str, String[] array) { argument
569 if (value.equals(str)) {
/frameworks/minikin/libs/minikin/
H A DLayout.cpp684 static void addFeatures(const string &str, vector<hb_feature_t>* features) { argument
685 if (!str.size())
688 const char* start = str.c_str();
689 const char* end = start + str.size();
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp285 char str[16]; local
287 snprintf(str, sizeof(str), " %llu.%02u",
291 "%*s", (spc > offset) ? (int)(spc - offset) : 0, str);
296 char str[16]; local
298 snprintf(str, sizeof(str), " %u.%u%%", permille / 10, permille % 10);
301 "%*s", (spc > offset) ? (int)(spc - offset) : 0, str);
1254 char str[2]; member in struct:hex
1289 if (sscanf(buffer[EXT_CSD_REV].str, "
[all...]
/frameworks/native/libs/binder/
H A DParcel.cpp647 const String16 str(readString16());
648 if (str == interface) {
652 String8(interface).string(), String8(str).string());
783 status_t Parcel::writeUtf8AsUtf16(const std::string& str) { argument
784 const uint8_t* strData = (uint8_t*)str.data();
785 const size_t strLen= str.length();
807 status_t Parcel::writeUtf8AsUtf16(const std::unique_ptr<std::string>& str) { argument
808 if (!str) {
811 return writeUtf8AsUtf16(*str);
1050 status_t Parcel::writeCString(const char* str) argument
1055 writeString8(const String8& str) argument
1067 writeString16(const std::unique_ptr<String16>& str) argument
1076 writeString16(const String16& str) argument
1081 writeString16(const char16_t* str, size_t len) argument
1829 const char* str = reinterpret_cast<const char*>(mData+mDataPos); local
1847 const char* str = (const char*)readInplace(size+1); local
1856 const char16_t* str = readString16Inplace(&len); local
1888 const char16_t* str = readString16Inplace(&len); local
1904 const char16_t* str = (const char16_t*)readInplace((size+1)*sizeof(char16_t)); local
[all...]
/frameworks/native/libs/gui/
H A DSurface.cpp1330 const char16_t* str = parcel->readString16Inplace(&len); local
1331 if (str != nullptr) {
1332 return String16(str, len);
/frameworks/native/opengl/tests/hwc/
H A DhwcCommit.cpp199 return out.str();
341 string str; local
354 str = optarg;
357 char endChar = (str.length() > 1) ? str[str.length() - 1] : 0;
359 str += " " + string(argv[optind++]);
362 istringstream in(str);
366 || (((unsigned int) in.tellg() != in.str().length())
369 "dimension of: %s", str
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
H A DConnectivityServiceMock.java389 private void log(String str) { argument
390 Slog.d(TAG, str);
392 private void loge(String str) { argument
393 Slog.e(TAG, str);

Completed in 695 milliseconds

123456789