Home
last modified time | relevance | path

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

12345678910>>...190

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/data/
DHealthPermissionStrings.kt29 R.string.active_calories_burned_uppercase_label,
30 R.string.active_calories_burned_lowercase_label,
31 R.string.active_calories_burned_read_content_description,
32 R.string.active_calories_burned_write_content_description))
36 R.string.distance_uppercase_label,
37 R.string.distance_lowercase_label,
38 R.string.distance_read_content_description,
39 R.string.distance_write_content_description))
43 R.string.elevation_gained_uppercase_label,
44 R.string.elevation_gained_lowercase_label,
[all …]
/packages/modules/Bluetooth/system/test/mock/
Dmock_osi_config.h66 std::string return_value{std::string()};
67 std::function<std::string(const char* filename)> body{
69 std::string operator()(const char* filename) { return body(filename); }; in operator()
78 std::function<bool(const std::string& checksum, const std::string& filename)>
79 body{[this](const std::string& checksum, const std::string& filename) {
82 bool operator()(const std::string& checksum, const std::string& filename) { in operator()
93 std::function<bool(const config_t& config, const std::string& section,
94 const std::string& key, bool def_value)>
95 body{[this](const config_t& config, const std::string& section,
96 const std::string& key,
[all …]
Dmock_device_iot_config.h27 std::function<bool(const std::string& section, const std::string& key,
29 body{[this](const std::string& section, const std::string& key,
31 bool operator()(const std::string& section, const std::string& key, in operator()
43 std::function<bool(const std::string& section, const std::string& key,
45 body{[this](const std::string& section, const std::string& key,
47 bool operator()(const std::string& section, const std::string& key, in operator()
59 std::function<bool(const std::string& section, const std::string& key)> body{
60 [this](const std::string& section, const std::string& key) {
63 bool operator()(const std::string& section, const std::string& key) { in operator()
74 std::function<bool(const std::string& section, const std::string& key,
[all …]
Dmock_btif_config.h50 std::function<bool(const std::string& section, const std::string& key)> body{
51 [](const std::string& section, const std::string& key) { return false; }};
52 bool operator()(const std::string& section, const std::string& key) { in operator()
61 std::function<bool(const std::string& section, const std::string& key,
63 body{[](const std::string& section, const std::string& key, int* value) {
66 bool operator()(const std::string& section, const std::string& key, in operator()
76 std::function<bool(const std::string& section, const std::string& key,
78 body{[](const std::string& section, const std::string& key, int value) {
81 bool operator()(const std::string& section, const std::string& key, in operator()
91 std::function<bool(const std::string& section, const std::string& key,
[all …]
Dmock_main_shim_BtifConfigInterface.cc22 const std::string& section) { in HasSection()
26 const std::string& section, const std::string& property) { in HasProperty()
29 bool bluetooth::shim::BtifConfigInterface::GetInt(const std::string& section, in GetInt()
30 const std::string& key, in GetInt()
34 bool bluetooth::shim::BtifConfigInterface::SetInt(const std::string& section, in SetInt()
35 const std::string& key, in SetInt()
39 bool bluetooth::shim::BtifConfigInterface::GetUint64(const std::string& section, in GetUint64()
40 const std::string& key, in GetUint64()
44 bool bluetooth::shim::BtifConfigInterface::SetUint64(const std::string& section, in SetUint64()
45 const std::string& key, in SetUint64()
[all …]
/packages/services/Car/tools/telemetry/lua-interpreter/tests/
Dlua_engine_test.cc34 std::string ConvertVectorToString(std::vector<std::string> vector) { in ConvertVectorToString()
36 for (std::string s : vector) { in ConvertVectorToString()
42 std::string ConvertArrayToString(char** array, int size) { in ConvertArrayToString()
52 std::vector<std::string> output = lua_engine_.ExecuteScript( in TEST_F()
54 std::string actual = ConvertVectorToString(output); in TEST_F()
55 EXPECT_NE(actual.find("LUA: Logging here"), std::string::npos); in TEST_F()
59 std::vector<std::string> output = lua_engine_.ExecuteScript( in TEST_F()
61 std::string actual = ConvertVectorToString(output); in TEST_F()
64 std::string::npos); in TEST_F()
68 std::vector<std::string> output = lua_engine_.ExecuteScript( in TEST_F()
[all …]
/packages/modules/Bluetooth/system/bta/le_audio/
Dle_audio_log_history.h24 static std::string kLogConnectionTag("CONN_STATE");
25 static std::string kLogStateMachineTag("SM");
26 static std::string kLogControlPointCmd("ASCS_CP_CMD");
27 static std::string kLogControlPointNotif("ASCS_CP_NOTIF");
28 static std::string kLogAseStateNotif("ASE_NOTIF");
29 static std::string kLogHciEvent("HCI_EVENT");
30 static std::string kLogAfCallBt("AF --> ");
31 static std::string kLogBtCallAf("AF <-- ");
34 static std::string kLogStateChangedOp("STATE CHANGED");
35 static std::string kLogTargetStateChangedOp("TARGET STATE CHANGED");
[all …]
Dle_audio_types.cc453 std::string CapabilityTypeToStr(const uint8_t& type) { in CapabilityTypeToStr()
470 std::string CapabilityValueToStr(const uint8_t& type, in CapabilityValueToStr()
472 std::string string = ""; in CapabilityValueToStr() local
483 string += "8"; in CapabilityValueToStr()
486 string += std::string((string.empty() ? "" : "|")) + "11.025"; in CapabilityValueToStr()
489 string += std::string((string.empty() ? "" : "|")) + "16"; in CapabilityValueToStr()
492 string += std::string((string.empty() ? "" : "|")) + "22.050"; in CapabilityValueToStr()
495 string += std::string((string.empty() ? "" : "|")) + "24"; in CapabilityValueToStr()
498 string += std::string((string.empty() ? "" : "|")) + "32"; in CapabilityValueToStr()
501 string += std::string((string.empty() ? "" : "|")) + "44.1"; in CapabilityValueToStr()
[all …]
/packages/modules/Bluetooth/system/gd/storage/
Dstorage_module.h50 static const std::string kInfoSection;
51 static const std::string kFileSourceProperty;
52 static const std::string kTimeCreatedProperty;
53 static const std::string kTimeCreatedFormat;
55 static const std::string kAdapterSection;
119 std::string ToString() const override;
141 std::string config_file_path,
147 bool HasSection(const std::string& section) const;
148 bool HasProperty(const std::string& section, const std::string& property) const;
150 std::optional<std::string> GetProperty(
[all …]
Dconfig_cache.h72 virtual bool HasSection(const std::string& section) const;
73 virtual bool HasProperty(const std::string& section, const std::string& property) const;
75 …virtual std::optional<std::string> GetProperty(const std::string& section, const std::string& prop…
77 virtual std::vector<std::string> GetPersistentSections() const;
79 virtual bool IsPersistentSection(const std::string& section) const;
82 const std::string& section, const std::unordered_set<std::string_view>& property_names) const;
84 virtual bool IsPersistentProperty(const std::string& property) const;
86 virtual std::string SerializeToLegacyFormat() const;
89 std::string section;
90 std::string property;
[all …]
Dconfig_cache_helper.h45 virtual void SetBool(const std::string& section, const std::string& property, bool value);
46 …virtual std::optional<bool> GetBool(const std::string& section, const std::string& property) const;
47 virtual void SetUint64(const std::string& section, const std::string& property, uint64_t value);
48 …virtual std::optional<uint64_t> GetUint64(const std::string& section, const std::string& property)…
49 virtual void SetUint32(const std::string& section, const std::string& property, uint32_t value);
50 …virtual std::optional<uint32_t> GetUint32(const std::string& section, const std::string& property)…
51 virtual void SetInt64(const std::string& section, const std::string& property, int64_t value);
52 …virtual std::optional<int64_t> GetInt64(const std::string& section, const std::string& property) c…
53 virtual void SetInt(const std::string& section, const std::string& property, int value);
54 virtual std::optional<int> GetInt(const std::string& section, const std::string& property) const;
[all …]
/packages/services/Telephony/src/com/android/services/telephony/
DDisconnectCauseUtil.java274 return context.getResources().getString(R.string.callFailed_userBusy); in toTelecomDisconnectCauseLabel()
298 resourceId = R.string.callFailed_userBusy; in getLabelFromDisconnectCause()
302 resourceId = R.string.callFailed_NetworkBusy; in getLabelFromDisconnectCause()
306 resourceId = R.string.callFailed_NetworkCongested; in getLabelFromDisconnectCause()
310 resourceId = R.string.callFailed_congestion; in getLabelFromDisconnectCause()
314 resourceId = R.string.callFailed_timedOut; in getLabelFromDisconnectCause()
318 resourceId = R.string.callFailed_server_unreachable; in getLabelFromDisconnectCause()
322 resourceId = R.string.callFailed_number_unreachable; in getLabelFromDisconnectCause()
326 resourceId = R.string.callFailed_invalid_credentials; in getLabelFromDisconnectCause()
330 resourceId = R.string.callFailed_server_error; in getLabelFromDisconnectCause()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestServerFlag.cpp36 static std::string fakeServerFuncDefault(const std::string& /*categoryName*/, in fakeServerFuncDefault() argument
37 const std::string& /*flagName*/, in fakeServerFuncDefault()
38 const std::string& /*defaultValue*/) { in fakeServerFuncDefault()
42 static std::string fakeServerFuncMax(const std::string& /*categoryName*/, in fakeServerFuncMax() argument
43 const std::string& /*flagName*/, in fakeServerFuncMax()
44 const std::string& /*defaultValue*/) { in fakeServerFuncMax()
48 static std::string fakeServerFuncMin(const std::string& /*categoryName*/, in fakeServerFuncMin() argument
49 const std::string& /*flagName*/, in fakeServerFuncMin()
50 const std::string& /*defaultValue*/) { in fakeServerFuncMin()
54 static std::string fakeServerFuncLarge(const std::string& /*categoryName*/, in fakeServerFuncLarge() argument
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsMap.java31 R.string.units_unit_abbreviation_meter_per_sec, R.string.units_unit_name_meter_per_sec);
33 R.string.units_unit_abbreviation_rpm, R.string.units_unit_name_rpm);
35 R.string.units_unit_abbreviation_hertz, R.string.units_unit_name_hertz);
37 R.string.units_unit_abbreviation_percentile, R.string.units_unit_name_percentile);
39 R.string.units_unit_abbreviation_millimeter, R.string.units_unit_name_millimeter);
41 R.string.units_unit_abbreviation_meter, R.string.units_unit_name_meter);
43 R.string.units_unit_abbreviation_kilometer, R.string.units_unit_name_kilometer);
45 R.string.units_unit_abbreviation_mile, R.string.units_unit_name_mile);
47 R.string.units_unit_abbreviation_celsius, R.string.units_unit_name_celsius);
49 R.string.units_unit_abbreviation_fahrenheit, R.string.units_unit_name_fahrenheit);
[all …]
/packages/modules/Bluetooth/system/osi/include/
Dconfig.h29 std::string key;
30 std::string value;
34 std::string name;
36 void Set(std::string key, std::string value);
37 std::list<entry_t>::iterator Find(const std::string& key);
38 bool Has(const std::string& key);
43 std::list<section_t>::iterator Find(const std::string& section);
44 bool Has(const std::string& section);
58 std::string checksum_read(const char* filename);
69 bool config_has_section(const config_t& config, const std::string& section);
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastResources.java61 appendMessageDetail(context, buf, R.string.delivery_time_heading, in getMessageDetails()
66 appendMessageDetail(context, buf, R.string.message_identifier, in getMessageDetails()
68 appendMessageDetail(context, buf, R.string.message_serial_number, in getMessageDetails()
78 appendMessageDetail(context, buf, R.string.data_coding_scheme, in getMessageDetails()
81 appendMessageDetail(context, buf, R.string.message_content, message.getMessageBody()); in getMessageDetails()
83 appendMessageDetail(context, buf, R.string.location_check_time, locationCheckTime == -1 in getMessageDetails()
87 appendMessageDetail(context, buf, R.string.maximum_waiting_time, in getMessageDetails()
89 + context.getString(R.string.seconds)); in getMessageDetails()
91 appendMessageDetail(context, buf, R.string.message_displayed, in getMessageDetails()
94 appendMessageDetail(context, buf, R.string.message_coordinates, in getMessageDetails()
[all …]
/packages/modules/Bluetooth/system/btif/include/
Dbtif_config.h34 static const std::string BT_CONFIG_KEY_SDP_DI_MANUFACTURER =
36 static const std::string BT_CONFIG_KEY_SDP_DI_MODEL = "SdpDiModel";
37 static const std::string BT_CONFIG_KEY_SDP_DI_HW_VERSION =
39 static const std::string BT_CONFIG_KEY_SDP_DI_VENDOR_ID_SRC =
42 static const std::string BT_CONFIG_KEY_REMOTE_VER_MFCT = "Manufacturer";
43 static const std::string BT_CONFIG_KEY_REMOTE_VER_VER = "LmpVer";
44 static const std::string BT_CONFIG_KEY_REMOTE_VER_SUBVER = "LmpSubVer";
45 static const std::string BT_CONFIG_KEY_PBAP_PCE_VERSION = "PbapPceVersion";
46 static const std::string BT_CONFIG_KEY_DIS_MODEL_NUM = "ModelName";
48 bool btif_config_exist(const std::string& section, const std::string& key);
[all …]
Dbtif_config_cache.h34 std::vector<std::string> GetPersistentSectionNames();
36 bool HasSection(const std::string& section_name);
37 bool HasUnpairedSection(const std::string& section_name);
38 bool HasPersistentSection(const std::string& section_name);
39 bool HasKey(const std::string& section_name, const std::string& key);
40 bool RemoveKey(const std::string& section_name, const std::string& key);
41 void RemovePersistentSectionsWithKey(const std::string& key);
44 void SetString(std::string section_name, std::string key, std::string value);
45 std::optional<std::string> GetString(const std::string& section_name,
46 const std::string& key);
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DExerciseSessionFormatter.kt214 add(SessionHeader(context.getString(R.string.exercise_segments_header))) in <lambda>()
218 add(SessionHeader(context.getString(R.string.exercise_laps_header))) in <lambda>()
230 context.getString(R.string.session_title, record.title, type) in <lambda>()
233 context.getString(R.string.session_title, formatDuration(duration), type) in <lambda>()
260 format(context.getString(R.string.repetitions), mapOf("count" to repetitionsCount)) in <lambda>()
261 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>()
267 format(context.getString(R.string.repetitions_long), mapOf("count" to repetitionsCount)) in <lambda>()
268 return context.getString(R.string.repetitions_format, segmentType, repetitions) in <lambda>()
273 EXERCISE_SEGMENT_TYPE_BACK_EXTENSION -> context.getString(R.string.back_extension) in <lambda>()
275 context.getString(R.string.barbell_shoulder_press) in <lambda>()
[all …]
DNutritionFormatter.kt48 format(context.getString(R.string.gram_short_format), mapOf("count" to grams)) in <lambda>()
63 format(context.getString(R.string.gram_long_format), mapOf("count" to grams)) in <lambda>()
75 record.mealName?.run { stringJoiner.addAggregation(R.string.meal_name, this) } in <lambda>()
78 R.string.mealtype_label, formatMealType(context, record.mealType)) in <lambda>()
80 record.biotin?.addAggregation(R.string.biotin, stringJoiner, formatMass) in <lambda>()
81 record.caffeine?.addAggregation(R.string.caffeine, stringJoiner, formatMass) in <lambda>()
82 record.calcium?.addAggregation(R.string.calcium, stringJoiner, formatMass) in <lambda>()
83 record.chloride?.addAggregation(R.string.chloride, stringJoiner, formatMass) in <lambda>()
84 record.cholesterol?.addAggregation(R.string.cholesterol, stringJoiner, formatMass) in <lambda>()
85 record.chromium?.addAggregation(R.string.chromium, stringJoiner, formatMass) in <lambda>()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/util/
DContactDisplayUtils.java94 return R.string.call_other; in getPhoneLabelResourceId()
98 return R.string.call_home; in getPhoneLabelResourceId()
100 return R.string.call_mobile; in getPhoneLabelResourceId()
102 return R.string.call_work; in getPhoneLabelResourceId()
104 return R.string.call_fax_work; in getPhoneLabelResourceId()
106 return R.string.call_fax_home; in getPhoneLabelResourceId()
108 return R.string.call_pager; in getPhoneLabelResourceId()
110 return R.string.call_other; in getPhoneLabelResourceId()
112 return R.string.call_callback; in getPhoneLabelResourceId()
114 return R.string.call_car; in getPhoneLabelResourceId()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DContactDisplayUtils.java56 if (type == null) return R.string.call_other; in getPhoneLabelResourceId()
59 return R.string.call_home; in getPhoneLabelResourceId()
61 return R.string.call_mobile; in getPhoneLabelResourceId()
63 return R.string.call_work; in getPhoneLabelResourceId()
65 return R.string.call_fax_work; in getPhoneLabelResourceId()
67 return R.string.call_fax_home; in getPhoneLabelResourceId()
69 return R.string.call_pager; in getPhoneLabelResourceId()
71 return R.string.call_other; in getPhoneLabelResourceId()
73 return R.string.call_callback; in getPhoneLabelResourceId()
75 return R.string.call_car; in getPhoneLabelResourceId()
[all …]
/packages/modules/Bluetooth/system/main/shim/
Dconfig.h30 static bool HasSection(const std::string& section);
31 static bool HasProperty(const std::string& section,
32 const std::string& property);
33 static bool GetInt(const std::string& section, const std::string& key,
35 static bool SetInt(const std::string& section, const std::string& key,
37 static bool GetUint64(const std::string& section, const std::string& key,
39 static bool SetUint64(const std::string& section, const std::string& key,
41 static bool GetStr(const std::string& section, const std::string& key,
43 static std::optional<std::string> GetStr(const std::string& section,
44 const std::string& key);
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_test_utils.h96 ScopedSystemProperties(const std::string& key, const std::string& value) : mStoredKey(key) { in ScopedSystemProperties()
103 std::string mStoredKey;
104 std::string mStoredValue;
125 std::string host_name; // host name
127 std::string addr; // ipv4/v6 address
140 const std::string kFlagPrefix("persist.device_config.netd_native.");
142 const std::string kDohEarlyDataFlag(kFlagPrefix + "doh_early_data");
143 const std::string kDohFlag(kFlagPrefix + "doh");
144 const std::string kDohIdleTimeoutFlag(kFlagPrefix + "doh_idle_timeout_ms");
145 const std::string kDohProbeTimeoutFlag(kFlagPrefix + "doh_probe_timeout_ms");
[all …]
/packages/modules/StatsD/statsd/src/flags/
DFlagProvider.h34 std::function<std::string(const std::string&, const std::string&, const std::string&)>;
37 const std::string STATSD_NATIVE_NAMESPACE = "statsd_native";
38 const std::string STATSD_NATIVE_BOOT_NAMESPACE = "statsd_native_boot";
40 const std::string OPTIMIZATION_SOCKET_PARSING_FLAG = "optimization_socket_parsing";
41 const std::string STATSD_INIT_COMPLETED_NO_DELAY_FLAG = "statsd_init_completed_no_delay";
43 const std::string FLAG_TRUE = "true";
44 const std::string FLAG_FALSE = "false";
45 const std::string FLAG_EMPTY = "";
51 std::string getFlagString(const std::string& flagName, const std::string& defaultValue) const;
54 bool getFlagBool(const std::string& flagName, const std::string& defaultValue) const;
[all …]

12345678910>>...190