/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneFilterTypeAdapter.java | 46 void onSetFilter(int filterType, String str, int time); argument 51 String str; field in class:TimeZoneFilterTypeAdapter.ViewHolder 130 vh.str = filter.constraint; 152 mListener.onSetFilter(vh.filterType, vh.str, vh.time); 343 * @param str 347 public int parseNum(String str, int startIndex) { argument 353 char ch = str.charAt(idx++); 359 if (idx >= str.length()) { 364 ch = str.charAt(idx++); 377 if (idx < str [all...] |
H A D | TimeZoneResultAdapter.java | 120 public void onSetFilter(int filterType, String str, int time) { argument 122 Log.d(TAG, "onSetFilter: " + filterType + " [" + str + "] " + time); 126 mLastFilterString = str; 170 ArrayList<Integer> tzIds = mTimeZoneData.mTimeZonesByCountry.get(str);
|
/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 86 static uint32_t getProp(const char *str) { argument 89 android::renderscript::property_get(str, buf, "0");
|
/frameworks/support/compat/src/main/java/androidx/core/text/ |
H A D | BidiFormatter.java | 291 * {@code str}'s directionality. 293 * @param str CharSequence after which the mark may need to appear. 294 * @param heuristic The text direction heuristic that will be used to estimate the {@code str}'s 299 private String markAfter(CharSequence str, TextDirectionHeuristicCompat heuristic) { argument 300 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 302 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { 305 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { 319 * {@code str}'s directionality. 321 * @param str CharSequenc 327 markBefore(CharSequence str, TextDirectionHeuristicCompat heuristic) argument 346 isRtl(String str) argument 357 isRtl(CharSequence str) argument 390 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic, boolean isolate) argument 409 unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic, boolean isolate) argument 440 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic) argument 455 unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic) argument 468 unicodeWrap(String str, boolean isolate) argument 482 unicodeWrap(CharSequence str, boolean isolate) argument 493 unicodeWrap(String str) argument 505 unicodeWrap(CharSequence str) argument 540 getExitDir(CharSequence str) argument 557 getEntryDir(CharSequence str) argument [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyCasPlugin.cpp | 175 status_t ClearKeyCasPlugin::provision(const String8 &str) { argument 176 ALOGV("provision: provisionString=%s", str.string()); 181 status_t err = license_fetcher->Init(str.string()); 324 String8 str; local
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioEffect.cpp | 451 status_t AudioEffect::stringToGuid(const char *str, effect_uuid_t *guid) argument 453 if (str == NULL || guid == NULL) { 459 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", 477 status_t AudioEffect::guidToString(const effect_uuid_t *guid, char *str, size_t maxLen) argument 479 if (guid == NULL || str == NULL) { 483 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
|
/frameworks/av/media/libeffects/factory/ |
H A D | EffectsFactory.c | 228 char str[512]; local 229 dumpEffectDescriptor(pDescriptor, str, sizeof(str), 0 /* indent */); 230 ALOGV("EffectQueryEffect() desc:%s", str);
|
/frameworks/av/media/libmedia/ |
H A D | IMediaMetadataRetriever.cpp | 272 const char* str = reply.readCString(); local 273 if (str != NULL) { 274 String8 value(str);
|
/frameworks/base/cmds/statsd/benchmark/ |
H A D | metric_util.cpp | 388 int64_t StringToId(const string& str) { argument 389 return static_cast<int64_t>(std::hash<std::string>()(str));
|
/frameworks/base/core/java/android/app/admin/ |
H A D | SecurityLog.java | 669 public static native int writeEvent(int tag, String str); argument
|
/frameworks/base/core/java/android/app/usage/ |
H A D | UsageEvents.java | 485 private int findStringIndex(String str) { argument 486 final int index = Arrays.binarySearch(mStringPool, str); 488 throw new IllegalStateException("String '" + str + "' is not in the string pool");
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 98 private void append(String str, int i, final int length) throws IOException { argument 103 append(str, i, next<end ? mBufferLen : (end-i)); 113 str.getChars(i, i+length, mText, pos); 136 private void append(String str) throws IOException { argument 137 append(str, 0, str.length());
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 304 const char* str, size_t len) { 305 ssize_t size = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(str), len); 313 utf8_to_utf16_no_null_terminator(reinterpret_cast<const uint8_t*>(str), len, 303 fillCharArrayBufferUTF(JNIEnv* env, jobject bufferObj, const char* str, size_t len) argument
|
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 57 bool isWhitespace(const char16_t* str) argument 59 while (*str != 0 && *str < 128 && isspace(*str)) { 60 str++; 62 return *str == 0; 103 const char16_t* str = str16.string(); local 104 const char16_t* p = str; 105 const char16_t* end = str + str16.size(); 295 const char16_t* str local 423 String8 str; local [all...] |
/frameworks/base/tools/aapt2/ |
H A D | ResourceValues.cpp | 42 printer->Print(str_stream.str()); 270 String* str = new String(new_pool->MakeRef(value)); local 271 str->comment_ = comment_; 272 str->source_ = source_; 273 str->untranslatable_sections = untranslatable_sections; 274 return str; 325 StyledString* str = new StyledString(new_pool->MakeRef(value)); local 326 str->comment_ = comment_; 327 str->source_ = source_; 328 str 430 std::string str = StringPrintf("%f", value); local [all...] |
H A D | ResourceValues.h | 87 void SetComment(const android::StringPiece& str) { argument 88 comment_ = str.to_string(); 91 void SetComment(std::string&& str) { argument 92 comment_ = std::move(str);
|
H A D | StringPool.cpp | 164 StringPool::Ref StringPool::MakeRef(const StringPiece& str) { argument 165 return MakeRefImpl(str, Context{}, true); 168 StringPool::Ref StringPool::MakeRef(const StringPiece& str, const Context& context) { argument 169 return MakeRefImpl(str, context, true); 172 StringPool::Ref StringPool::MakeRefImpl(const StringPiece& str, const Context& context, argument 175 auto range = indexed_strings_.equal_range(str); 184 entry->value = str.to_string(); 203 StringPool::StyleRef StringPool::MakeRef(const StyleString& str) { argument 204 return MakeRef(str, Context{}); 207 StringPool::StyleRef StringPool::MakeRef(const StyleString& str, cons argument 367 EncodeString(const std::string& str, const bool utf8, BigBuffer* out, IDiagnostics* diag) argument [all...] |
/frameworks/base/tools/aapt2/test/ |
H A D | Builders.cpp | 66 const StringPiece& str) { 67 return AddString(name, {}, str); 71 const StringPiece& str) { 72 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); 77 const StringPiece& str) { 78 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); 183 StyleBuilder& StyleBuilder::SetParent(const StringPiece& str) { argument 184 style_->parent = Reference(ParseNameOrDie(str)); 188 StyleBuilder& StyleBuilder::AddItem(const StringPiece& str, std::unique_ptr<Item> value) { argument 189 style_->entries.push_back(Style::Entry{Reference(ParseNameOrDie(str)), st 65 AddString(const StringPiece& name, const StringPiece& str) argument 70 AddString(const StringPiece& name, const ResourceId& id, const StringPiece& str) argument 75 AddString(const StringPiece& name, const ResourceId& id, const ConfigDescription& config, const StringPiece& str) argument 193 AddItem(const StringPiece& str, const ResourceId& id, std::unique_ptr<Item> value) argument 204 AddItem(const StringPiece& str, const Maybe<ResourceId>& id) argument 214 BuildXmlDom(const StringPiece& str) argument 224 BuildXmlDomForPackageName(IAaptContext* context, const StringPiece& str) argument [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 40 const StringPiece& str, char sep, const std::function<char(char)>& f) { 42 const StringPiece::const_iterator end = std::end(str); 43 StringPiece::const_iterator start = std::begin(str); 47 parts.emplace_back(str.substr(start, current).to_string()); 57 std::vector<std::string> Split(const StringPiece& str, char sep) { argument 58 return SplitAndTransform(str, sep, nullptr); 61 std::vector<std::string> SplitAndLowercase(const StringPiece& str, char sep) { argument 62 return SplitAndTransform(str, sep, ::tolower); 65 bool StartsWith(const StringPiece& str, const StringPiece& prefix) { argument 66 if (str 39 SplitAndTransform( const StringPiece& str, char sep, const std::function<char(char)>& f) argument 72 EndsWith(const StringPiece& str, const StringPiece& suffix) argument 79 TrimLeadingWhitespace(const StringPiece& str) argument 93 TrimTrailingWhitespace(const StringPiece& str) argument 107 TrimWhitespace(const StringPiece& str) argument 126 IsJavaNameImpl(const StringPiece& str) argument 137 IsJavaClassName(const StringPiece& str) argument 141 IsJavaPackageName(const StringPiece& str) argument 145 IsAndroidNameImpl(const StringPiece& str) argument 169 IsAndroidPackageName(const StringPiece& str) argument 173 IsAndroidSplitName(const StringPiece& str) argument 210 VerifyJavaStringFormat(const StringPiece& str) argument 382 Tokenizer(const StringPiece& str, char sep) argument 414 const char16_t* str = pool.stringAt(idx, &len); local 423 const char* str = pool.string8At(idx, &len); local [all...] |
/frameworks/base/tools/incident_section_gen/ |
H A D | main.cpp | 519 static string replace_string(const string& str, const char replace, const char with) argument 521 string result(str); 551 printf("%s%s,\n", indent.c_str(), replace_string(text.str(), '\n', ' ').c_str());
|
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionItemizeTest.cpp | 57 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, argument 64 ParseUnicode(buf, BUF_SIZE, str, &len, NULL); 73 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, argument 75 itemize(collection, str, FontStyle(), localeList, result); 79 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, argument 81 itemize(collection, str, style, "", result); 85 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, argument 87 itemize(collection, str, FontStyle(), "", result);
|
/frameworks/ml/nn/common/ |
H A D | Utils.cpp | 1724 uint32_t getProp(const char* str, uint32_t defaultValue) { argument 1725 const std::string propStr = android::base::GetProperty(str, "");
|
/frameworks/native/cmds/servicemanager/ |
H A D | binder.c | 540 void bio_put_string16(struct binder_io *bio, const uint16_t *str) argument 545 if (!str) { 551 while (str[len]) len++; 563 memcpy(ptr, str, len); 568 unsigned char *str = (unsigned char*) _str; local 572 if (!str) { 590 while (*str) 591 *ptr++ = *str++;
|
/frameworks/native/services/sensorservice/ |
H A D | vec.h | 289 vbase<float, 3> str; member in union:android::vbase::__anon1851
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardUtils.java | 108 public static boolean isPrintableAsciiOnly(final CharSequence str) { argument 109 final int len = str.length(); 111 if (!isPrintableAscii(str.charAt(i))) { 505 for (final String str : values) { 506 if (TextUtils.isEmpty(str)) { 509 final int length = str.length(); 510 for (int i = 0; i < length; i = str.offsetByCodePoints(i, 1)) { 511 int codepoint = str.codePointAt(i); 534 for (final String str : values) { 535 if (TextUtils.isEmpty(str)) { [all...] |