/development/vndk/tools/header-checker/src/utils/ |
D | config_file.h | 31 using MapType = std::map<std::string, bool>; 40 bool HasProperty(const std::string &name) const { in HasProperty() 44 bool GetProperty(const std::string &name) const { in GetProperty() 52 const std::vector<std::string> &GetIgnoredLinkerSetKeys() const { in GetIgnoredLinkerSetKeys() 56 bool operator[](const std::string &name) const { return GetProperty(name); } 69 std::vector<std::string> ignored_linker_set_keys_; 77 using MapType = std::map<std::pair<std::string, std::string>, ConfigSection>; 86 bool Load(const std::string &path); 89 bool HasSection(const std::string §ion_name, in HasSection() 90 const std::string &version) const { in HasSection() [all …]
|
D | source_path_utils.h | 28 std::string path; 29 std::string replacement; 31 RootDir(std::string p, std::string r) in RootDir() 37 RootDirs ParseRootDirs(const std::vector<std::string> &args); 41 std::string NormalizePath(std::string_view path, const RootDirs &root_dirs); 43 std::set<std::string> 44 CollectAllExportedHeaders(const std::vector<std::string> &exported_header_dirs,
|
D | string_utils.cpp | 32 std::string::size_type start = s.find_first_not_of(" \t\r\n"); in Trim() 33 if (start == std::string::npos) { in Trim() 36 std::string::size_type end = s.find_last_not_of(" \t\r\n"); in Trim() 37 if (end == std::string::npos) { in Trim() 58 std::string::size_type pos = 0; in Split() 61 if (pos == std::string::npos) { in Split() 65 std::string::size_type end = s.find_first_of(delim_chars, pos + 1); in Split() 66 if (end == std::string::npos) { in Split() 78 std::optional<int> ParseInt(const std::string &s) { in ParseInt() 94 bool ParseBool(const std::string &s) { in ParseBool() [all …]
|
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
D | ActionsPresets.java | 41 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 …]
|
D | NotificationPresets.java | 77 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/repr/protobuf/proto/ |
D | abi_dump.proto | 19 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; 60 optional string return_type = 2; 75 optional string return_type = 1; 76 optional string function_name = 2; 77 optional string source_file = 3; 80 optional string linker_set_key = 6; [all …]
|
D | abi_diff.proto | 34 optional string name = 1; 35 optional string type_stack = 2; 42 optional string linker_set_key = 9; 46 optional string old_type = 1; 47 optional string new_type = 2; 56 optional string type_stack = 1; 57 optional string name = 2; 62 optional string linker_set_key = 7; 68 optional string type_stack = 1; 69 optional string name = 2; [all …]
|
/development/vndk/tools/header-checker/src/repr/json/ |
D | ir_reader.h | 36 bool IsMember(const std::string &key) const; 42 bool GetBool(const std::string &key) const; 45 int64_t GetInt(const std::string &key) const; 48 uint64_t GetUint(const std::string &key) const; 51 const Json::Value &GetIntegralValue(const std::string &key) const; 54 std::string GetString(const std::string &key) const; 56 std::string GetString(const std::string &key, 57 const std::string &default_value) const; 60 JsonObjectRef GetObject(const std::string &key) const; 63 JsonArrayRef<JsonObjectRef> GetObjects(const std::string &key) const; [all …]
|
D | converter.h | 46 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 …]
|
D | converter.cpp | 41 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()
|
/development/vndk/tools/header-checker/src/dumper/ |
D | abi_wrappers.h | 50 static std::string GetDeclSourceFile(const clang::Decl *decl, 55 std::string GetCachedDeclSourceFile(const clang::Decl *decl, 59 static std::string GetMangledNameDecl(const clang::NamedDecl *decl, 66 const std::string &source_file); 72 const std::string &source_file, 82 std::string GetTypeUniqueId(clang::QualType qual_type); 85 const std::string &source_file); 89 const std::string &source_file); 95 std::string QualTypeToString(const clang::QualType &sweet_qt); 98 const std::string &source_file); [all …]
|
D | header_checker.h | 31 std::string source_file_; 32 std::string dump_name_; 33 const std::set<std::string> exported_headers_; 40 HeaderCheckerOptions(std::string source_file, std::string dump_name, in HeaderCheckerOptions() 41 std::set<std::string> exported_headers, in HeaderCheckerOptions()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | AlertDialogSamples.java | 88 .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/vndk/tools/header-checker/src/repr/ |
D | ir_representation.h | 38 using AbiElementMap = std::map<std::string, T>; 41 using AbiElementUnorderedMap = std::unordered_map<std::string, T>; 105 static inline std::string FormatMultiDefinitionTypeId( in FormatMultiDefinitionTypeId() 106 const std::string &type_id, const std::string &compilation_unit_path) { in FormatMultiDefinitionTypeId() 119 const std::string &GetLinkerSetKey() const { in GetLinkerSetKey() 123 void SetSourceFile(const std::string &source_file) { in SetSourceFile() 127 void SetLinkerSetKey(const std::string &linker_set_key) { in SetLinkerSetKey() 131 const std::string &GetSourceFile() const { in GetSourceFile() 140 std::string source_file_; 141 std::string linker_set_key_; [all …]
|
D | abi_diff_helpers.h | 75 TypeStackGuard(std::deque<std::string> &type_stack, in TypeStackGuard() 76 const std::string &type_name) in TypeStackGuard() 84 std::deque<std::string> &type_stack_; 98 std::set<std::string> *type_cache, 99 const std::set<std::string> &ignored_linker_set_keys, 107 std::string UnwindTypeStack(); 109 bool AreOpaqueTypesEqual(const std::string &old_type_str, 110 const std::string &new_type_str) const; 113 const std::string &old_type_str, const std::string &new_type_str, 204 DiffStatus CompareParameterTypes(const std::string &old_type_id, [all …]
|
D | ir_diff_dumper.h | 32 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_;
|
D | ir_representation_internal.h | 28 inline std::string GetReferencedTypeMapKey(T &element) { in GetReferencedTypeMapKey() 33 inline std::string GetReferencedTypeMapKey<BuiltinTypeIR>( 38 inline static std::string BoolToString(bool val) { in BoolToString() 43 inline std::string GetReferencedTypeMapKey<ArrayTypeIR>(ArrayTypeIR &element) { 49 inline std::string GetReferencedTypeMapKey<QualifiedTypeIR>( 55 inline std::string GetODRListMapKey(const RecordTypeIR *record_type_ir) { in GetODRListMapKey() 62 inline std::string GetODRListMapKey(const EnumTypeIR *enum_type_ir) { in GetODRListMapKey() 66 inline std::string GetODRListMapKey(const FunctionTypeIR *function_type_ir) { in GetODRListMapKey()
|
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
D | StorageProviderFragment.java | 52 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/symbol/ |
D | version_script_parser.cpp | 42 inline std::string GetIntroducedArchTag(const std::string &arch) { in GetIntroducedArchTag() 53 void VersionScriptParser::SetArch(const std::string &arch) { in SetArch() 69 auto level = utils::ParseInt(std::string(split_tag[1])); in ParseModeTag() 83 included_mode_tags_[std::string(parsed_mode_tag->first)] = in AddModeTag() 92 const std::string &line, const ParsedTags &initial_value) { in ParseSymbolTags() 99 std::string::size_type comment_pos = line_view.find('#'); in ParseSymbolTags() 100 if (comment_pos == std::string::npos) { in ParseSymbolTags() 138 std::string(tag.substr(sizeof("introduced=") - 1))); in ParseSymbolTags() 140 ReportError("Bad introduced tag: " + std::string(tag)); in ParseSymbolTags() 152 std::string(tag.substr(introduced_arch_tag_.size()))); in ParseSymbolTags() [all …]
|
D | exported_symbol_set.h | 33 using FunctionMap = std::map<std::string, ElfFunctionIR, std::less<>>; 34 using VarMap = std::map<std::string, ElfObjectIR, std::less<>>; 62 bool HasSymbol(const std::string &symbol_name) const; 64 void AddFunction(const std::string &name, 67 void AddVar(const std::string &name, ElfSymbolIR::ElfSymbolBinding binding); 69 void AddGlobPattern(const std::string &pattern) { in AddGlobPattern() 73 void AddDemangledCppGlobPattern(const std::string &pattern) { in AddDemangledCppGlobPattern() 77 void AddDemangledCppSymbol(const std::string &pattern) { in AddDemangledCppSymbol()
|
D | version_script_parser.h | 39 using ModeTagLevelMap = std::map<std::string, utils::ApiLevel, std::less<>>; 71 virtual void OnError(int line_no, const std::string &error_msg) = 0; 78 void SetArch(const std::string &arch); 86 void AddExcludedSymbolVersion(const std::string &version) { in AddExcludedSymbolVersion() 90 void AddExcludedSymbolTag(const std::string &tag) { in AddExcludedSymbolTag() 107 bool ReadLine(std::string &line); 111 bool ParseSymbolLine(const std::string &line, bool is_cpp_symbol, 114 ParsedTags ParseSymbolTags(const std::string &line, 125 void ReportError(const std::string &error_msg) { in ReportError() 135 std::string arch_; [all …]
|
/development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/ |
D | PreferenceController.java | 67 new StringRule(R.string.pref_device_profile, UPSIDE_DOWN_CAKE) 70 new BoolRule(R.string.pref_hide_from_recents, UPSIDE_DOWN_CAKE) 73 new BoolRule(R.string.pref_enable_cross_device_clipboard, VANILLA_ICE_CREAM) 76 new BoolRule(R.string.pref_enable_custom_activity_policy, BAKLAVA, 79 new BoolRule(R.string.pref_enable_client_camera, VANILLA_ICE_CREAM), 81 new BoolRule(R.string.pref_enable_client_sensors, UPSIDE_DOWN_CAKE), 83 new BoolRule(R.string.pref_enable_client_audio, UPSIDE_DOWN_CAKE), 85 new BoolRule(R.string.pref_enable_display_rotation, VANILLA_ICE_CREAM) 88 new BoolRule(R.string.pref_enable_display_category, UPSIDE_DOWN_CAKE), 90 new BoolRule(R.string.pref_always_unlocked_device, TIRAMISU) [all …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
D | BatchStepSensorFragment.java | 267 .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 …]
|
/development/vndk/tools/header-checker/src/repr/protobuf/ |
D | ir_diff_dumper.h | 32 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/tools/external_crates/google_metadata/src/protos/ |
D | metadata.proto | 28 optional string name = 1; 29 optional string description = 3; 51 optional string version = 2; 53 optional string license_note = 5; 54 optional string local_modifications = 6; 58 optional string homepage = 14; 77 optional string value = 2; 81 optional string type = 1; 82 optional string value = 3; 83 optional string version = 4; [all …]
|