Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 1474) sorted by relevance

12345678910>>...59

/hardware/interfaces/wifi/1.2/
DREADME-NAN.md17 The Wi-Fi Aware (NAN) HAL API is defined in (<i>hardware/interfaces/wifi/1.0/</i> and
18 <i>hardware/interfaces/wifi/1.2/</i>):
24 Note that the <i>1.2</i> HAL is supplemental to the <i>1.0</i> HAL - not a replacement.
29 by reviewing framework code, specifically (<i>frameworks/opt/net/wifi/</i>):
39 Note: the HAL API is translated to the legacy HAL API (<i>wifi_nan.h</i>). This README file covers
41 <i>hardware/interfaces/wifi/\<version\>/default/hidl_struct_util.cpp</i>.
47 * Assigned but not fixed values are specified using the <i>variable</i> keyword, possibly with some
49 * Unassigned values are specified using the <i>N/A</i> keyword. Unassigned usually means initialized
60 * Index [NanBandIndex.NAN_BAND_5GHZ] = <i>variable</i>
63 * uint8_t masterPref = <i>variable</i>
[all …]
/hardware/interfaces/wifi/1.0/
DREADME-NAN.md17 The Wi-Fi Aware (NAN) HAL API is defined in (<i>hardware/interfaces/wifi/1.0/</i>):
26 by reviewing framework code, specifically (<i>frameworks/opt/net/wifi/</i>):
36 Note: the HAL API is translated to the legacy HAL API (<i>wifi_nan.h</i>). This README file covers
38 <i>hardware/interfaces/wifi/\<version\>/default/hidl_struct_util.cpp</i>.
44 * Assigned but not fixed values are specified using the <i>variable</i> keyword, possibly with some
46 * Unassigned values are specified using the <i>N/A</i> keyword. Unassigned usually means initialized
57 * Index [NanBandIndex.NAN_BAND_5GHZ] = <i>variable</i>
60 * uint8_t masterPref = <i>variable</i>
61 * bool disableDiscoveryAddressChangeIndication = <i>variable</i>
62 * bool disableStartedClusterIndication = <i>variable</i>
[all …]
/hardware/google/av/codec2/vndk/util/
DC2Debug.cpp30 const char *asString(c2_status_t i, const char *def) { in asString() argument
31 switch (i) { in asString()
51 const char *asString(C2FieldDescriptor::type_t i, const char *def) { in asString() argument
52 switch (i) { in asString()
62 default: return (i & C2FieldDescriptor::STRUCT_FLAG) ? "struct" : def; in asString()
68 static std::string attribParamCoreIndex(const C2Param::CoreIndex &i) { in attribParamCoreIndex() argument
70 i.isFlexible() ? 'F' : '-', in attribParamCoreIndex()
71 i.isVendor() ? 'V' : '-', in attribParamCoreIndex()
72 i.coreIndex()); in attribParamCoreIndex()
76 const C2Param::Type &i, bool addStream, unsigned streamId) { in attribParamIndex() argument
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_unit_test.c46 int i; in mm_app_tc_open_close() local
50 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_open_close()
52 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_open_close()
55 i, rc); in mm_app_tc_open_close()
62 i, rc); in mm_app_tc_open_close()
78 int i, j; in mm_app_tc_start_stop_preview() local
82 for (i = 0; i < cam_app->num_cameras; i++) { in mm_app_tc_start_stop_preview()
84 rc = mm_app_open(cam_app, i, &test_obj); in mm_app_tc_start_stop_preview()
87 i, rc); in mm_app_tc_start_stop_preview()
95 i, rc); in mm_app_tc_start_stop_preview()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Config.cpp182 int i, ret = IPACM_SUCCESS; in Init() local
225 for (i = 0; i < cfg->iface_config.num_iface_entries; i++) in Init()
227 …strlcpy(iface_table[i].iface_name, cfg->iface_config.iface_entries[i].iface_name, sizeof(iface_tab… in Init()
228 iface_table[i].if_cat = cfg->iface_config.iface_entries[i].if_cat; in Init()
229 iface_table[i].if_mode = cfg->iface_config.iface_entries[i].if_mode; in Init()
230 iface_table[i].wlan_mode = cfg->iface_config.iface_entries[i].wlan_mode; in Init()
231 …IPACM_Config::iface_table[%d] = %s, cat=%d, mode=%d wlan-mode=%d \n", i, iface_table[i].iface_name, in Init()
232 iface_table[i].if_cat, iface_table[i].if_mode, iface_table[i].wlan_mode); in Init()
234 if( iface_table[i].if_cat == VIRTUAL_IF) in Init()
236 strlcpy(ipa_virtual_iface_name, iface_table[i].iface_name, sizeof(ipa_virtual_iface_name)); in Init()
[all …]
DIPACM_Neighbor.cpp62 int i, ipa_interface_index; in event_callback() local
82 for(i = 0; i < data->num_of_attribs; i++) in event_callback()
84 if(data->attribs[i].attrib_type == WLAN_HDR_ATTRIB_MAC_ADDR) in event_callback()
87 data->attribs[i].u.mac_addr, in event_callback()
99 for (i = 0; i < num_neighbor_client_temp; i++) in event_callback()
102 …if (memcmp(neighbor_client[i].mac_addr, client_mac_addr, sizeof(neighbor_client[i].mac_addr)) == 0) in event_callback()
108 if(data->if_index != neighbor_client[i].iface_index) in event_callback()
111 neighbor_client[i].iface_index = data->if_index; in event_callback()
115 if(ipa_interface_index != neighbor_client[i].ipa_if_num) in event_callback()
121 if (neighbor_client[i].v4_addr != 0) /* not 0.0.0.0 */ in event_callback()
[all …]
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_Config.cpp179 int i, ret = IPACM_SUCCESS; in Init() local
222 for (i = 0; i < cfg->iface_config.num_iface_entries; i++) in Init()
224 …strlcpy(iface_table[i].iface_name, cfg->iface_config.iface_entries[i].iface_name, sizeof(iface_tab… in Init()
225 iface_table[i].if_cat = cfg->iface_config.iface_entries[i].if_cat; in Init()
226 iface_table[i].if_mode = cfg->iface_config.iface_entries[i].if_mode; in Init()
227 iface_table[i].wlan_mode = cfg->iface_config.iface_entries[i].wlan_mode; in Init()
228 …IPACM_Config::iface_table[%d] = %s, cat=%d, mode=%d wlan-mode=%d \n", i, iface_table[i].iface_name, in Init()
229 iface_table[i].if_cat, iface_table[i].if_mode, iface_table[i].wlan_mode); in Init()
231 if( iface_table[i].if_cat == VIRTUAL_IF) in Init()
233 strlcpy(ipa_virtual_iface_name, iface_table[i].iface_name, sizeof(ipa_virtual_iface_name)); in Init()
[all …]
DIPACM_Neighbor.cpp62 int i, ipa_interface_index; in event_callback() local
82 for(i = 0; i < data->num_of_attribs; i++) in event_callback()
84 if(data->attribs[i].attrib_type == WLAN_HDR_ATTRIB_MAC_ADDR) in event_callback()
87 data->attribs[i].u.mac_addr, in event_callback()
99 for (i = 0; i < num_neighbor_client_temp; i++) in event_callback()
102 …if (memcmp(neighbor_client[i].mac_addr, client_mac_addr, sizeof(neighbor_client[i].mac_addr)) == 0) in event_callback()
108 if(data->if_index != neighbor_client[i].iface_index) in event_callback()
111 neighbor_client[i].iface_index = data->if_index; in event_callback()
115 if(ipa_interface_index != neighbor_client[i].ipa_if_num) in event_callback()
121 if (neighbor_client[i].v4_addr != 0) /* not 0.0.0.0 */ in event_callback()
[all …]
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Config.cpp170 int i, ret = IPACM_SUCCESS; in Init() local
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()
219 …IPACM_Config::iface_table[%d] = %s, cat=%d, mode=%d wlan-mode=%d \n", i, iface_table[i].iface_name, in Init()
220 iface_table[i].if_cat, iface_table[i].if_mode, iface_table[i].wlan_mode); in Init()
222 if( iface_table[i].if_cat == VIRTUAL_IF) in Init()
224 strlcpy(ipa_virtual_iface_name, iface_table[i].iface_name, sizeof(ipa_virtual_iface_name)); in Init()
[all …]
DIPACM_Neighbor.cpp62 int i, ipa_interface_index; in event_callback() local
82 for(i = 0; i < data->num_of_attribs; i++) in event_callback()
84 if(data->attribs[i].attrib_type == WLAN_HDR_ATTRIB_MAC_ADDR) in event_callback()
87 data->attribs[i].u.mac_addr, in event_callback()
99 for (i = 0; i < num_neighbor_client_temp; i++) in event_callback()
102 …if (memcmp(neighbor_client[i].mac_addr, client_mac_addr, sizeof(neighbor_client[i].mac_addr)) == 0) in event_callback()
108 if(data->if_index != neighbor_client[i].iface_index) in event_callback()
111 neighbor_client[i].iface_index = data->if_index; in event_callback()
115 if(ipa_interface_index != neighbor_client[i].ipa_if_num) in event_callback()
121 if (neighbor_client[i].v4_addr != 0) /* not 0.0.0.0 */ in event_callback()
[all …]
/hardware/qcom/media/msm8974/mm-core/omxcore/src/common/
Dqc_omx_core.c136 int rc = -1,i=0; in get_cmp_index() local
139 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
141 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
143 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
145 rc = i; in get_cmp_index()
168 unsigned i = 0,j=0; in clear_cmp_handle() local
173 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
177 if(inst == core[i].inst[j]) in clear_cmp_handle()
179 core[i].inst[j] = NULL; in clear_cmp_handle()
202 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/qcom/display/msm8960/liboverlay/
DoverlayRotator.cpp67 for(uint32_t i=0; i < RotMem::MAX_ROT_MEM; ++i) { in close() local
69 if(m[i].valid()) { in close()
70 if(m[i].close() == false) { in close()
71 ALOGE("%s error in closing rot mem %d", __FUNCTION__, i); in close()
81 for(int i = 0; i < ROT_NUM_BUFS; i++) { in Mem() local
82 mRelFence[i] = -1; in Mem()
87 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~Mem() local
88 ::close(mRelFence[i]); in ~Mem()
89 mRelFence[i] = -1; in ~Mem()
114 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local
[all …]
/hardware/qcom/media/msm8974/mm-core/src/common/
Dqc_omx_core.c133 int rc = -1,i=0; in get_cmp_index() local
136 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
138 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
140 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
142 rc = i; in get_cmp_index()
165 unsigned i = 0,j=0; in clear_cmp_handle() local
170 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
174 if(inst == core[i].inst[j]) in clear_cmp_handle()
176 core[i].inst[j] = NULL; in clear_cmp_handle()
199 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/qcom/media/msm8996/mm-core/src/common/
Dqc_omx_core.c137 int rc = -1,i=0; in get_cmp_index() local
140 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
142 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
144 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
146 rc = i; in get_cmp_index()
169 unsigned i = 0,j=0; in clear_cmp_handle() local
174 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
178 if(inst == core[i].inst[j]) in clear_cmp_handle()
180 core[i].inst[j] = NULL; in clear_cmp_handle()
203 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/qcom/media/msm8998/mm-core/src/common/
Dqc_omx_core.c137 int rc = -1,i=0; in get_cmp_index() local
140 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
142 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
144 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
146 rc = i; in get_cmp_index()
169 unsigned i = 0,j=0; in clear_cmp_handle() local
174 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
178 if(inst == core[i].inst[j]) in clear_cmp_handle()
180 core[i].inst[j] = NULL; in clear_cmp_handle()
203 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dget_pwr_stats.c55 int i = 0; in main() local
97 for (i = 0; i < NUM_MPLL_CLK_FREQ; i++){ in main()
98 …"mpll_cumulative_cnts (%d) counter value: %"PRIu64"\n", i, pwr_stats_count.mpll_cumulative_cnts[i]… in main()
99 …"mpll_cumulative_cnts (%d) counter value: %"PRIu64"\n", i, pwr_stats_count.mpll_cumulative_cnts[i]… in main()
102 for (i = 0; i < NUM_APLL_CLK_FREQ; i++){ in main()
103 …"apll_cumulative_cnts (%d) counter value: %"PRIu64"\n", i, pwr_stats_count.apll_cumulative_cnts[i]… in main()
104 …"apll_cumulative_cnts (%d) counter value: %"PRIu64"\n", i, pwr_stats_count.apll_cumulative_cnts[i]… in main()
107 for (i = 0; i < NUM_MPLL_CLK_FREQ; i++){ in main()
108 …("mpllCumulativeDur (%d) Duration value: %" PRIu64 "\n", i, pwr_stats_count.mpllCumulativeDur[i]); in main()
109 …, "mpllCumulativeDur (%d) Duration value %" PRIu64 "\n", i, pwr_stats_count.mpllCumulativeDur[i]); in main()
[all …]
/hardware/libhardware/tests/nusensors/
Dnusensors.cpp83 for (int i=0 ; i<count ; i++) { in main() local
92 list[i].name, in main()
93 list[i].vendor, in main()
94 list[i].version, in main()
95 list[i].handle, in main()
96 list[i].type, in main()
97 list[i].maxRange, in main()
98 list[i].resolution, in main()
99 list[i].power); in main()
105 for (int i=0 ; i<count ; i++) { in main() local
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.cpp219 size_t i, count; in reset() local
224 for (i = 0; i < count; i++) { in reset()
225 mMemInfo[i].fd = -1; in reset()
226 mMemInfo[i].main_ion_fd = -1; in reset()
293 for (int i = 1; i < bufDef.planes_buf.num_planes; i++) { in getBufDef() local
294 bufDef.planes_buf.planes[i].length = offset.mp[i].len; in getBufDef()
295 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef()
296 bufDef.planes_buf.planes[i].data_offset = offset.mp[i].offset; in getBufDef()
297 bufDef.planes_buf.planes[i].reserved[0] = in getBufDef()
298 bufDef.planes_buf.planes[i-1].reserved[0] + in getBufDef()
[all …]
/hardware/libhardware/tests/input/evdev/
DBitUtils_test.cpp38 for (int i = 0; i < 8; ++i) { in TEST() local
39 arr[0] = 1 << i; in TEST()
46 for (int i = 0; i < 5; ++i) { in TEST() local
47 EXPECT_FALSE(testBitInRange(arr, 0, i)); in TEST()
49 for (int i = 5; i <= 8; ++i) { in TEST() local
50 EXPECT_TRUE(testBitInRange(arr, 0, i)); in TEST()
56 for (int i = 0; i < 5; ++i) { in TEST() local
57 EXPECT_TRUE(testBitInRange(arr, i, 8)); in TEST()
59 for (int i = 5; i <= 8; ++i) { in TEST() local
60 EXPECT_FALSE(testBitInRange(arr, i, 8)); in TEST()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/test/
Dmm_jpeg_test.c172 int i = 0; in mm_jpeg_encode_callback() local
173 for (i = 0; p_obj->job_id[i] && (jobId != p_obj->job_id[i]); i++) in mm_jpeg_encode_callback()
175 if (!p_obj->job_id[i]) { in mm_jpeg_encode_callback()
180 p_output->buf_vaddr, p_output->buf_filled_len, i); in mm_jpeg_encode_callback()
182 p_obj->buf_filled_len[i] = p_output->buf_filled_len; in mm_jpeg_encode_callback()
185 p_obj->out_filename[i], in mm_jpeg_encode_callback()
187 DUMP_TO_FILE(p_obj->out_filename[i], p_output->buf_vaddr, in mm_jpeg_encode_callback()
277 int i; in mm_jpeg_test_read_qtable() local
289 for (i = 0; i < QUANT_SIZE; i++) in mm_jpeg_test_read_qtable()
290 fscanf(fp, "%hhu,", &DEFAULT_QTABLE_1[i]); in mm_jpeg_test_read_qtable()
[all …]
/hardware/qcom/display/msm8226/liboverlay/
DoverlayRotator.cpp78 for(int i = 0; i < ROT_NUM_BUFS; i++) { in RotMem() local
79 mRelFence[i] = -1; in RotMem()
84 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~RotMem() local
85 ::close(mRelFence[i]); in ~RotMem()
86 mRelFence[i] = -1; in ~RotMem()
119 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local
120 mRot[i] = 0; in RotMgr()
137 for(int i = mUseCount; i < MAX_ROT_SESS; i++) { in configDone() local
138 if(mRot[i]) { in configDone()
139 delete mRot[i]; in configDone()
[all …]
/hardware/qcom/display/msm8084/liboverlay/
DoverlayRotator.cpp77 for(int i = 0; i < ROT_NUM_BUFS; i++) { in RotMem() local
78 mRelFence[i] = -1; in RotMem()
83 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~RotMem() local
84 ::close(mRelFence[i]); in ~RotMem()
85 mRelFence[i] = -1; in ~RotMem()
118 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local
119 mRot[i] = 0; in RotMgr()
136 for(int i = mUseCount; i < MAX_ROT_SESS; i++) { in configDone() local
137 if(mRot[i]) { in configDone()
138 delete mRot[i]; in configDone()
[all …]
/hardware/qcom/sm8150/media/mm-core/src/common/
Dqc_omx_core.c143 int rc = -1,i=0; in get_cmp_index() local
146 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
148 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
150 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
152 rc = i; in get_cmp_index()
175 unsigned i = 0,j=0; in clear_cmp_handle() local
180 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
184 if(inst == core[i].inst[j]) in clear_cmp_handle()
186 core[i].inst[j] = NULL; in clear_cmp_handle()
209 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/qcom/sdm845/media/mm-core/src/common/
Dqc_omx_core.c137 int rc = -1,i=0; in get_cmp_index() local
140 for(i=0; i< (int)SIZE_OF_CORE; i++) in get_cmp_index()
142 …G_PRINT("get_cmp_index: cmp_name = %s , core[i].name = %s ,count = %d \n",cmp_name,core[i].name,i); in get_cmp_index()
144 if(!strcmp(cmp_name, core[i].name)) in get_cmp_index()
146 rc = i; in get_cmp_index()
169 unsigned i = 0,j=0; in clear_cmp_handle() local
174 for(i=0; i< SIZE_OF_CORE; i++) in clear_cmp_handle()
178 if(inst == core[i].inst[j]) in clear_cmp_handle()
180 core[i].inst[j] = NULL; in clear_cmp_handle()
203 unsigned i=0,j=0; in is_cmp_handle_exists() local
[all …]
/hardware/qcom/gps/msm8909w_3100/core/
DLocApiBase.cpp47 int i; in hexcode() local
48 for (i = 0; i < data_size; i++) in hexcode()
50 char ch = data[i]; in hexcode()
51 if (i*2 + 3 <= string_size) in hexcode()
53 snprintf(&hexstring[i*2], 3, "%02X", ch); in hexcode()
59 return i; in hexcode()
66 int i, idxOutput = 0; in decodeAddress() local
77 for (i = 1; i < data_size; i++) in decodeAddress()
79 unsigned char ch = data[i], low = ch & 0x0F, hi = ch >> 4; in decodeAddress()
143 TO_ALL_LOCADAPTERS(mask |= mLocAdapters[i]->getEvtMask()); in getEvtMask()
[all …]

12345678910>>...59