/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 …]
|
D | source_path_utils.cpp | 29 static const std::vector<std::string> header_extensions{ 32 static const std::vector<std::string> libcxx_include_dir{"libcxx", "include"}; 36 [file_name](const std::string &e) { in HasHeaderExtension() 42 const std::vector<std::string> &suffix) { in PathEndsWith() 58 static std::string GetCwd() { in GetCwd() 64 return std::string(cwd); in GetCwd() 67 RootDirs ParseRootDirs(const std::vector<std::string> &args) { in ParseRootDirs() 84 std::string(norm_replacement)); in ParseRootDirs() 104 std::string NormalizePath(std::string_view path, const RootDirs &root_dirs) { in NormalizePath() 133 return std::string(norm_path); in NormalizePath() [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; 66 optional string return_type = 1; 67 optional string function_name = 2; 68 optional string source_file = 3; 71 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/ |
D | ir_representation.h | 35 using AbiElementMap = std::map<std::string, T>; 38 using AbiElementUnorderedMap = std::unordered_map<std::string, T>; 97 static inline std::string FormatMultiDefinitionTypeId( in FormatMultiDefinitionTypeId() 98 const std::string &type_id, const std::string &compilation_unit_path) { in FormatMultiDefinitionTypeId() 111 const std::string &GetLinkerSetKey() const { in GetLinkerSetKey() 115 void SetSourceFile(const std::string &source_file) { in SetSourceFile() 119 void SetLinkerSetKey(const std::string &linker_set_key) { in SetLinkerSetKey() 123 const std::string &GetSourceFile() const { in GetSourceFile() 132 std::string source_file_; 133 std::string linker_set_key_; [all …]
|
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()
|
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_; 100 std::set<std::string> *type_cache, 101 const std::set<std::string> &ignored_linker_set_keys, 109 std::string UnwindTypeStack(); 111 bool AreOpaqueTypesEqual(const std::string &old_type_str, 112 const std::string &new_type_str) const; 115 const std::string &old_type_str, const std::string &new_type_str, 206 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_;
|
/development/vndk/tools/header-checker/src/repr/json/ |
D | ir_reader.h | 41 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 const Json::Value &GetIntegralValue(const std::string &key) const; 53 std::string GetString(const std::string &key) const; 55 std::string GetString(const std::string &key, 56 const std::string &default_value) const; 59 JsonObjectRef GetObject(const std::string &key) const; 62 JsonArrayRef<JsonObjectRef> GetObjects(const std::string &key) const; 64 JsonArrayRef<std::string> GetStrings(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/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/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); 73 const std::string &source_file, 78 std::string GetTypeUniqueId(clang::QualType qual_type); 81 const std::string &source_file); 85 const std::string &source_file); 91 std::string QualTypeToString(const clang::QualType &sweet_qt); 94 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/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 | 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 …]
|
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()
|
/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/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/vndk/tools/header-checker/src/diff/ |
D | header_abi_diff.cpp | 39 static llvm::cl::opt<std::string> compatibility_report( 43 static llvm::cl::opt<std::string> lib_name( 47 static llvm::cl::opt<std::string> arch( 51 static llvm::cl::opt<std::string> new_dump( 55 static llvm::cl::opt<std::string> old_dump( 59 static llvm::cl::opt<std::string> ignore_symbol_list( 132 static llvm::cl::opt<std::string> target_version( 141 static llvm::cl::list<std::string> ignore_linker_set_keys( 146 static std::set<std::string> LoadIgnoredSymbols(std::string &symbol_list_path) { in LoadIgnoredSymbols() 148 std::set<std::string> ignored_symbols; in LoadIgnoredSymbols() [all …]
|