Home
last modified time | relevance | path

Searched refs:Setting (Results 1 – 25 of 29) sorted by relevance

12

/system/chre/host/hal_generic/common/
Dcontext_hub_settings_util.cc36 using ::android::hardware::contexthub::V1_2::Setting;
38 static_assert(sizeof(::android::hardware::contexthub::V1_1::Setting) ==
39 sizeof(Setting),
42 bool getFbsSetting(const Setting &setting, fbs::Setting *fbsSetting) { in getFbsSetting()
46 case Setting::LOCATION: in getFbsSetting()
47 *fbsSetting = fbs::Setting::LOCATION; in getFbsSetting()
49 case Setting::WIFI_AVAILABLE: in getFbsSetting()
50 *fbsSetting = fbs::Setting::WIFI_AVAILABLE; in getFbsSetting()
52 case Setting::AIRPLANE_MODE: in getFbsSetting()
53 *fbsSetting = fbs::Setting::AIRPLANE_MODE; in getFbsSetting()
[all …]
Dcontext_hub_settings_util.h41 const ::android::hardware::contexthub::V1_2::Setting &setting,
42 ::chre::fbs::Setting *fbsSetting);
/system/chre/core/
Dsettings.cc31 constexpr size_t kNumSettings = static_cast<size_t>(Setting::SETTING_MAX);
42 bool getIndexForSetting(Setting setting, size_t *index) { in getIndexForSetting()
43 if (setting < Setting::SETTING_MAX) { in getIndexForSetting()
51 void setSettingState(Setting setting, SettingState state) { in setSettingState()
60 const char *getSettingStateString(Setting setting) { in getSettingStateString()
75 void sendSettingChangedNotification(Setting setting, SettingState state) { in sendSettingChangedNotification()
92 Setting setting = NestedDataPtr<Setting>(data); in settingChangedCallback()
115 void postSettingChange(Setting setting, SettingState state) { in postSettingChange()
120 SystemCallbackType::SettingChangeEvent, NestedDataPtr<Setting>(setting), in postSettingChange()
124 SettingState getSettingState(Setting setting) { in getSettingState()
[all …]
Daudio_request_manager.cc209 (getSettingState(Setting::MICROPHONE) != SettingState::DISABLED)) { in doConfigureSource()
260 (getSettingState(Setting::MICROPHONE) == SettingState::DISABLED); in createAudioRequest()
350 (getSettingState(Setting::MICROPHONE) == SettingState::DISABLED); in handleAudioAvailabilitySync()
362 if (getSettingState(Setting::MICROPHONE) == SettingState::DISABLED) { in scheduleNextAudioDataEvent()
457 void AudioRequestManager::onSettingChanged(Setting setting, in onSettingChanged()
459 if (setting == Setting::MICROPHONE) { in onSettingChanged()
Dgnss_manager.cc85 void GnssManager::onSettingChanged(Setting setting, SettingState state) { in onSettingChanged()
268 (getSettingState(Setting::LOCATION) == SettingState::DISABLED)) { in handleReportEvent()
284 void GnssSession::onSettingChanged(Setting setting, SettingState state) { in onSettingChanged()
285 if (setting == Setting::LOCATION) { in onSettingChanged()
298 SettingState locationSetting = getSettingState(Setting::LOCATION); in updatePlatformRequest()
382 getSettingState(Setting::LOCATION) == SettingState::DISABLED) { in configure()
683 if (getSettingState(Setting::LOCATION) == SettingState::DISABLED) { in dispatchQueuedStateTransitions()
Dwifi_request_manager.cc97 if (getSettingState(Setting::LOCATION) == SettingState::DISABLED) { in requestRanging()
156 } else if (getSettingState(Setting::WIFI_AVAILABLE) == in requestScan()
580 if (getSettingState(Setting::LOCATION) == SettingState::DISABLED) { in dispatchQueuedRangingRequest()
598 if (getSettingState(Setting::LOCATION) == SettingState::DISABLED) { in handleRangingEventSync()
/system/chre/core/include/chre/core/
Dsettings.h26 enum class Setting : uint8_t { enum
42 void postSettingChange(Setting setting, SettingState state);
53 SettingState getSettingState(Setting setting);
Dgnss_manager.h101 void onSettingChanged(Setting setting, SettingState state);
414 void onSettingChanged(Setting setting, SettingState state);
Daudio_request_manager.h112 void onSettingChanged(Setting setting, SettingState state);
/system/chre/host/hal_generic/V1_1/
Dgeneric_context_hub_v1_1.cc48 Return<void> GenericContextHubV1_1::onSettingChanged(Setting setting, in onSettingChanged()
50 fbs::Setting fbsSetting; in onSettingChanged()
52 if (getFbsSetting(reinterpret_cast<V1_2::Setting &>(setting), &fbsSetting) && in onSettingChanged()
Dgeneric_context_hub_v1_1.h46 Return<void> onSettingChanged(V1_1::Setting setting,
/system/chre/host/hal_generic/V1_2/
Dgeneric_context_hub_v1_2.cc77 Return<void> GenericContextHubV1_2::onSettingChanged(V1_1::Setting setting, in onSettingChanged()
79 return onSettingChanged_1_2(reinterpret_cast<V1_2::Setting &>(setting), in onSettingChanged()
84 Setting setting, SettingValue newValue) { in onSettingChanged_1_2()
85 fbs::Setting fbsSetting; in onSettingChanged_1_2()
Dgeneric_context_hub_v1_2.h52 Return<void> onSettingChanged(V1_1::Setting setting,
55 Return<void> onSettingChanged_1_2(V1_2::Setting setting,
/system/chre/platform/shared/
Dhost_protocol_chre.cc263 bool HostProtocolChre::getSettingFromFbs(fbs::Setting setting, in getSettingFromFbs()
264 Setting *chreSetting) { in getSettingFromFbs()
267 case fbs::Setting::LOCATION: in getSettingFromFbs()
268 *chreSetting = Setting::LOCATION; in getSettingFromFbs()
270 case fbs::Setting::WIFI_AVAILABLE: in getSettingFromFbs()
271 *chreSetting = Setting::WIFI_AVAILABLE; in getSettingFromFbs()
273 case fbs::Setting::AIRPLANE_MODE: in getSettingFromFbs()
274 *chreSetting = Setting::AIRPLANE_MODE; in getSettingFromFbs()
276 case fbs::Setting::MICROPHONE: in getSettingFromFbs()
277 *chreSetting = Setting::MICROPHONE; in getSettingFromFbs()
Dchre_api_user_settings.cc25 using chre::Setting;
33 if (setting < static_cast<uint8_t>(Setting::SETTING_MAX)) { in chreUserSettingConfigureEvents()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_chre.h75 static void handleSettingChangeMessage(fbs::Setting setting,
222 static bool getSettingFromFbs(fbs::Setting setting, Setting *chreSetting);
/system/chre/host/common/include/chre_host/
Dhost_protocol_host.h229 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting,
/system/chre/platform/shared/include/chre/platform/shared/generated/
Dhost_messages_generated.h84 enum class Setting : int8_t { enum
93 inline const Setting (&EnumValuesSetting())[4] { in EnumValuesSetting()
94 static const Setting values[] = { in EnumValuesSetting()
95 Setting::LOCATION, in EnumValuesSetting()
96 Setting::WIFI_AVAILABLE, in EnumValuesSetting()
97 Setting::AIRPLANE_MODE, in EnumValuesSetting()
98 Setting::MICROPHONE in EnumValuesSetting()
114 inline const char *EnumNameSetting(Setting e) { in EnumNameSetting()
115 if (flatbuffers::IsOutRange(e, Setting::LOCATION, Setting::MICROPHONE)) return ""; in EnumNameSetting()
1629 chre::fbs::Setting setting() const {
[all …]
/system/bt/osi/
DAndroid.bp84 // TODO(armansito): Setting _GNU_SOURCE isn't very platform-independent but
/system/chre/host/common/
Dhost_protocol_host.cc202 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting, in encodeSettingChangeNotification()
/system/chre/host/common/include/chre_host/generated/
Dhost_messages_generated.h107 enum class Setting : int8_t { enum
116 inline const Setting (&EnumValuesSetting())[4] { in EnumValuesSetting()
117 static const Setting values[] = { in EnumValuesSetting()
118 Setting::LOCATION, in EnumValuesSetting()
119 Setting::WIFI_AVAILABLE, in EnumValuesSetting()
120 Setting::AIRPLANE_MODE, in EnumValuesSetting()
121 Setting::MICROPHONE in EnumValuesSetting()
137 inline const char *EnumNameSetting(Setting e) { in EnumNameSetting()
138 if (flatbuffers::IsOutRange(e, Setting::LOCATION, Setting::MICROPHONE)) return ""; in EnumNameSetting()
2293 chre::fbs::Setting setting;
[all …]
/system/extras/tests/workloads/
Dpwrtest.sh119 echo Setting usb pass-thru to $state
/system/chre/platform/slpi/
Dhost_link.cc941 void HostMessageHandlers::handleSettingChangeMessage(fbs::Setting setting, in handleSettingChangeMessage()
943 Setting chreSetting; in handleSettingChangeMessage()
/system/chre/platform/shared/idl/
Dhost_messages.fbs257 enum Setting : byte {
273 setting:Setting = LOCATION;
/system/chre/doc/
Dframework_build.md105 * Setting the target name and platform ID

12