/system/chre/host/hal_generic/common/ |
D | context_hub_settings_util.cc | 36 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 …]
|
D | context_hub_settings_util.h | 41 const ::android::hardware::contexthub::V1_2::Setting &setting, 42 ::chre::fbs::Setting *fbsSetting);
|
D | multi_client_context_hub_base.cc | 69 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 …]
|
D | multi_client_context_hub_base.h | 69 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/ |
D | settings.cc | 39 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 …]
|
D | audio_request_manager.cc | 221 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()
|
D | gnss_manager.cc | 88 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/ |
D | settings.h | 26 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);
|
D | gnss_manager.h | 111 void onSettingChanged(Setting setting, bool enabled); 428 void onSettingChanged(Setting setting, bool enabled);
|
D | audio_request_manager.h | 120 void onSettingChanged(Setting setting, bool enabled);
|
/system/chre/test/simulation/ |
D | settings_test.cc | 153 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()
|
D | wifi_scan_test.cc | 120 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()
|
D | ble_test.cc | 433 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/ |
D | generic_context_hub_v1_1.cc | 48 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()
|
D | generic_context_hub_v1_1.h | 46 Return<void> onSettingChanged(V1_1::Setting setting,
|
/system/chre/host/hal_generic/V1_2/ |
D | generic_context_hub_v1_2.cc | 79 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()
|
D | generic_context_hub_v1_2.h | 52 Return<void> onSettingChanged(V1_1::Setting setting, 55 Return<void> onSettingChanged_1_2(V1_2::Setting setting,
|
/system/chre/host/hal_generic/aidl/ |
D | generic_context_hub_aidl.cc | 77 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 …]
|
D | generic_context_hub_aidl.h | 71 ::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/ |
D | host_protocol_chre.cc | 386 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 …]
|
D | chre_api_user_settings.cc | 25 using chre::Setting; 34 if (setting < static_cast<uint8_t>(Setting::SETTING_MAX)) { in chreUserSettingConfigureEvents()
|
/system/chre/platform/shared/include/chre/platform/shared/ |
D | host_protocol_chre.h | 96 static void handleSettingChangeMessage(fbs::Setting setting, 294 static bool getSettingFromFbs(fbs::Setting setting, Setting *chreSetting);
|
/system/chre/platform/exynos/ |
D | host_link.cc | 205 void HostMessageHandlers::handleSettingChangeMessage(fbs::Setting setting, in handleSettingChangeMessage() 207 Setting chreSetting; in handleSettingChangeMessage()
|
/system/core/libvendorsupport/ |
D | Android.bp | 64 // Setting sdk_version to the lowest version allows the dependencies.
|
/system/chre/host/common/include/chre_host/ |
D | host_protocol_host.h | 245 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting,
|