/hardware/interfaces/biometrics/fingerprint/aidl/default/ |
D | VirtualHal.cpp | 33 Fingerprint::cfg().sourcedFromAidl(); in setEnrollments() 34 Fingerprint::cfg().setopt<OptIntVec>("enrollments", intVec2OptIntVec(enrollments)); in setEnrollments() 39 Fingerprint::cfg().sourcedFromAidl(); in setEnrollmentHit() 40 Fingerprint::cfg().set<std::int32_t>("enrollment_hit", enrollment_hit); in setEnrollmentHit() 46 Fingerprint::cfg().sourcedFromAidl(); in setNextEnrollment() 76 Fingerprint::cfg().set<std::string>("next_enrollment", os.str()); in setNextEnrollment() 81 Fingerprint::cfg().sourcedFromAidl(); in setAuthenticatorId() 82 Fingerprint::cfg().set<int64_t>("authenticator_id", in_id); in setAuthenticatorId() 87 Fingerprint::cfg().sourcedFromAidl(); in setChallenge() 88 Fingerprint::cfg().set<int64_t>("challenge", in_challenge); in setChallenge() [all …]
|
D | FakeFingerprintEngine.cpp | 43 Fingerprint::cfg().set<std::int64_t>("challenge", challenge); in generateChallengeImpl() 49 Fingerprint::cfg().setopt<OptInt64>("challenge", std::nullopt); in revokeChallengeImpl() 84 auto detectInteractionSupported = Fingerprint::cfg().get<bool>("detect_interaction"); in detectInteractionImpl() 133 BEGIN_OP(getLatency(Fingerprint::cfg().getopt<OptIntVec>("operation_enroll_latency"))); in onEnrollFingerDown() 136 auto err = Fingerprint::cfg().get<std::int32_t>("operation_enroll_error"); in onEnrollFingerDown() 145 auto nextEnroll = Fingerprint::cfg().get<std::string>("next_enrollment"); in onEnrollFingerDown() 174 Fingerprint::cfg().set<std::string>("next_enrollment", ""); in onEnrollFingerDown() 179 auto enrollments = Fingerprint::cfg().getopt<OptIntVec>("enrollments"); in onEnrollFingerDown() 181 Fingerprint::cfg().setopt<OptIntVec>("enrollments", enrollments); in onEnrollFingerDown() 182 Fingerprint::cfg().setopt<OptString>("next_enrollment", std::nullopt); in onEnrollFingerDown() [all …]
|
D | FakeLockoutTracker.cpp | 33 bool enabled = Fingerprint::cfg().get<bool>("lockout_enable"); in addFailedAttempt() 37 Fingerprint::cfg().get<std::int32_t>("lockout_timed_threshold"); in addFailedAttempt() 39 Fingerprint::cfg().get<std::int32_t>("lockout_permanent_threshold"); in addFailedAttempt() 42 Fingerprint::cfg().set<bool>("lockout", true); in addFailedAttempt() 57 Fingerprint::cfg().get<std::int32_t>("lockout_timed_duration"); in getMode() 72 Fingerprint::cfg().get<std::int32_t>("lockout_timed_duration"); in getLockoutTimeLeft()
|
D | Fingerprint.cpp | 46 std::string sensorTypeProp = Fingerprint::cfg().get<std::string>("type"); in Fingerprint() 71 auto sensorId = Fingerprint::cfg().get<std::int32_t>("sensor_id"); in getSensorProps() 72 auto sensorStrength = Fingerprint::cfg().get<std::int32_t>("sensor_strength"); in getSensorProps() 73 auto maxEnrollments = Fingerprint::cfg().get<std::int32_t>("max_enrollments"); in getSensorProps() 74 auto navigationGuesture = Fingerprint::cfg().get<bool>("navigation_guesture"); in getSensorProps() 75 auto detectInteraction = Fingerprint::cfg().get<bool>("detect_interaction"); in getSensorProps() 76 auto displayTouch = Fingerprint::cfg().get<bool>("display_touch"); in getSensorProps() 77 auto controlIllumination = Fingerprint::cfg().get<bool>("control_illumination"); in getSensorProps() 128 ::android::base::WriteStringToFd(Fingerprint::cfg().toString(), fd); in dump() 169 Fingerprint::cfg().init(); in resetConfigToDefault()
|
/hardware/interfaces/biometrics/common/config/tests/ |
D | ConfigTest.cpp | 115 void SetUp() override { cfg.init(); } in SetUp() 118 void switch2aidl() { cfg.sourcedFromAidl(); } in switch2aidl() 120 TestConfig cfg; member in aidl::android::hardware::biometrics::ConfigTest 134 ASSERT_EQ((std::get<OptInt32>(cfg.parseInt32(values[i].strval))).value_or(defval), in TEST_F() 151 ASSERT_EQ((std::get<OptInt64>(cfg.parseInt64(values[i].strval))).value_or(defval), in TEST_F() 166 ASSERT_EQ((std::get<OptBool>(cfg.parseBool(values[i].strval))).value_or(defval), in TEST_F() 178 ASSERT_EQ(std::get<OptIntVec>(cfg.parseIntVec(values[i].strval)), values[i].expval); in TEST_F() 183 ASSERT_EQ(cfg.get<std::string>("astring"), val_astring); in TEST_F() 184 ASSERT_EQ(cfg.get<std::int32_t>("aint32"), val_aint32); in TEST_F() 185 ASSERT_EQ(cfg.get<std::int64_t>("aint64"), val_aint64); in TEST_F() [all …]
|
/hardware/interfaces/biometrics/fingerprint/aidl/default/tests/ |
D | FakeFingerprintEngineTest.cpp | 129 Fingerprint::cfg().setopt<OptIntVec>("operation_enroll_latency", {0}); in SetUp() 130 Fingerprint::cfg().setopt<OptIntVec>("operation_authenticate_latency", {0}); in SetUp() 131 Fingerprint::cfg().setopt<OptIntVec>("operation_detect_interaction_latency", {0}); in SetUp() 136 Fingerprint::cfg().set<std::int32_t>("operation_authenticate_error", 0); in TearDown() 137 Fingerprint::cfg().set<std::int32_t>("operation_detect_interaction_error", 0); in TearDown() 138 Fingerprint::cfg().set<std::string>("operation_authenticate_acquired", ""); in TearDown() 139 Fingerprint::cfg().setopt<OptIntVec>("operation_enroll_latency", {}); in TearDown() 140 Fingerprint::cfg().setopt<OptIntVec>("operation_authenticate_latency", {}); in TearDown() 141 Fingerprint::cfg().setopt<OptIntVec>("operation_detect_interaction_latency", {}); in TearDown() 142 Fingerprint::cfg().set<bool>("operation_authenticate_fails", false); in TearDown() [all …]
|
D | FakeLockoutTrackerTest.cpp | 39 Fingerprint::cfg().set<std::int32_t>("lockout_timed_threshold", LOCKOUT_TIMED_THRESHOLD); in SetUp() 40 Fingerprint::cfg().set<std::int32_t>("lockout_timed_duration", LOCKOUT_TIMED_DURATION); in SetUp() 41 Fingerprint::cfg().set<std::int32_t>("lockout_permanent_threshold", in SetUp() 47 Fingerprint::cfg().set<std::int32_t>("lockout_timed_threshold", 5); in TearDown() 48 Fingerprint::cfg().set<std::int32_t>("lockout_timed_duration", 20); in TearDown() 49 Fingerprint::cfg().set<std::int32_t>("lockout_permanent_threshold", 10000); in TearDown() 50 Fingerprint::cfg().set<bool>("lockout_enable", false); in TearDown() 51 Fingerprint::cfg().set<bool>("lockout", false); in TearDown() 58 Fingerprint::cfg().set<bool>("lockout_enable", false); in TEST_F() 65 Fingerprint::cfg().set<bool>("lockout_enable", true); in TEST_F() [all …]
|
D | VirtualHalTest.cpp | 62 if (Fingerprint::cfg().get<int32_t>(name) != param) { in validateNonNegativeInputOfInt32() 69 int32_t old_param = Fingerprint::cfg().get<int32_t>(name); in validateNonNegativeInputOfInt32() 80 if (Fingerprint::cfg().get<int32_t>(name) != old_param) { in validateNonNegativeInputOfInt32() 90 ASSERT_TRUE(Fingerprint::cfg().get<bool>("lockout") == false); in TEST_F() 91 ASSERT_TRUE(Fingerprint::cfg().get<std::string>("type") == "rear"); in TEST_F() 92 ASSERT_TRUE(Fingerprint::cfg().get<std::int32_t>("sensor_strength") == 2); in TEST_F() 93 std::int64_t id = Fingerprint::cfg().get<std::int64_t>("authenticator_id"); in TEST_F() 94 ASSERT_TRUE(Fingerprint::cfg().get<std::int64_t>("authenticator_id") == 0); in TEST_F() 95 ASSERT_TRUE(Fingerprint::cfg().getopt<OptIntVec>("enrollments") == OptIntVec()); in TEST_F() 100 ASSERT_TRUE(Fingerprint::cfg().get<int32_t>("enrollment_hit") == 11); in TEST_F() [all …]
|
D | FakeFingerprintEngineUdfpsTest.cpp | 103 Fingerprint::cfg().set<std::string>("sensor_location", ""); in TearDown() 117 Fingerprint::cfg().set<std::string>("sensor_location", loc); in TEST_F() 124 Fingerprint::cfg().set<std::string>("sensor_location", loc); in TEST_F() 136 Fingerprint::cfg().set<std::string>("sensor_location", s); in TEST_F() 162 Fingerprint::cfg().set<std::string>("next_enrollment", "5:0,0:true"); in TEST_F() 173 Fingerprint::cfg().set<bool>("detect_interaction", true); in TEST_F() 174 Fingerprint::cfg().setopt<OptIntVec>("enrollments", {1, 2}); in TEST_F() 175 Fingerprint::cfg().set<std::int32_t>("enrollment_hit", 2); in TEST_F() 176 Fingerprint::cfg().set<std::string>("operation_detect_interaction_acquired", ""); in TEST_F()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/ |
D | ProtoMessageConverter.cpp | 73 void toProto(vhal_proto::VehiclePropConfig* protoCfg, const VehiclePropConfig& cfg) { in toProto() argument 74 protoCfg->set_prop(cfg.prop); in toProto() 75 protoCfg->set_access(toInt(cfg.access)); in toProto() 76 protoCfg->set_change_mode(toInt(cfg.changeMode)); in toProto() 77 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in toProto() 79 for (auto& configElement : cfg.configArray) { in toProto() 83 if (cfg.configString.size() > 0) { in toProto() 84 protoCfg->set_config_string(cfg.configString.c_str(), cfg.configString.size()); in toProto() 88 for (auto& areaConfig : cfg.areaConfigs) { in toProto() 92 switch (getPropType(cfg.prop)) { in toProto() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | QCameraFlash.cpp | 177 struct msm_flash_cfg_data_t cfg; in initFlash() local 179 memset(&cfg, 0, sizeof(struct msm_flash_cfg_data_t)); in initFlash() 182 cfg.cfg.flash_init_info = &init_info; in initFlash() 183 cfg.cfg_type = CFG_FLASH_INIT; in initFlash() 186 &cfg); in initFlash() 222 struct msm_flash_cfg_data_t cfg; in setFlashMode() local 236 memset(&cfg, 0, sizeof(struct msm_flash_cfg_data_t)); in setFlashMode() 238 cfg.flash_current[i] = QCAMERA_TORCH_CURRENT_VALUE; in setFlashMode() 239 cfg.cfg_type = mode ? CFG_FLASH_LOW: CFG_FLASH_OFF; in setFlashMode() 243 &cfg); in setFlashMode() [all …]
|
/hardware/interfaces/bluetooth/audio/utils/aidl_session/ |
D | BluetoothHfpCodecsProvider.cpp | 61 for (const auto& cfg : hfp_offload_setting.value().getConfiguration()) { in GetHfpAudioCodecInfo() local 62 auto input_path_cfg = path_config_map.find(cfg.getInputPathConfiguration()); in GetHfpAudioCodecInfo() 64 path_config_map.find(cfg.getOutputPathConfiguration()); in GetHfpAudioCodecInfo() 67 << cfg.getInputPathConfiguration(); in GetHfpAudioCodecInfo() 73 << cfg.getOutputPathConfiguration(); in GetHfpAudioCodecInfo() 79 switch (cfg.getCodec()) { in GetHfpAudioCodecInfo() 90 LOG(WARNING) << __func__ << ": Unknown codec from " << cfg.getName(); in GetHfpAudioCodecInfo() 94 codec_info.name = cfg.getName(); in GetHfpAudioCodecInfo() 101 transport.useControllerCodec = cfg.getUseControllerCodec(); in GetHfpAudioCodecInfo()
|
/hardware/interfaces/biometrics/fingerprint/aidl/default/include/ |
D | Fingerprint.h | 45 static FingerprintConfig& cfg() { in cfg() function 46 static FingerprintConfig* cfg = nullptr; in cfg() local 47 if (cfg == nullptr) { in cfg() 48 cfg = new FingerprintConfig(); in cfg() 49 cfg->init(); in cfg() 51 return *cfg; in cfg()
|
/hardware/google/av/media/eco/include/eco/ |
D | ECOService.h | 100 bool operator==(const SessionConfig& cfg) { 101 return mWidth == cfg.mWidth && mHeight == cfg.mHeight && 102 mIsCameraRecording == cfg.mIsCameraRecording; 114 size_t operator()(const SessionConfig& cfg) const { in operator() 116 return cfg.mWidth | (cfg.mHeight << 16) | ((int32_t)cfg.mIsCameraRecording << 31); in operator()
|
/hardware/interfaces/audio/aidl/vts/ |
D | VtsHalDynamicsProcessingTest.cpp | 103 return std::all_of(cfgs.cbegin(), cfgs.cend(), [channelCount](const T& cfg) { in isChannelConfigValid() argument 104 return (cfg.channel >= 0 && cfg.channel < channelCount); in isChannelConfigValid() 117 void addEngineConfig(const DynamicsProcessing::EngineArchitecture& cfg); 118 void addPreEqChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg); 119 void addPostEqChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg); 120 void addMbcChannelConfig(const std::vector<DynamicsProcessing::ChannelConfig>& cfg); 124 void addLimiterConfig(const std::vector<DynamicsProcessing::LimiterConfig>& cfg); 199 for (auto cfg : cfgs) { in isBandConfigValid() local 200 if (cfg.channel < 0 || cfg.channel >= mChannelCount) return false; in isBandConfigValid() 201 if (cfg.band < 0 || cfg.band >= bandCount) return false; in isBandConfigValid() [all …]
|
/hardware/qcom/sm8150/thermal/ |
D | thermal_target.c | 779 struct target_therm_cfg *cfg = NULL; in get_temperatures() local 784 cfg = sensor_cfg_8953; in get_temperatures() 788 cfg = sensor_cfg_660; in get_temperatures() 792 cfg = sensor_cfg_630; in get_temperatures() 797 cfg = sensor_cfg_710; in get_temperatures() 801 cfg = sensor_cfg_632; in get_temperatures() 805 cfg = sensor_cfg_439; in get_temperatures() 809 cfg = sensor_cfg_8917; in get_temperatures() 813 cfg = sensor_cfg_msmnile; in get_temperatures() 817 cfg = sensor_cfg_kona; in get_temperatures() [all …]
|
/hardware/interfaces/audio/aidl/default/dynamicProcessing/ |
D | DynamicsProcessingSw.cpp | 294 const DynamicsProcessing::EngineArchitecture& cfg) { in setEngineArchitecture() argument 295 RETURN_VALUE_IF(!validateEngineConfig(cfg), RetCode::ERROR_ILLEGAL_PARAMETER, in setEngineArchitecture() 298 if (mEngineSettings == cfg) { in setEngineArchitecture() 302 mEngineSettings = cfg; in setEngineArchitecture() 315 for (auto& cfg : cfgs) { in setChannelCfgs() local 316 if (cfg.channel < 0 || (size_t)cfg.channel >= mChannelCount) { in setChannelCfgs() 317 LOG(ERROR) << __func__ << " skip illegal channel config " << cfg.toString(); in setChannelCfgs() 321 if (0 != channelSet.count(cfg.channel)) { in setChannelCfgs() 322 LOG(WARNING) << __func__ << " duplicated channel " << cfg.channel; in setChannelCfgs() 325 channelSet.insert(cfg.channel); in setChannelCfgs() [all …]
|
/hardware/libhardware/tests/hwc/ |
D | util.c | 116 EGLConfig *cfg; in select_config_for_window() local 136 cfg = (EGLConfig*) malloc(sizeof(EGLConfig) * max); in select_config_for_window() 137 if (!cfg) in select_config_for_window() 140 if (eglChooseConfig(dpy, attr, cfg, max, &n) == EGL_FALSE) { in select_config_for_window() 147 eglGetConfigAttrib(dpy, cfg[i], EGL_RED_SIZE, &r); in select_config_for_window() 148 eglGetConfigAttrib(dpy, cfg[i], EGL_GREEN_SIZE, &g); in select_config_for_window() 149 eglGetConfigAttrib(dpy, cfg[i], EGL_BLUE_SIZE, &b); in select_config_for_window() 150 eglGetConfigAttrib(dpy, cfg[i], EGL_ALPHA_SIZE, &a); in select_config_for_window() 152 *config = cfg[i]; in select_config_for_window() 153 free(cfg); in select_config_for_window() [all …]
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/ |
D | IPACM_Config.cpp | 161 IPACM_conf_t *cfg; in Init() local 162 cfg = (IPACM_conf_t *)malloc(sizeof(IPACM_conf_t)); in Init() 163 if(cfg == NULL) in Init() 185 if (IPACM_SUCCESS == ipacm_read_cfg_xml(IPACM_config_file, cfg)) in Init() 197 ipa_num_ipa_interfaces = cfg->iface_config.num_iface_entries; in Init() 213 for (i = 0; i < cfg->iface_config.num_iface_entries; i++) in Init() 215 …strncpy(iface_table[i].iface_name, cfg->iface_config.iface_entries[i].iface_name, sizeof(iface_tab… in Init() 216 iface_table[i].if_cat = cfg->iface_config.iface_entries[i].if_cat; in Init() 217 iface_table[i].if_mode = cfg->iface_config.iface_entries[i].if_mode; in Init() 218 iface_table[i].wlan_mode = cfg->iface_config.iface_entries[i].wlan_mode; in Init() [all …]
|
/hardware/interfaces/bluetooth/audio/aidl/default/ |
D | LeAudioOffloadAudioProvider.cpp | 257 auto cfg = cfg_tag_map.find(cap_to_cfg_tag_map[codec_capability.getTag()]); in isCapabilitiesMatchedCodecConfiguration() local 260 if (cfg == cfg_tag_map.end()) { in isCapabilitiesMatchedCodecConfiguration() 267 cfg->second.get< in isCapabilitiesMatchedCodecConfiguration() 278 cfg->second in isCapabilitiesMatchedCodecConfiguration() 289 cfg->second.get<CodecSpecificConfigurationLtv::Tag:: in isCapabilitiesMatchedCodecConfiguration() 300 cfg->second.get<CodecSpecificConfigurationLtv::Tag:: in isCapabilitiesMatchedCodecConfiguration() 311 cfg->second.get< in isCapabilitiesMatchedCodecConfiguration() 360 for (auto cfg : setting_cfg.codecConfiguration) in filterMatchedAseConfiguration() local 361 cfg_tag_map[cfg.getTag()] = cfg; in filterMatchedAseConfiguration() 365 auto cfg = cfg_tag_map.find(requirement_cfg.getTag()); in filterMatchedAseConfiguration() local [all …]
|
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/ |
D | IPACM_Config.cpp | 182 IPACM_conf_t *cfg; in Init() local 183 cfg = (IPACM_conf_t *)malloc(sizeof(IPACM_conf_t)); in Init() 184 if(cfg == NULL) in Init() 209 if (IPACM_SUCCESS == ipacm_read_cfg_xml(IPACM_config_file, cfg)) in Init() 221 ipa_num_ipa_interfaces = cfg->iface_config.num_iface_entries; in Init() 237 for (i = 0; i < cfg->iface_config.num_iface_entries; i++) in Init() 239 …strlcpy(iface_table[i].iface_name, cfg->iface_config.iface_entries[i].iface_name, sizeof(iface_tab… in Init() 240 iface_table[i].if_cat = cfg->iface_config.iface_entries[i].if_cat; in Init() 241 iface_table[i].if_mode = cfg->iface_config.iface_entries[i].if_mode; in Init() 242 iface_table[i].wlan_mode = cfg->iface_config.iface_entries[i].wlan_mode; in Init() [all …]
|
/hardware/interfaces/camera/device/3.6/default/ |
D | ExternalCameraDevice.cpp | 31 const std::string& cameraId, const ExternalCameraConfig& cfg) : in ExternalCameraDevice() argument 32 V3_5::implementation::ExternalCameraDevice(cameraId, cfg) {} in ExternalCameraDevice() 38 const ExternalCameraConfig& cfg, in createSession() argument 45 cb, cfg, sortedFormats, croppingType, chars, cameraId, std::move(v4l2Fd)); in createSession()
|
/hardware/google/gfxstream/host/gl/glestranslator/EGL/ |
D | EglOsApi_egl.cpp | 542 const EGLConfig cfg = configs.get()[i]; in queryConfigs() local 547 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_RENDERABLE_TYPE, in queryConfigs() 552 configInfo.frmt = new EglOsEglPixelFormat(cfg, _renderableType); in queryConfigs() 553 D("config %p renderable type 0x%x\n", cfg, _renderableType); in queryConfigs() 555 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_RED_SIZE, in queryConfigs() 557 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_GREEN_SIZE, in queryConfigs() 559 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_BLUE_SIZE, in queryConfigs() 561 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_ALPHA_SIZE, in queryConfigs() 564 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_CONFIG_CAVEAT, in queryConfigs() 566 mDispatcher.eglGetConfigAttrib(mDisplay, cfg, EGL_DEPTH_SIZE, in queryConfigs() [all …]
|
/hardware/google/aemu/host-common/ |
D | MediaVpxVideoHelper.cpp | 60 vpx_codec_dec_cfg_t cfg; in init() local 62 memset(&cfg, 0, sizeof(cfg)); in init() 64 cfg.threads = 1; in init() 67 cfg.threads = std::min(mThreadCount, 4); in init() 73 &cfg, flags))) { in init()
|
/hardware/interfaces/camera/device/3.5/default/ |
D | ExternalCameraDevice.cpp | 31 const std::string& cameraId, const ExternalCameraConfig& cfg) : in ExternalCameraDevice() argument 32 V3_4::implementation::ExternalCameraDevice(cameraId, cfg) {} in ExternalCameraDevice() 46 const ExternalCameraConfig& cfg, in createSession() argument 53 cb, cfg, sortedFormats, croppingType, chars, cameraId, std::move(v4l2Fd)); in createSession()
|