Home
last modified time | relevance | path

Searched refs:setting (Results 1 – 25 of 42) sorted by relevance

12

/chre-3.4.0/core/
Dsettings.cc38 bool getIndexForSetting(Setting setting, size_t *index) { in getIndexForSetting() argument
39 if (setting < Setting::SETTING_MAX) { in getIndexForSetting()
40 *index = static_cast<size_t>(setting); in getIndexForSetting()
47 void sendSettingChangedNotification(Setting setting, SettingState state) { in sendSettingChangedNotification() argument
49 auto settingAsInt = static_cast<uint8_t>(setting); in sendSettingChangedNotification()
53 eventData->setting = settingAsInt; in sendSettingChangedNotification()
79 void SettingManager::postSettingChange(Setting setting, SettingState state) { in postSettingChange() argument
81 static_cast<uint8_t>(setting), static_cast<uint8_t>(state)); in postSettingChange()
84 SystemCallbackType::SettingChangeEvent, NestedDataPtr<Setting>(setting), in postSettingChange()
88 SettingState SettingManager::getSettingState(Setting setting) { in getSettingState() argument
[all …]
Dnanoapp.cc116 void Nanoapp::configureUserSettingEvent(uint8_t setting, bool enable) { in configureUserSettingEvent() argument
118 registerForBroadcastEvent(CHRE_EVENT_SETTING_CHANGED_FIRST_EVENT + setting); in configureUserSettingEvent()
121 setting); in configureUserSettingEvent()
Dgnss_manager.cc85 void GnssManager::onSettingChanged(Setting setting, SettingState state) { in onSettingChanged() argument
86 mLocationSession.onSettingChanged(setting, state); in onSettingChanged()
87 mMeasurementSession.onSettingChanged(setting, state); in onSettingChanged()
285 void GnssSession::onSettingChanged(Setting setting, SettingState state) { in onSettingChanged() argument
286 if (setting == Setting::LOCATION) { in onSettingChanged()
/chre-3.4.0/platform/shared/
Dchre_api_user_settings.cc28 DLL_EXPORT int8_t chreUserSettingGetState(uint8_t setting) { in chreUserSettingGetState() argument
31 .getSettingStateAsInt8(setting); in chreUserSettingGetState()
34 DLL_EXPORT void chreUserSettingConfigureEvents(uint8_t setting, bool enable) { in chreUserSettingConfigureEvents() argument
35 if (setting < static_cast<uint8_t>(Setting::SETTING_MAX)) { in chreUserSettingConfigureEvents()
37 nanoapp->configureUserSettingEvent(setting, enable); in chreUserSettingConfigureEvents()
Dhost_protocol_chre.cc116 settingMessage->setting(), settingMessage->state()); in decodeMessageFromHost()
263 bool HostProtocolChre::getSettingFromFbs(fbs::Setting setting, in getSettingFromFbs() argument
266 switch (setting) { in getSettingFromFbs()
280 LOGE("Unknown setting %" PRIu8, static_cast<uint8_t>(setting)); in getSettingFromFbs()
Dlog_buffer.cc125 void LogBuffer::updateNotificationSetting(LogBufferNotificationSetting setting, in updateNotificationSetting() argument
129 mNotificationSetting = setting; in updateNotificationSetting()
/chre-3.4.0/core/include/chre/core/
Dsettings.h50 void postSettingChange(Setting setting, SettingState state);
61 SettingState getSettingState(Setting setting);
73 int8_t getSettingStateAsInt8(uint8_t setting);
90 void setSettingState(Setting setting, SettingState state);
92 const char *getSettingStateString(Setting setting);
Dgnss_manager.h101 void onSettingChanged(Setting setting, SettingState state);
414 void onSettingChanged(Setting setting, SettingState state);
Dnanoapp.h171 void configureUserSettingEvent(uint8_t setting, bool enable);
/chre-3.4.0/chre_api/include/chre_api/chre/
Duser_settings.h75 #error Too many setting changed events.
96 uint8_t setting; member
114 int8_t chreUserSettingGetState(uint8_t setting);
129 void chreUserSettingConfigureEvents(uint8_t setting, bool enable);
/chre-3.4.0/host/hal_generic/V1_2/
Dgeneric_context_hub_v1_2.cc77 Return<void> GenericContextHubV1_2::onSettingChanged(V1_1::Setting setting, in onSettingChanged() argument
79 return onSettingChanged_1_2(reinterpret_cast<V1_2::Setting &>(setting), in onSettingChanged()
84 Setting setting, SettingValue newValue) { in onSettingChanged_1_2() argument
87 if (getFbsSetting(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,
/chre-3.4.0/host/hal_generic/common/
Dcontext_hub_settings_util.cc42 bool getFbsSetting(const Setting &setting, fbs::Setting *fbsSetting) { in getFbsSetting() argument
45 switch (setting) { in getFbsSetting()
60 ALOGE("Setting update with invalid enum value %hhu", setting); in getFbsSetting()
Dcontext_hub_settings_util.h41 const ::android::hardware::contexthub::V1_2::Setting &setting,
/chre-3.4.0/host/hal_generic/V1_1/
Dgeneric_context_hub_v1_1.cc48 Return<void> GenericContextHubV1_1::onSettingChanged(Setting setting, in onSettingChanged() argument
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,
/chre-3.4.0/platform/shared/nanoapp/
Dnanoapp_support_lib_dso.cc325 int8_t chreUserSettingGetState(uint8_t setting) { in chreUserSettingGetState() argument
329 settingState = fptr(setting); in chreUserSettingGetState()
335 void chreUserSettingConfigureEvents(uint8_t setting, bool enable) { in chreUserSettingConfigureEvents() argument
338 fptr(setting, enable); in chreUserSettingConfigureEvents()
/chre-3.4.0/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);
Dlog_buffer.h162 void updateNotificationSetting(LogBufferNotificationSetting setting,
/chre-3.4.0/apps/audio_world/
Daudio_world.cc135 if (event->setting != CHRE_USER_SETTING_MICROPHONE) { in handleAudioSettingChangedNotification()
136 LOGE("Unexpected setting ID: %u", event->setting); in handleAudioSettingChangedNotification()
/chre-3.4.0/java/test/settings/src/com/google/android/chre/test/setting/
DContextHubGnssSettingsTestExecutor.java16 package com.google.android.chre.test.setting;
DContextHubMicDisableSettingsTestExecutor.java16 package com.google.android.chre.test.setting;
/chre-3.4.0/std_overrides/
DREADME.md13 developers need to enable it by setting a flag in the nanoapp Makefile:
/chre-3.4.0/host/common/
Dhost_protocol_host.cc202 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting, in encodeSettingChangeNotification() argument
205 fbs::CreateSettingChangeMessage(builder, setting, newState); in encodeSettingChangeNotification()
/chre-3.4.0/host/common/include/chre_host/
Dhost_protocol_host.h229 flatbuffers::FlatBufferBuilder &builder, ::chre::fbs::Setting setting,

12