Home
last modified time | relevance | path

Searched refs:string (Results 1 – 25 of 414) sorted by relevance

12345678910>>...17

/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/
DActionsPresets.java41 super(R.string.no_actions); in NoActionsPreset()
52 super(R.string.single_action); in SingleActionPreset()
59 context.getString(R.string.example_action), in apply()
61 R.string.example_action_clicked)) in apply()
68 super(R.string.long_title_action); in LongTitleActionPreset()
75 context.getString(R.string.example_action_long_title), in apply()
77 R.string.example_action_clicked)) in apply()
84 super(R.string.reply_action); in ReplyActionPreset()
91 .setLabel(context.getString(R.string.example_reply_label)) in apply()
95 context.getString(R.string.example_reply_action), in apply()
[all …]
DNotificationPresets.java77 context, R.string.example_notification_deleted)); in applyBasicOptions()
89 R.string.content_intent_clicked)); in applyBasicOptions()
99 super(R.string.basic_example, R.string.example_content_title, in BasicNotificationPreset()
100 R.string.example_content_text); in BasicNotificationPreset()
116 super(R.string.stylized_text_example, R.string.example_content_title, in StylizedTextNotificationPreset()
117 R.string.example_content_text); in StylizedTextNotificationPreset()
177 super(R.string.inbox_example, R.string.example_content_title, in InboxNotificationPreset()
178 R.string.example_content_text); in InboxNotificationPreset()
184 style.addLine(context.getString(R.string.inbox_style_example_line1)); in buildNotifications()
185 style.addLine(context.getString(R.string.inbox_style_example_line2)); in buildNotifications()
[all …]
/development/vndk/tools/header-checker/src/utils/
Dconfig_file.h33 using MapType = std::map<std::string, std::string>;
42 bool HasProperty(const std::string &name) const { in HasProperty()
46 std::string GetProperty(const std::string &name) const { in GetProperty()
54 std::string operator[](const std::string &name) const {
73 std::map<std::string, std::string> map_;
81 using MapType = std::map<std::string, ConfigSection>;
90 bool HasSection(const std::string &section_name) const { in HasSection()
94 const ConfigSection &GetSection(const std::string &section_name) const { in GetSection()
100 const ConfigSection &operator[](const std::string &section_name) const {
104 bool HasProperty(const std::string &section_name, in HasProperty()
[all …]
Dstring_utils.cpp29 std::string::size_type start = s.find_first_not_of(" \t\r\n"); in Trim()
30 if (start == std::string::npos) { in Trim()
33 std::string::size_type end = s.find_last_not_of(" \t\r\n"); in Trim()
34 if (end == std::string::npos) { in Trim()
55 std::string::size_type pos = 0; in Split()
58 if (pos == std::string::npos) { in Split()
62 std::string::size_type end = s.find_first_of(delim_chars, pos + 1); in Split()
63 if (end == std::string::npos) { in Split()
75 std::optional<int> ParseInt(const std::string &s) { in ParseInt()
91 bool ParseBool(const std::string &s) { in ParseBool()
[all …]
Dconfig_file.cpp34 ConfigFile ConfigParser::ParseFile(const std::string &path) { in ParseFile()
42 std::string line; in ParseFile()
58 std::string::size_type pos = line.rfind(']'); in ParseLine()
59 if (pos == std::string::npos) { in ParseLine()
64 section_ = &cfg_.map_[std::string(section_name)]; in ParseLine()
69 std::string::size_type pos = line.find('='); in ParseLine()
70 if (pos == std::string::npos) { in ParseLine()
82 section_->map_[std::string(key)] = std::string(value); in ParseLine()
/development/vndk/tools/header-checker/src/repr/protobuf/proto/
Dabi_dump.proto19 optional string name = 1;
22 optional string referenced_type = 4;
23 optional string source_file = 5;
24 optional string linker_set_key = 6;
25 optional string self_type = 7;
59 optional string return_type = 2;
65 optional string return_type = 1;
66 optional string function_name = 2;
67 optional string source_file = 3;
70 optional string linker_set_key = 6;
[all …]
Dabi_diff.proto33 optional string name = 1;
34 optional string type_stack = 2;
44 optional string old_type = 1;
45 optional string new_type = 2;
54 optional string type_stack = 1;
55 optional string name = 2;
65 optional string type_stack = 1;
66 optional string name = 2;
72 optional string type_stack = 1;
73 optional string name = 2;
[all …]
/development/vndk/tools/header-checker/src/dumper/
Dabi_wrappers.h49 static std::string GetDeclSourceFile(const clang::Decl *decl,
52 static std::string GetMangledNameDecl(const clang::NamedDecl *decl,
56 std::string GetCachedDeclSourceFile(const clang::Decl *decl,
59 std::string GetKeyForTypeId(clang::QualType qual_type);
61 std::string TypeNameWithFinalDestination(clang::QualType qual_type);
65 const std::string &source_file);
70 const std::string &source_file,
73 std::string QualTypeToString(const clang::QualType &sweet_qt);
75 std::string GetTagDeclQualifiedName(const clang::TagDecl *decl);
78 const std::string &source_file);
[all …]
Dast_util.h31 ASTCaches(const std::string &translation_unit_source) in ASTCaches()
34 std::string GetTypeId(const std::string &qual_type) { in GetTypeId()
44 std::string translation_unit_source_;
45 std::set<std::string> type_cache_;
46 std::map<const clang::Decl *, std::string> decl_to_source_file_cache_;
47 std::map<std::string, uint64_t> qual_type_to_type_id_cache_;
Dheader_checker.h30 std::string source_file_;
31 std::string dump_name_;
32 std::set<std::string> exported_headers_;
38 HeaderCheckerOptions(std::string source_file, std::string dump_name, in HeaderCheckerOptions()
39 std::set<std::string> exported_headers, in HeaderCheckerOptions()
/development/vndk/tools/header-checker/src/repr/symbol/
Dversion_script_parser.cpp35 inline std::string GetIntroducedArchTag(const std::string &arch) { in GetIntroducedArchTag()
45 void VersionScriptParser::SetArch(const std::string &arch) { in SetArch()
52 const std::string &line) { in ParseSymbolTags()
59 std::string::size_type comment_pos = line_view.find('#'); in ParseSymbolTags()
60 if (comment_pos == std::string::npos) { in ParseSymbolTags()
98 std::string(tag.substr(sizeof("introduced=") - 1))); in ParseSymbolTags()
100 ReportError("Bad introduced tag: " + std::string(tag)); in ParseSymbolTags()
112 std::string(tag.substr(introduced_arch_tag_.size()))); in ParseSymbolTags()
114 ReportError("Bad introduced tag " + std::string(tag)); in ParseSymbolTags()
162 bool VersionScriptParser::ParseSymbolLine(const std::string &line, in ParseSymbolLine()
[all …]
Dexported_symbol_set.h32 using FunctionMap = std::map<std::string, ElfFunctionIR, std::less<>>;
33 using VarMap = std::map<std::string, ElfObjectIR, std::less<>>;
34 using NameSet = std::set<std::string, std::less<>>;
35 using GlobPatternSet = std::set<std::string, std::less<>>;
61 bool HasSymbol(const std::string &symbol_name) const;
63 void AddFunction(const std::string &name,
66 void AddVar(const std::string &name, ElfSymbolIR::ElfSymbolBinding binding);
68 void AddGlobPattern(const std::string &pattern) { in AddGlobPattern()
72 void AddDemangledCppGlobPattern(const std::string &pattern) { in AddDemangledCppGlobPattern()
76 void AddDemangledCppSymbol(const std::string &pattern) { in AddDemangledCppSymbol()
Dversion_script_parser.h64 virtual void OnError(int line_no, const std::string &error_msg) = 0;
71 void SetArch(const std::string &arch);
77 void AddExcludedSymbolVersion(const std::string &version) { in AddExcludedSymbolVersion()
81 void AddExcludedSymbolTag(const std::string &tag) { in AddExcludedSymbolTag()
93 bool ReadLine(std::string &line);
97 bool ParseSymbolLine(const std::string &line, bool is_cpp_symbol);
99 ParsedTags ParseSymbolTags(const std::string &line);
105 void ReportError(const std::string &error_msg) { in ReportError()
115 std::string arch_;
116 std::string introduced_arch_tag_;
[all …]
/development/vndk/tools/header-checker/src/repr/
Dir_representation.h35 using AbiElementMap = std::map<std::string, T>;
38 using AbiElementUnorderedMap = std::unordered_map<std::string, T>;
103 const std::string &GetLinkerSetKey() const { in GetLinkerSetKey()
107 void SetSourceFile(const std::string &source_file) { in SetSourceFile()
111 void SetLinkerSetKey(const std::string &linker_set_key) { in SetLinkerSetKey()
115 const std::string &GetSourceFile() const { in GetSourceFile()
124 std::string source_file_;
125 std::string linker_set_key_;
130 ReferencesOtherType(const std::string &referenced_type) in ReferencesOtherType()
133 ReferencesOtherType(std::string &&referenced_type) in ReferencesOtherType()
[all …]
Dabi_diff_helpers.h70 std::string Unwind(const std::deque<std::string> *type_queue);
85 std::set<std::string> *type_cache,
94 const std::string &old_type_str, const std::string &new_type_str,
95 std::deque<std::string> *type_queue = nullptr,
101 std::deque<std::string> *type_queue = nullptr,
107 std::deque<std::string> *type_queue,
112 std::deque<std::string> *type_queue,
117 std::deque<std::string> *type_queue,
123 std::deque<std::string> *type_queue,
129 std::deque<std::string> *type_queue,
[all …]
Dir_diff_dumper.h32 IRDiffDumper(const std::string &dump_path) : dump_path_(dump_path) {} in IRDiffDumper()
37 const std::string &type_stack,
46 virtual void AddLibNameIR(const std::string &name) = 0;
48 virtual void AddArchIR(const std::string &arch) = 0;
57 TextFormatIR, const std::string &dump_path);
60 const std::string &dump_path_;
Dir_representation_internal.h28 inline std::string GetReferencedTypeMapKey(T &element) { in GetReferencedTypeMapKey()
33 inline std::string GetReferencedTypeMapKey<ArrayTypeIR>(ArrayTypeIR &element) {
38 inline std::string GetReferencedTypeMapKey<BuiltinTypeIR>(
43 inline static std::string BoolToString(bool val) { in BoolToString()
48 inline std::string GetReferencedTypeMapKey<QualifiedTypeIR>(
54 inline std::string GetODRListMapKey(const RecordTypeIR *record_type_ir) { in GetODRListMapKey()
61 inline std::string GetODRListMapKey(const EnumTypeIR *enum_type_ir) { in GetODRListMapKey()
65 inline std::string GetODRListMapKey(const FunctionTypeIR *function_type_ir) { in GetODRListMapKey()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAlertDialogSamples.java88 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
89 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
95 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
105 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
106 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
110 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
118 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
119 .setPositiveButton(R.string.alert_dialog_ok, new DialogInterface.OnClickListener() { in onCreateDialog()
123 … .setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() { in onCreateDialog()
130 .setTitle(R.string.alert_dialog_two_buttons_title) in onCreateDialog()
[all …]
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DStorageProviderFragment.java52 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onPrepareOptionsMenu()
59 item.setTitle(mLoggedIn ? R.string.log_out : R.string.log_in); in onOptionsItemSelected()
80 Log.i(TAG, getString(mLoggedIn ? R.string.logged_in_info : R.string.logged_out_info)); in toggleLogin()
88 getActivity().getSharedPreferences(getString(R.string.app_name), in writeLoginValue()
90 sharedPreferences.edit().putBoolean(getString(R.string.key_logged_in), loggedIn).commit(); in writeLoginValue()
98 getActivity().getSharedPreferences(getString(R.string.app_name), in readLoginValue()
100 return sharedPreferences.getBoolean(getString(R.string.key_logged_in), false); in readLoginValue()
/development/vndk/tools/header-checker/src/repr/json/
Dconverter.h46 void Set(const std::string &key, bool value);
49 void Set(const std::string &key, uint64_t value);
52 void Set(const std::string &key, int64_t value);
55 void Set(const std::string &key, const std::string &value);
58 void Set(const std::string &key, const JsonArray &value);
62 inline void SetOmissible(const std::string &key, T value, T omissible_value) { in SetOmissible()
85 static const std::map<AccessSpecifierIR, std::string> access_ir_to_json{
91 static const std::map<RecordTypeIR::RecordKind, std::string>
98 static const std::map<VTableComponentIR::Kind, std::string>
110 static const std::map<ElfSymbolIR::ElfSymbolBinding, std::string>
[all …]
Dconverter.cpp41 void JsonObject::Set(const std::string &key, bool value) { in Set()
46 void JsonObject::Set(const std::string &key, uint64_t value) { in Set()
51 void JsonObject::Set(const std::string &key, int64_t value) { in Set()
56 void JsonObject::Set(const std::string &key, const std::string &value) { in Set()
57 SetOmissible<const std::string &>(key, value, ""); in Set()
61 void JsonObject::Set(const std::string &key, const JsonArray &value) { in Set()
Dir_reader.h41 bool GetBool(const std::string &key) const;
44 int64_t GetInt(const std::string &key) const;
47 uint64_t GetUint(const std::string &key) const;
50 std::string GetString(const std::string &key) const;
53 JsonObjectRef GetObject(const std::string &key) const;
56 JsonArrayRef<JsonObjectRef> GetObjects(const std::string &key) const;
58 JsonArrayRef<std::string> GetStrings(const std::string &key) const;
63 const Json::Value &Get(const std::string &key,
112 template <> std::string JsonArrayRef<std::string>::Iterator::operator*() const;
116 JsonIRReader(const std::set<std::string> *exported_headers) in JsonIRReader()
[all …]
/development/vndk/tools/header-checker/src/linker/
Dheader_abi_linker.cpp47 static llvm::cl::list<std::string> dump_files(
51 static llvm::cl::opt<std::string> linked_dump(
55 static llvm::cl::list<std::string> exported_header_dirs(
59 static llvm::cl::opt<std::string> version_script(
63 static llvm::cl::list<std::string> excluded_symbol_versions(
67 static llvm::cl::list<std::string> excluded_symbol_tags(
71 static llvm::cl::opt<std::string> api(
76 static llvm::cl::opt<std::string> arch(
84 static llvm::cl::opt<std::string> so_file(
107 const std::vector<std::string> &dump_files, in HeaderAbiLinker()
[all …]
/development/vndk/tools/header-checker/src/repr/protobuf/
Dir_diff_dumper.h32 ProtobufIRDiffDumper(const std::string &dump_path) in ProtobufIRDiffDumper()
38 bool AddDiffMessageIR(const DiffMessageIR *, const std::string &type_stack,
46 void AddLibNameIR(const std::string &name) override;
48 void AddArchIR(const std::string &arch) override;
59 const std::string &type_stack, DiffKind diff_kind);
62 const std::string &type_stack, DiffKind diff_kind);
65 const std::string &type_stack, DiffKind diff_kind);
68 const std::string &type_stack, DiffKind diff_kind);
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/
DBatchStepSensorFragment.java267 .setDescription(getString(R.string.warning_nobatching)); in registerEventListener()
331 .setTitle(getString(R.string.counting_title, mSteps))
332 .setDescription(getString(R.string.counting_description,
333 getString(R.string.sensor_detector), mMaxDelay, delayString));
359 .setTitle(getString(R.string.counting_title, mSteps))
360 .setDescription(getString(R.string.counting_description,
361 getString(R.string.sensor_counter), mMaxDelay, delayString));
470 sensor = getString(R.string.sensor_counter); in showCountingCards()
472 sensor = getString(R.string.sensor_detector); in showCountingCards()
476 .setTitle(getString(R.string.counting_title, 0)) in showCountingCards()
[all …]

12345678910>>...17