Home
last modified time | relevance | path

Searched refs:Setting (Results 1 – 25 of 49) 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);
Dmulti_client_context_hub_base.cc69 bool getFbsSetting(const Setting &setting, fbs::Setting *fbsSetting) { in getFbsSetting()
72 case Setting::LOCATION: in getFbsSetting()
73 *fbsSetting = fbs::Setting::LOCATION; in getFbsSetting()
75 case Setting::AIRPLANE_MODE: in getFbsSetting()
76 *fbsSetting = fbs::Setting::AIRPLANE_MODE; in getFbsSetting()
78 case Setting::MICROPHONE: in getFbsSetting()
79 *fbsSetting = fbs::Setting::MICROPHONE; in getFbsSetting()
291 ScopedAStatus MultiClientContextHubBase::onSettingChanged(Setting setting, in onSettingChanged()
294 fbs::Setting fbsSetting; in onSettingChanged()
296 (setting == Setting::WIFI_MAIN || setting == Setting::WIFI_SCANNING || in onSettingChanged()
[all …]
Dmulti_client_context_hub_base.h69 ScopedAStatus onSettingChanged(Setting setting, bool enabled) override;
154 inline bool isSettingEnabled(Setting setting) { in isSettingEnabled()
180 std::unordered_map<Setting, bool> mSettingEnabled;
/system/chre/core/
Dsettings.cc39 bool getIndexForSetting(Setting setting, size_t *index) { in getIndexForSetting()
40 if (setting < Setting::SETTING_MAX) { in getIndexForSetting()
48 void sendSettingChangedNotification(Setting setting, bool enabled) { in sendSettingChangedNotification()
77 auto airplaneIndex = static_cast<uint8_t>(Setting::AIRPLANE_MODE); in SettingManager()
81 void SettingManager::postSettingChange(Setting setting, bool enabled) { in postSettingChange()
86 SystemCallbackType::SettingChangeEvent, NestedDataPtr<Setting>(setting), in postSettingChange()
90 bool SettingManager::getSettingEnabled(Setting setting) { in getSettingEnabled()
102 if (setting < static_cast<uint8_t>(Setting::SETTING_MAX)) { in getSettingStateAsInt8()
103 auto settingEnum = static_cast<Setting>(setting); in getSettingStateAsInt8()
111 debugDump.print("\n Location %s", getSettingEnabledString(Setting::LOCATION)); in logStateToBuffer()
[all …]
Daudio_request_manager.cc221 Setting::MICROPHONE))) { in doConfigureSource()
273 .getSettingEnabled(Setting::MICROPHONE); in createAudioRequest()
387 .getSettingEnabled(Setting::MICROPHONE); in handleAudioAvailabilitySync()
400 Setting::MICROPHONE)) { in scheduleNextAudioDataEvent()
496 void AudioRequestManager::onSettingChanged(Setting setting, bool enabled) { in onSettingChanged()
497 if (setting == Setting::MICROPHONE) { in onSettingChanged()
Dgnss_manager.cc88 void GnssManager::onSettingChanged(Setting setting, bool enabled) { in onSettingChanged()
306 .getSettingEnabled(Setting::LOCATION)) { in handleReportEvent()
321 void GnssSession::onSettingChanged(Setting setting, bool /*enabled*/) { in onSettingChanged()
322 if (setting == Setting::LOCATION) { in onSettingChanged()
337 Setting::LOCATION); in updatePlatformRequest()
422 .getSettingEnabled(Setting::LOCATION)) { in configure()
737 .getSettingEnabled(Setting::LOCATION)) { in dispatchQueuedStateTransitions()
/system/chre/core/include/chre/core/
Dsettings.h26 enum class Setting : uint8_t { enum
49 void postSettingChange(Setting setting, bool enabled);
59 bool getSettingEnabled(Setting setting);
83 static_cast<size_t>(Setting::SETTING_MAX);
88 void setSettingState(Setting setting, bool enabled);
90 const char *getSettingEnabledString(Setting setting);
Dgnss_manager.h111 void onSettingChanged(Setting setting, bool enabled);
428 void onSettingChanged(Setting setting, bool enabled);
Daudio_request_manager.h120 void onSettingChanged(Setting setting, bool enabled);
/system/chre/test/simulation/
Dsettings_test.cc153 Setting::LOCATION, false /* enabled */); in TEST_F()
157 Setting::LOCATION), in TEST_F()
164 Setting::LOCATION, true /* enabled */); in TEST_F()
169 Setting::LOCATION)); in TEST_F()
191 Setting::WIFI_AVAILABLE, false /* enabled */); in TEST_F()
197 Setting::WIFI_AVAILABLE, true /* enabled */); in TEST_F()
202 Setting::WIFI_AVAILABLE)); in TEST_F()
Dwifi_scan_test.cc120 Setting::WIFI_AVAILABLE, true /* enabled */); in TEST_F()
136 Setting::WIFI_AVAILABLE, false /* enabled */); in TEST_F()
148 Setting::WIFI_AVAILABLE, true /* enabled */); in TEST_F()
225 Setting::WIFI_AVAILABLE, false /* enabled */); in TEST_F()
243 Setting::WIFI_AVAILABLE, true /* enabled */); in TEST_F()
Dble_test.cc433 Setting::BLE_AVAILABLE, false /* enabled */); in TEST_F()
439 Setting::BLE_AVAILABLE)); in TEST_F()
444 Setting::BLE_AVAILABLE, true /* enabled */); in TEST_F()
449 Setting::BLE_AVAILABLE)); in TEST_F()
503 Setting::BLE_AVAILABLE, false /* enable */); in TEST_F()
569 Setting::BLE_AVAILABLE, false /* enable */); in TEST_F()
631 Setting::BLE_AVAILABLE, true /* enabled */); in TEST_F()
/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.cc79 Return<void> GenericContextHubV1_2::onSettingChanged(V1_1::Setting setting, in onSettingChanged()
81 return onSettingChanged_1_2(reinterpret_cast<V1_2::Setting &>(setting), in onSettingChanged()
86 Setting setting, SettingValue newValue) { in onSettingChanged_1_2()
87 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/host/hal_generic/aidl/
Dgeneric_context_hub_aidl.cc77 bool getFbsSetting(const Setting &setting, fbs::Setting *fbsSetting) { in getFbsSetting()
81 case Setting::LOCATION: in getFbsSetting()
82 *fbsSetting = fbs::Setting::LOCATION; in getFbsSetting()
84 case Setting::AIRPLANE_MODE: in getFbsSetting()
85 *fbsSetting = fbs::Setting::AIRPLANE_MODE; in getFbsSetting()
87 case Setting::MICROPHONE: in getFbsSetting()
88 *fbsSetting = fbs::Setting::MICROPHONE; in getFbsSetting()
176 ScopedAStatus ContextHub::onSettingChanged(Setting setting, bool enabled) { in onSettingChanged()
178 fbs::Setting fbsSetting; in onSettingChanged()
180 (setting == Setting::WIFI_MAIN || setting == Setting::WIFI_SCANNING || in onSettingChanged()
[all …]
Dgeneric_context_hub_aidl.h71 ::ndk::ScopedAStatus onSettingChanged(Setting setting, bool enabled) override;
222 bool isSettingEnabled(Setting setting) { in isSettingEnabled()
241 std::map<Setting, bool> mSettingEnabled;
/system/chre/platform/shared/
Dhost_protocol_chre.cc386 bool HostProtocolChre::getSettingFromFbs(fbs::Setting setting, in getSettingFromFbs()
387 Setting *chreSetting) { in getSettingFromFbs()
390 case fbs::Setting::LOCATION: in getSettingFromFbs()
391 *chreSetting = Setting::LOCATION; in getSettingFromFbs()
393 case fbs::Setting::WIFI_AVAILABLE: in getSettingFromFbs()
394 *chreSetting = Setting::WIFI_AVAILABLE; in getSettingFromFbs()
396 case fbs::Setting::AIRPLANE_MODE: in getSettingFromFbs()
397 *chreSetting = Setting::AIRPLANE_MODE; in getSettingFromFbs()
399 case fbs::Setting::MICROPHONE: in getSettingFromFbs()
400 *chreSetting = Setting::MICROPHONE; in getSettingFromFbs()
[all …]
Dchre_api_user_settings.cc25 using chre::Setting;
34 if (setting < static_cast<uint8_t>(Setting::SETTING_MAX)) { in chreUserSettingConfigureEvents()
/system/chre/platform/shared/include/chre/platform/shared/
Dhost_protocol_chre.h96 static void handleSettingChangeMessage(fbs::Setting setting,
294 static bool getSettingFromFbs(fbs::Setting setting, Setting *chreSetting);
/system/chre/platform/exynos/
Dhost_link.cc205 void HostMessageHandlers::handleSettingChangeMessage(fbs::Setting setting, in handleSettingChangeMessage()
207 Setting chreSetting; in handleSettingChangeMessage()
/system/core/libvendorsupport/
DAndroid.bp64 // Setting sdk_version to the lowest version allows the dependencies.
/system/chre/host/common/include/chre_host/
Dhost_protocol_host.h245 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting,

12