Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 205) sorted by relevance

123456789

/system/bt/audio_bluetooth_hw/
Dutils_unittest.cc35 std::string params = ""; in TEST_F() local
36 map_ = ParseAudioParams(params); in TEST_F()
42 std::string params = ";"; in TEST_F() local
43 map_ = ParseAudioParams(params); in TEST_F()
49 std::string params = "key0"; in TEST_F() local
50 map_ = ParseAudioParams(params); in TEST_F()
58 std::string params = "key0="; in TEST_F() local
59 map_ = ParseAudioParams(params); in TEST_F()
67 std::string params = "key0=;"; in TEST_F() local
68 map_ = ParseAudioParams(params); in TEST_F()
[all …]
/system/bt/btif/src/
Dbtif_gatt_test.cc172 const btgatt_test_params_t* params) { in btif_gattc_test_command_impl() argument
176 LOG_DEBUG("%s: ENABLE - enable=%d", __func__, params->u1); in btif_gattc_test_command_impl()
177 if (params->u1) { in btif_gattc_test_command_impl()
193 params->bda1->ToString().c_str(), params->u1, params->u2); in btif_gattc_test_command_impl()
195 if (params->u1 == BT_DEVICE_TYPE_BLE) in btif_gattc_test_command_impl()
196 BTM_SecAddBleDevice(*params->bda1, NULL, BT_DEVICE_TYPE_BLE, in btif_gattc_test_command_impl()
197 params->u2); in btif_gattc_test_command_impl()
199 if (!GATT_Connect(test_cb.gatt_if, *params->bda1, true, BT_TRANSPORT_LE, in btif_gattc_test_command_impl()
215 if (params->u1 >= GATT_DISC_MAX) { in btif_gattc_test_command_impl()
216 LOG_ERROR("%s: DISCOVER - Invalid type (%d)!", __func__, params->u1); in btif_gattc_test_command_impl()
[all …]
/system/bt/osi/test/
Dhash_map_utils_test.cc40 char params[] = ""; in TEST_F() local
41 map = hash_map_utils_new_from_string_params(params); in TEST_F()
46 char params[] = ";;;"; in TEST_F() local
47 map = hash_map_utils_new_from_string_params(params); in TEST_F()
52 char params[] = "keyOfSomething=value=OfSomething"; in TEST_F() local
55 map = hash_map_utils_new_from_string_params(params); in TEST_F()
62 char params[] = "key=valu0;key=value1"; in TEST_F() local
65 map = hash_map_utils_new_from_string_params(params); in TEST_F()
71 char params[] = "keyOfSomething=valueOfSomething"; in TEST_F() local
74 map = hash_map_utils_new_from_string_params(params); in TEST_F()
[all …]
/system/memory/lmkd/include/
Dlmkd.h114 struct lmk_procprio* params) { in lmkd_pack_get_procprio() argument
115 params->pid = (pid_t)ntohl(packet[1]); in lmkd_pack_get_procprio()
116 params->uid = (uid_t)ntohl(packet[2]); in lmkd_pack_get_procprio()
117 params->oomadj = ntohl(packet[3]); in lmkd_pack_get_procprio()
119 params->ptype = field_count > 3 ? (enum proc_type)ntohl(packet[4]) : PROC_TYPE_APP; in lmkd_pack_get_procprio()
126 static inline size_t lmkd_pack_set_procprio(LMKD_CTRL_PACKET packet, struct lmk_procprio* params) { in lmkd_pack_set_procprio() argument
128 packet[1] = htonl(params->pid); in lmkd_pack_set_procprio()
129 packet[2] = htonl(params->uid); in lmkd_pack_set_procprio()
130 packet[3] = htonl(params->oomadj); in lmkd_pack_set_procprio()
131 packet[4] = htonl((int)params->ptype); in lmkd_pack_set_procprio()
[all …]
/system/libufdt/tests/src/
Dufdt_gen_test_dts.c133 static int gen_dts(FILE *fp, const struct gen_params *params) { in gen_dts() argument
134 if (!params->no_header) { in gen_dts()
135 output_header(fp, params->plugin); in gen_dts()
138 if (params->node_num > 0) { in gen_dts()
139 output_root_begin(fp, params->depth); in gen_dts()
140 output_unused_nodes(fp, params->unused_num); in gen_dts()
141 output_nodes(fp, params->node_num, "status", "disabled"); in gen_dts()
142 output_root_end(fp, params->depth); in gen_dts()
146 output_ref_nodes(fp, start_id, params->append_num, "new_prop", "bar"); in gen_dts()
147 start_id += params->append_num; in gen_dts()
[all …]
/system/core/fs_mgr/
Dfs_mgr_verity.cpp195 const struct verity_table_params *params);
198 const struct verity_table_params *params) in format_verity_table() argument
203 if (params->mode == VERITY_MODE_RESTART) { in format_verity_table()
205 } else if (params->mode == VERITY_MODE_LOGGING) { in format_verity_table()
209 if (params->ecc.valid) { in format_verity_table()
213 params->table, 1 + VERITY_TABLE_OPT_FEC_ARGS, mode_flag, params->ecc_dev, in format_verity_table()
214 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
218 params->table, VERITY_TABLE_OPT_FEC_ARGS, params->ecc_dev, in format_verity_table()
219 params->ecc.start / FEC_BLOCKSIZE, params->ecc.blocks, params->ecc.roots); in format_verity_table()
222 res = snprintf(buf, bufsize, "%s 2 " VERITY_TABLE_OPT_IGNZERO " %s", params->table, in format_verity_table()
[all …]
Dfs_mgr_dm_linear.cpp55 static bool GetPhysicalPartitionDevicePath(const CreateLogicalPartitionParams& params, in GetPhysicalPartitionDevicePath() argument
72 auto opener = params.partition_opener; in GetPhysicalPartitionDevicePath()
74 if (GetMetadataSuperBlockDevice(*params.metadata) == &block_device) { in GetPhysicalPartitionDevicePath()
92 bool CreateDmTableInternal(const CreateLogicalPartitionParams& params, DmTable* table) { in CreateDmTableInternal() argument
93 const auto& super_device = params.block_device; in CreateDmTableInternal()
96 for (size_t i = 0; i < params.partition->num_extents; i++) { in CreateDmTableInternal()
97 const auto& extent = params.metadata->extents[params.partition->first_extent_index + i]; in CreateDmTableInternal()
104 const auto& block_device = params.metadata->block_devices[extent.target_source]; in CreateDmTableInternal()
106 if (!GetPhysicalPartitionDevicePath(params, block_device, super_device, in CreateDmTableInternal()
124 if (params.partition->attributes & LP_PARTITION_ATTR_READONLY) { in CreateDmTableInternal()
[all …]
/system/nfc/src/nfa/dm/
Dnfa_dm_main.cc245 p_stored = nfa_dm_cb.params.pf_rc; in nfa_dm_check_set_config()
249 p_stored = nfa_dm_cb.params.total_duration; in nfa_dm_check_set_config()
257 p_stored = nfa_dm_cb.params.la_bit_frame_sdd; in nfa_dm_check_set_config()
259 p_cur_len = &nfa_dm_cb.params.la_bit_frame_sdd_len; in nfa_dm_check_set_config()
262 p_stored = nfa_dm_cb.params.la_platform_config; in nfa_dm_check_set_config()
264 p_cur_len = &nfa_dm_cb.params.la_platform_config_len; in nfa_dm_check_set_config()
267 p_stored = nfa_dm_cb.params.la_sel_info; in nfa_dm_check_set_config()
269 p_cur_len = &nfa_dm_cb.params.la_sel_info_len; in nfa_dm_check_set_config()
272 p_stored = nfa_dm_cb.params.la_nfcid1; in nfa_dm_check_set_config()
274 p_cur_len = &nfa_dm_cb.params.la_nfcid1_len; in nfa_dm_check_set_config()
[all …]
/system/libufdt/utils/src/
Dmkdtimg_cfg_create.c120 static int process_command_cfg_create(const struct cfg_create_params *params) { in process_command_cfg_create() argument
125 cfg_fp = fopen(params->cfg_filename, "r"); in process_command_cfg_create()
127 fprintf(stderr, "Can not open config file: %s\n", params->cfg_filename); in process_command_cfg_create()
131 printf("create image file: %s...\n", params->img_filename); in process_command_cfg_create()
133 img_fp = fopen(params->img_filename, "wb"); in process_command_cfg_create()
135 fprintf(stderr, "Can not create file: %s\n", params->img_filename); in process_command_cfg_create()
139 if (params->dtb_dir != NULL) { in process_command_cfg_create()
140 if (chdir(params->dtb_dir) != 0) { in process_command_cfg_create()
141 fprintf(stderr, "Can not switch to directory: %s\n", params->dtb_dir); in process_command_cfg_create()
149 params->cfg_filename); in process_command_cfg_create()
[all …]
Dmkdtimg_dump.c159 const struct dump_params *params) { in dump_image_from_fp() argument
194 if (params->out_dtb_filename != NULL) { in dump_image_from_fp()
197 params->out_dtb_filename, i); in dump_image_from_fp()
210 static int process_command_dump(const struct dump_params *params) { in process_command_dump() argument
215 img_fp = fopen(params->img_filename, "rb"); in process_command_dump()
217 fprintf(stderr, "Can not open image file: %s\n", params->img_filename); in process_command_dump()
221 if (params->out_filename != NULL) { in process_command_dump()
222 out_fp = fopen(params->out_filename, "w"); in process_command_dump()
224 fprintf(stderr, "Can not create file: %s\n", params->out_filename); in process_command_dump()
229 ret = dump_image_from_fp(out_fp ? out_fp : stdout, img_fp, params); in process_command_dump()
[all …]
/system/security/keystore/
Dkeystore_utils.cpp108 void add_legacy_key_authorizations(int keyType, keystore::AuthorizationSet* params) { in add_legacy_key_authorizations() argument
110 params->push_back(TAG_PURPOSE, KeyPurpose::SIGN); in add_legacy_key_authorizations()
111 params->push_back(TAG_PURPOSE, KeyPurpose::VERIFY); in add_legacy_key_authorizations()
112 params->push_back(TAG_PURPOSE, KeyPurpose::ENCRYPT); in add_legacy_key_authorizations()
113 params->push_back(TAG_PURPOSE, KeyPurpose::DECRYPT); in add_legacy_key_authorizations()
114 params->push_back(TAG_PADDING, PaddingMode::NONE); in add_legacy_key_authorizations()
116 params->push_back(TAG_PADDING, PaddingMode::RSA_PKCS1_1_5_SIGN); in add_legacy_key_authorizations()
117 params->push_back(TAG_PADDING, PaddingMode::RSA_PKCS1_1_5_ENCRYPT); in add_legacy_key_authorizations()
118 params->push_back(TAG_PADDING, PaddingMode::RSA_PSS); in add_legacy_key_authorizations()
119 params->push_back(TAG_PADDING, PaddingMode::RSA_OAEP); in add_legacy_key_authorizations()
[all …]
/system/vold/
DScryptParameters.cpp23 int params[3] = {}; in parse_scrypt_parameters() local
35 params[i] = strtol(token, &endptr, 10); in parse_scrypt_parameters()
40 if ((*token == '\0') || (*endptr != '\0') || params[i] < 0 || params[i] > 255) { in parse_scrypt_parameters()
47 *Nf = params[0]; in parse_scrypt_parameters()
48 *rf = params[1]; in parse_scrypt_parameters()
49 *pf = params[2]; in parse_scrypt_parameters()
/system/core/init/
Dlmkd_service.cpp47 struct lmk_procprio params; in RegisterProcess() local
48 params.pid = pid; in RegisterProcess()
49 params.uid = uid; in RegisterProcess()
50 params.oomadj = oom_score_adjust; in RegisterProcess()
51 params.ptype = PROC_TYPE_SERVICE; in RegisterProcess()
52 if (lmkd_register_proc(lmkd_socket, &params) != 0) { in RegisterProcess()
69 struct lmk_procremove params; in UnregisterProcess() local
70 params.pid = pid; in UnregisterProcess()
71 if (lmkd_unregister_proc(lmkd_socket, &params) != 0) { in UnregisterProcess()
/system/extras/tests/audio/alsa/
Dpcmtest.cpp129 struct pcm_params *params; in getPcmParams() local
133 params = pcm_params_get(pcmnodes[i].card, pcmnodes[i].device, in getPcmParams()
135 if (params == NULL) in getPcmParams()
138 min = pcm_params_get_min(params, PCM_PARAM_RATE); in getPcmParams()
139 max = pcm_params_get_max(params, PCM_PARAM_RATE); in getPcmParams()
142 min = pcm_params_get_min(params, PCM_PARAM_CHANNELS); in getPcmParams()
143 max = pcm_params_get_max(params, PCM_PARAM_CHANNELS); in getPcmParams()
146 min = pcm_params_get_min(params, PCM_PARAM_SAMPLE_BITS); in getPcmParams()
147 max = pcm_params_get_max(params, PCM_PARAM_SAMPLE_BITS); in getPcmParams()
150 min = pcm_params_get_min(params, PCM_PARAM_PERIOD_SIZE); in getPcmParams()
[all …]
/system/nfc/src/nfa/rw/
Dnfa_rw_api.cc163 p_msg->params.write_ndef.len = len; in NFA_RwWriteNDef()
164 p_msg->params.write_ndef.p_data = p_data; in NFA_RwWriteNDef()
198 p_msg->params.option = option; in NFA_RwPresenceCheck()
287 p_msg->params.set_readonly.b_hard_lock = b_hard_lock; in NFA_RwSetTagReadOnly()
447 p_msg->params.t1t_read.block_number = block_number; in NFA_RwT1tRead()
448 p_msg->params.t1t_read.index = index; in NFA_RwT1tRead()
480 p_msg->params.t1t_write.b_erase = b_erase; in NFA_RwT1tWrite()
482 p_msg->params.t1t_write.block_number = block_number; in NFA_RwT1tWrite()
483 p_msg->params.t1t_write.index = index; in NFA_RwT1tWrite()
484 p_msg->params.t1t_write.p_block_data[0] = data; in NFA_RwT1tWrite()
[all …]
/system/keymaster/ng/
DAndroidKeymaster4Device.cpp80 KmParamSet(KmParamSet&& other) : keymaster_key_param_set_t{other.params, other.length} { in KmParamSet()
82 other.params = nullptr;
85 ~KmParamSet() { delete[] params; } in ~KmParamSet()
122 if (set.length == 0 || set.params == nullptr) in kmParamSet2Hidl()
126 keymaster_key_param_t* params = set.params; in kmParamSet2Hidl() local
128 auto tag = params[i].tag; in kmParamSet2Hidl()
133 result[i].f.integer = params[i].enumerated; in kmParamSet2Hidl()
137 result[i].f.integer = params[i].integer; in kmParamSet2Hidl()
141 result[i].f.longInteger = params[i].long_integer; in kmParamSet2Hidl()
144 result[i].f.dateTime = params[i].date_time; in kmParamSet2Hidl()
[all …]
DAndroidKeymaster3Device.cpp89 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet()
96 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet()
100 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet()
104 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet()
107 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet()
111 params[i] = keymaster_param_bool(tag); in KmParamSet()
113 params[i].tag = KM_TAG_INVALID; in KmParamSet()
117 params[i] = in KmParamSet()
122 params[i].tag = KM_TAG_INVALID; in KmParamSet()
128 KmParamSet(KmParamSet&& other) : keymaster_key_param_set_t{other.params, other.length} { in KmParamSet()
[all …]
/system/update_engine/
Dboot_control_chromeos.cc226 CgptAddParams params; in IsSlotBootable() local
227 memset(&params, '\0', sizeof(params)); in IsSlotBootable()
228 params.drive_name = const_cast<char*>(boot_disk_name_.c_str()); in IsSlotBootable()
229 params.partition = partition_num; in IsSlotBootable()
231 int retval = CgptGetPartitionDetails(&params); in IsSlotBootable()
235 return params.successful || params.tries > 0; in IsSlotBootable()
250 CgptAddParams params; in MarkSlotUnbootable() local
251 memset(&params, 0, sizeof(params)); in MarkSlotUnbootable()
253 params.drive_name = const_cast<char*>(boot_disk_name_.c_str()); in MarkSlotUnbootable()
254 params.partition = partition_num; in MarkSlotUnbootable()
[all …]
Domaha_response_handler_action_unittest.cc297 OmahaRequestParams params(&fake_system_state_); in TEST_F() local
298 params.set_is_install(true); in TEST_F()
300 fake_system_state_.set_request_params(&params); in TEST_F()
447 OmahaRequestParams params(&fake_system_state_); in TEST_F() local
449 params.set_root(tempdir.GetPath().value()); in TEST_F()
450 params.set_current_channel("canary-channel"); in TEST_F()
456 EXPECT_TRUE(params.SetTargetChannel("stable-channel", true, nullptr)); in TEST_F()
457 params.UpdateDownloadChannel(); in TEST_F()
458 params.set_app_version("2.0.0.0"); in TEST_F()
460 fake_system_state_.set_request_params(&params); in TEST_F()
[all …]
Domaha_request_params_unittest.cc113 OmahaRequestParams params(&fake_system_state_); in TEST_F() local
114 params.set_root(tempdir_.GetPath().value()); in TEST_F()
115 EXPECT_TRUE(params.Init("", "", false)); in TEST_F()
116 EXPECT_TRUE(params.SetTargetChannel("canary-channel", false, nullptr)); in TEST_F()
117 EXPECT_FALSE(params.mutable_image_props_.is_powerwash_allowed); in TEST_F()
127 OmahaRequestParams params(&fake_system_state_); in TEST_F() local
128 params.set_root(tempdir_.GetPath().value()); in TEST_F()
129 EXPECT_TRUE(params.Init("", "", false)); in TEST_F()
130 EXPECT_TRUE(params.SetTargetChannel("canary-channel", true, nullptr)); in TEST_F()
131 EXPECT_TRUE(params.mutable_image_props_.is_powerwash_allowed); in TEST_F()
[all …]
/system/chre/platform/shared/
Dchre_api_wifi.cc46 const struct chreWifiScanParams *params, const void *cookie) { in chreWifiRequestScanAsync() argument
49 return (params == nullptr) ? false : in chreWifiRequestScanAsync()
51 .requestScan(nanoapp, params, cookie); in chreWifiRequestScanAsync()
58 const struct chreWifiRangingParams *params, const void *cookie) { in chreWifiRequestRangingAsync() argument
61 return (params == nullptr) ? false : in chreWifiRequestRangingAsync()
63 .requestRanging(nanoapp, params, cookie); in chreWifiRequestRangingAsync()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp128 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet()
135 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet()
139 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet()
143 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet()
146 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet()
150 params[i] = keymaster_param_bool(tag); in KmParamSet()
152 params[i].tag = KM_TAG_INVALID; in KmParamSet()
156 params[i] = keymaster_param_blob(tag, &keyParams[i].blob[0], in KmParamSet()
161 params[i].tag = KM_TAG_INVALID; in KmParamSet()
168 : keymaster_key_param_set_t{other.params, other.length} { in KmParamSet()
[all …]
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp76 params = new keymaster_key_param_t[keyParams.size()]; in KmParamSet()
83 params[i] = keymaster_param_enum(tag, keyParams[i].f.integer); in KmParamSet()
87 params[i] = keymaster_param_int(tag, keyParams[i].f.integer); in KmParamSet()
91 params[i] = keymaster_param_long(tag, keyParams[i].f.longInteger); in KmParamSet()
94 params[i] = keymaster_param_date(tag, keyParams[i].f.dateTime); in KmParamSet()
98 params[i] = keymaster_param_bool(tag); in KmParamSet()
100 params[i].tag = KM_TAG_INVALID; in KmParamSet()
104 params[i] = keymaster_param_blob(tag, &keyParams[i].blob[0], in KmParamSet()
109 params[i].tag = KM_TAG_INVALID; in KmParamSet()
116 : keymaster_key_param_set_t{other.params, other.length} { in KmParamSet()
[all …]
/system/memory/lmkd/
Dliblmkd_utils.cpp34 int lmkd_register_proc(int sock, struct lmk_procprio *params) { in lmkd_register_proc() argument
39 size = lmkd_pack_set_procprio(packet, params); in lmkd_register_proc()
45 int lmkd_unregister_proc(int sock, struct lmk_procremove *params) { in lmkd_unregister_proc() argument
50 size = lmkd_pack_set_procremove(packet, params); in lmkd_unregister_proc()
74 struct lmk_update_props_reply params; in lmkd_update_props() local
75 lmkd_pack_get_update_props_repl(packet, &params); in lmkd_update_props()
77 return params.result == 0 ? UPDATE_PROPS_SUCCESS : UPDATE_PROPS_FAIL; in lmkd_update_props()
/system/chre/chre_api/legacy/v1_1/chre/
Dwifi.h510 bool chreWifiRequestScanAsync(const struct chreWifiScanParams *params,
525 struct chreWifiScanParams params = {}; in chreWifiRequestScanAsyncDefault() local
526 params.scanType = CHRE_WIFI_SCAN_TYPE_ACTIVE; in chreWifiRequestScanAsyncDefault()
527 params.maxScanAgeMs = 5000; // 5 seconds in chreWifiRequestScanAsyncDefault()
528 params.frequencyListLen = 0; in chreWifiRequestScanAsyncDefault()
529 params.ssidListLen = 0; in chreWifiRequestScanAsyncDefault()
530 return chreWifiRequestScanAsync(&params, cookie); in chreWifiRequestScanAsyncDefault()

123456789