/hardware/invensense/mlsdk/mllite/ |
D | ml_stored_data.c | 395 int i, j; in inv_load_cal_V2() local 406 for (i = 0; i < BINS; i++) { in inv_load_cal_V2() 407 inv_obj.temp_ptrs[i] = 0; in inv_load_cal_V2() 408 inv_obj.temp_ptrs[i] += 16777216L * ((long)calData[ptr++]); in inv_load_cal_V2() 409 inv_obj.temp_ptrs[i] += 65536L * ((long)calData[ptr++]); in inv_load_cal_V2() 410 inv_obj.temp_ptrs[i] += 256 * ((int)calData[ptr++]); in inv_load_cal_V2() 411 inv_obj.temp_ptrs[i] += (int)calData[ptr++]; in inv_load_cal_V2() 412 LOADCAL_LOG("temp_ptrs[%d] = %d\n", i, inv_obj.temp_ptrs[i]); in inv_load_cal_V2() 414 for (i = 0; i < BINS; i++) { in inv_load_cal_V2() 415 inv_obj.temp_valid_data[i] = 0; in inv_load_cal_V2() [all …]
|
D | mlsupervisor.c | 115 int i, j; in MLUpdateCompassCalibration3DOF() local 151 for (i = 0; i < b; i++) { in MLUpdateCompassCalibration3DOF() 154 inv_matrix_det_inc(&m[0][0], &mTmp[0][0], &a, i, j); in MLUpdateCompassCalibration3DOF() 155 mInv[j][i] = SIGNM(i + j) * inv_matrix_det(&mTmp[0][0], &a); in MLUpdateCompassCalibration3DOF() 163 for (i = 0; i < 3; i++) { in MLUpdateCompassCalibration3DOF() 166 tmp += mInv[j][i] / d * xTransY[j]; in MLUpdateCompassCalibration3DOF() 168 inv_obj.compass_test_bias[i] = in MLUpdateCompassCalibration3DOF() 173 for (i = 0; i < 4; i++) { in MLUpdateCompassCalibration3DOF() 175 m[i][j] = 0; in MLUpdateCompassCalibration3DOF() 177 xTransY[i] = 0; in MLUpdateCompassCalibration3DOF() [all …]
|
D | mlcontrol.c | 209 unsigned char i; in inv_set_control_func() local 216 for (i = 0; i < 8; i++) { in inv_set_control_func() 217 regs[i] = DINA80 + 3; in inv_set_control_func() 658 int_fast8_t i = 0; in inv_get_control_data() local 663 for (i = 0; i < 4; i++) { in inv_get_control_data() 664 controlSignal[i] = cntrl_obj.controlInt[i]; in inv_get_control_data() 665 gridNum[i] = cntrl_obj.gridNum[i]; in inv_get_control_data() 666 gridChange[i] = cntrl_obj.gridChange[i]; in inv_get_control_data() 682 unsigned char i; in inv_update_control() local 688 for (i = 0; i < 4; i++) { in inv_update_control() [all …]
|
D | mlSetGyroBias.c | 55 int i; in inv_convert_bias() local 64 for (i = 0; i < 3; i++) { in inv_convert_bias() 65 biasTmp2[i] = inv_big8_to_int32(®s[i * 4]); in inv_convert_bias() 68 for (i = 0; i < 3; ++i) { in inv_convert_bias() 69 biasTmp[i] = inv_q30_mult(biasTmp2[0], inv_obj.gyro_orient[i]) + in inv_convert_bias() 70 inv_q30_mult(biasTmp2[1], inv_obj.gyro_orient[i + 3]) + in inv_convert_bias() 71 inv_q30_mult(biasTmp2[2], inv_obj.gyro_orient[i + 6]); in inv_convert_bias() 74 for (i = 0; i < GYRO_NUM_AXES; i++) { in inv_convert_bias() 75 biasTmp[i] = (long)(biasTmp[i] * 1.39882274201861f / sf); in inv_convert_bias() 76 biasPrev[i] = (long)mldl_cfg->offset[i]; in inv_convert_bias() [all …]
|
/hardware/qcom/media/mm-core/omxcore/src/common/ |
D | qc_omx_core.c | 136 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/media/mm-core/src/common/ |
D | qc_omx_core.c | 133 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/display/liboverlay/ |
D | overlayRotator.cpp | 66 for(uint32_t i=0; i < RotMem::MAX_ROT_MEM; ++i) { in close() local 68 if(m[i].valid()) { in close() 69 if(m[i].close() == false) { in close() 70 ALOGE("%s error in closing rot mem %d", __FUNCTION__, i); in close() 80 for(int i = 0; i < ROT_NUM_BUFS; i++) { in Mem() local 81 mRelFence[i] = -1; in Mem() 86 for(int i = 0; i < ROT_NUM_BUFS; i++) { in ~Mem() local 87 ::close(mRelFence[i]); in ~Mem() 88 mRelFence[i] = -1; in ~Mem() 113 for(int i = 0; i < MAX_ROT_SESS; i++) { in RotMgr() local [all …]
|
D | overlay.cpp | 42 for(int i = 0; i < PipeBook::NUM_PIPES; i++) { in Overlay() local 43 mPipeBook[i].init(); in Overlay() 50 for(int i = 0; i < PipeBook::NUM_PIPES; i++) { in ~Overlay() local 51 mPipeBook[i].destroy(); in ~Overlay() 56 for(int i = 0; i < PipeBook::NUM_PIPES; i++) { in configBegin() local 58 PipeBook::resetUse(i); in configBegin() 59 PipeBook::resetAllocation(i); in configBegin() 67 for(int i = 0; i < PipeBook::NUM_PIPES; i++) { in configDone() local 68 if(PipeBook::isNotUsed(i)) { in configDone() 71 if(mPipeBook[i].valid()) { in configDone() [all …]
|
/hardware/samsung_slsi/exynos5/include/ |
D | ExynosBuffer.h | 89 for (int i = 0; i < 3; i++) { in ExynosBuffer() local 90 virt. extP[i] = NULL; in ExynosBuffer() 91 phys. extP[i] = 0; in ExynosBuffer() 92 fd. extFd[i] = -1; in ExynosBuffer() 93 reserved.extP[i] = 0; in ExynosBuffer() 94 size. extS[i] = 0; in ExynosBuffer() 101 for (int i = 0; i < 3; i++) { in ExynosBuffer() local 102 virt. extP[i] = other->virt.extP[i]; in ExynosBuffer() 103 phys. extP[i] = other->phys.extP[i]; in ExynosBuffer() 104 fd. extFd[i] = other->fd.extFd[i]; in ExynosBuffer() [all …]
|
/hardware/ti/wpan/tools/FM/FmTxApp/src/com/ti/fmtxapp/ |
D | FmTx.java | 165 Log.i(TAG,"enableTx()"); in enableTx() 173 Log.i(TAG, "Fm Tx --> Cannot enable TX !!"); in enableTx() 186 Log.i(TAG, "Fm Tx --> Enabling TX !!"); in enableTx() 195 Log.i(TAG, "Fm Tx is already Enabled."); in enableTx() 205 Log.i(TAG, "onServiceConnected"); in onServiceConnected() 277 Log.i(TAG, "Fm Tx--> Cannot Disable TX !!"); in onOptionsItemSelected() 281 Log.i(TAG, "Fm Tx--> Disabling TX !!"); in onOptionsItemSelected() 319 Log.i(TAG, "onActivityResult"); in onActivityResult() 366 Log.i(TAG, "setAdvancedConfig"); in setAdvancedConfig() 401 Log.i(TAG, "txSetRdsTransmittedGroupsMask(RT)"); in setAdvancedConfig() [all …]
|
/hardware/libhardware/tests/nusensors/ |
D | nusensors.cpp | 81 for (int i=0 ; i<count ; i++) { in main() local 90 list[i].name, in main() 91 list[i].vendor, in main() 92 list[i].version, in main() 93 list[i].handle, in main() 94 list[i].type, in main() 95 list[i].maxRange, in main() 96 list[i].resolution, in main() 97 list[i].power); in main() 103 for (int i=0 ; i<count ; i++) { in main() local [all …]
|
/hardware/invensense/libsensors_iio/software/core/mllite/linux/ |
D | ml_sysfs_helper.c | 106 int i, j, result, find_flag; in parsing_proc_input() local 116 i = 0; in parsing_proc_input() 125 sprintf(&line[i], "%c", d); in parsing_proc_input() 126 i ++; in parsing_proc_input() 129 i = 1; in parsing_proc_input() 130 while(line[i] != '"'){ in parsing_proc_input() 131 i++; in parsing_proc_input() 133 i++; in parsing_proc_input() 138 if(!memcmp(&line[i], chip_name[j], strlen(chip_name[j]))){ in parsing_proc_input() 145 if(!memcmp(&line[i], name, strlen(name))){ in parsing_proc_input() [all …]
|
/hardware/libhardware/tests/camera2/ |
D | CameraModuleTests.cpp | 74 for (int i = 0; i < mNumberOfCameras; ++i) { in TEST_F() local 75 mDevice = new Camera2Device(i); in TEST_F() 77 ASSERT_EQ(OK, initializeDevice(i)) in TEST_F() 78 << "Failed to initialize device " << i; in TEST_F() 90 for (unsigned i = 0; i < sizeof(idx)/sizeof(idx[0]); ++i) { in TEST_F() local 91 mDevice = new Camera2Device(idx[i]); in TEST_F() 92 status_t deviceInitializeCode = initializeDevice(idx[i]); in TEST_F() 96 << idx[i]; in TEST_F() 105 for (int i = 0; i < mNumberOfCameras; ++i) { in TEST_F() local 107 ASSERT_EQ(OK, mModule->get_camera_info(i, &info)); in TEST_F() [all …]
|
D | CameraBurstTests.cpp | 148 for (int i = 1; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 149 exposures[i] = exposures[i-1] * CAMERA_EXPOSURE_DOUBLE; in TEST_F() 185 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 188 &exposures[i], 1)); in TEST_F() 189 ALOGV("Submitting capture request %d with exposure %lld", i, in TEST_F() 190 exposures[i]); in TEST_F() 191 dout << "Capture request " << i << " exposure is " in TEST_F() 192 << (exposures[i]/1e6f) << std::endl; in TEST_F() 200 for (int i = 0; i < CAMERA_FRAME_BURST_COUNT; ++i) { in TEST_F() local 201 ALOGV("Reading capture request %d with exposure %lld", i, exposures[i]); in TEST_F() [all …]
|
/hardware/samsung_slsi/exynos5/libswconverter/ |
D | swconvertor.c | 92 unsigned int i = 0; in csc_deinterleave_memcpy() local 93 for(i=0; i<src_size/2; i++) { in csc_deinterleave_memcpy() 94 dest1[i] = src[i*2]; in csc_deinterleave_memcpy() 95 dest2[i] = src[i*2+1]; in csc_deinterleave_memcpy() 120 unsigned int i = 0; in csc_interleave_memcpy() local 121 for(i=0; i<src_size; i++) { in csc_interleave_memcpy() 122 dest[i*2] = src1[i]; in csc_interleave_memcpy() 123 dest[i*2+1] = src2[i]; in csc_interleave_memcpy() 153 unsigned int i, j, k; in csc_tiled_to_linear_y() local 162 for (i = 0; i < aligned_height; i = i + 16) { in csc_tiled_to_linear_y() [all …]
|
/hardware/qcom/media/mm-video/vidc/vdec/src/ |
D | ts_parser.cpp | 120 for(int i=0; i < TIME_SZ; i++) { in add_new_list() local 121 ptemp->input_timestamps[i].in_use = false; in add_new_list() 122 ptemp->input_timestamps[i].timestamps = -1; in add_new_list() 156 for(int i = 0; i < TIME_SZ && !table_entry; i++) { in insert_timestamp() local 157 if (!pcurrent->input_timestamps[i].in_use) { in insert_timestamp() 158 table_entry = &pcurrent->input_timestamps[i].timestamps; in insert_timestamp() 159 pcurrent->input_timestamps[i].in_use = true; in insert_timestamp() 188 for(int i=0; i < TIME_SZ && num_ent_remove; i++) { in remove_time_stamp() local 189 if (phead->input_timestamps[i].in_use && phead->input_timestamps[i].timestamps == ts) { in remove_time_stamp() 190 phead->input_timestamps[i].in_use = false; in remove_time_stamp() [all …]
|
/hardware/ti/omap3/omx/system/src/openmax_il/omx_core/src/ |
D | OMX_Core.c | 198 int i = 0; in TIOMX_GetHandle() local 199 for(i=0; i< COUNTOF(pModules); i++) { in TIOMX_GetHandle() 200 if(pModules[i] == NULL) break; in TIOMX_GetHandle() 202 if(i == COUNTOF(pModules)) { in TIOMX_GetHandle() 241 pModules[i] = dlopen(buf, RTLD_LAZY | RTLD_GLOBAL); in TIOMX_GetHandle() 242 if( pModules[i] == NULL ) { in TIOMX_GetHandle() 250 pComponentInit = dlsym(pModules[i], "OMX_ComponentInit"); in TIOMX_GetHandle() 253 ALOGE("%d:: dlsym failed for module %p\n", __LINE__, pModules[i]); in TIOMX_GetHandle() 268 pComponents[i] = *pHandle; in TIOMX_GetHandle() 303 pComponents[i] = NULL; in TIOMX_GetHandle() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/ |
D | bcmendian.h | 51 #define HTON16(i) BCMSWAP16(i) argument 52 #define hton16(i) bcmswap16(i) argument 53 #define HTON32(i) BCMSWAP32(i) argument 54 #define hton32(i) bcmswap32(i) argument 55 #define NTOH16(i) BCMSWAP16(i) argument 56 #define ntoh16(i) bcmswap16(i) argument 57 #define NTOH32(i) BCMSWAP32(i) argument 58 #define ntoh32(i) bcmswap32(i) argument 59 #define LTOH16(i) (i) argument 60 #define ltoh16(i) (i) argument [all …]
|
/hardware/samsung_slsi/exynos5/exynos_omx/openmax/exynos_omx/component/common/ |
D | Exynos_OMX_Basecomponent.c | 176 unsigned int i = 0, j = 0; in Exynos_OMX_ComponentStateSet() local 218 for (i = 0; i < ALL_PORT_NUM; i++) { in Exynos_OMX_ComponentStateSet() 219 if (pExynosComponent->pExynosPort[i].portWayType == WAY1_PORT) { in Exynos_OMX_ComponentStateSet() 220 …Exynos_OSAL_MutexTerminate(pExynosComponent->pExynosPort[i].way.port1WayDataBuffer.dataBuffer.buff… in Exynos_OMX_ComponentStateSet() 221 … pExynosComponent->pExynosPort[i].way.port1WayDataBuffer.dataBuffer.bufferMutex = NULL; in Exynos_OMX_ComponentStateSet() 222 } else if (pExynosComponent->pExynosPort[i].portWayType == WAY2_PORT) { in Exynos_OMX_ComponentStateSet() 223 …Exynos_OSAL_MutexTerminate(pExynosComponent->pExynosPort[i].way.port2WayDataBuffer.inputDataBuffer… in Exynos_OMX_ComponentStateSet() 224 … pExynosComponent->pExynosPort[i].way.port2WayDataBuffer.inputDataBuffer.bufferMutex = NULL; in Exynos_OMX_ComponentStateSet() 225 …Exynos_OSAL_MutexTerminate(pExynosComponent->pExynosPort[i].way.port2WayDataBuffer.outputDataBuffe… in Exynos_OMX_ComponentStateSet() 226 … pExynosComponent->pExynosPort[i].way.port2WayDataBuffer.outputDataBuffer.bufferMutex = NULL; in Exynos_OMX_ComponentStateSet() [all …]
|
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_dec/tests/ |
D | WBAmrDecTest.c | 514 int retval, i, j,k; local 934 for (i=0; i < numInputBuffers; i++) { 937 error = OMX_AllocateBuffer(pHandle,&pInputBufferHeader[i],0,NULL,INPUT_WBAMRDEC_BUFFER_SIZE*3); 945 for (i=0; i < numOutputBuffers; i++) { 950 … error = OMX_AllocateBuffer(pHandle,&pOutputBufferHeader[i],1,NULL,OUTPUT_WBAMRDEC_BUFFER_SIZE*1); 952 … error = OMX_AllocateBuffer(pHandle,&pOutputBufferHeader[i],1,NULL,OUTPUT_WBAMRDEC_BUFFER_SIZE*2); 965 for (i=0; i < numInputBuffers; i++) { 966 pInputBuffer[i] = (OMX_U8*)newmalloc(INPUT_WBAMRDEC_BUFFER_SIZE*3 + 256); 967 APP_MEMPRINT("%d:::[TESTAPPALLOC] %p\n",__LINE__,pInputBuffer[i]); 968 pInputBuffer[i] = pInputBuffer[i] + 128; [all …]
|
/hardware/ti/omap3/omx/audio/src/openmax_il/nbamr_enc/tests/ |
D | AmrEncTest.c | 536 int retval, i, j, k, kk, tcID = 0; local 1027 for(i = 0; i < numInputBuffers; i++) { 1029 APP_DPRINT("%d :: About to call OMX_AllocateBuffer for pInputBufferHeader[%d]\n",__LINE__, i); 1030 …eError = OMX_AllocateBuffer(pHandle, &pInputBufferHeader[i], 0, NULL, NBAPP_INPUT_BUFFER_SIZE*3);/… 1032 … APP_DPRINT("%d :: Error returned by OMX_AllocateBuffer for pInputBufferHeader[%d]\n",__LINE__, i); 1037 for(i = 0; i < numOutputBuffers; i++) { 1039 APP_DPRINT("%d :: About to call OMX_AllocateBuffer for pOutputBufferHeader[%d]\n",__LINE__, i); 1040 …eError = OMX_AllocateBuffer(pHandle, &pOutputBufferHeader[i], 1, NULL, NBAPP_OUTPUT_BUFFER_SIZE*3); 1042 …APP_DPRINT("%d :: Error returned by OMX_AllocateBuffer for pOutputBufferHeader[%d]\n",__LINE__, i); 1047 for(i = 0; i < numInputBuffers; i++) { [all …]
|
/hardware/ti/omap3/omx/audio/src/openmax_il/wbamr_enc/tests/ |
D | WbAmrEncTest.c | 514 int retval, i, j, k, kk, tcID = 0; local 1111 for (i = 0; i < numOfInputBuffer; i++) { 1112 … APP_DPRINT("%d :: About to call OMX_AllocateBuffer for pInputBufferHeader[%d]\n", __LINE__, i); 1113 …eError = OMX_AllocateBuffer(pHandle, &pInputBufferHeader[i], 0, NULL, WBAPP_INPUT_BUFFER_SIZE * 2); 1116 …APP_DPRINT("%d :: Error returned by OMX_AllocateBuffer for pInputBufferHeader[%d]\n", __LINE__, i); 1124 for (i = 0; i < numOfOutputBuffer; i++) { 1126 … APP_DPRINT("%d :: About to call OMX_AllocateBuffer for pOutputBufferHeader[%d]\n", __LINE__, i); 1127 …eError = OMX_AllocateBuffer(pHandle, &pOutputBufferHeader[i], 1, NULL, pCompPrivateStruct->nBuffer… 1130 …PP_DPRINT("%d :: Error returned by OMX_AllocateBuffer for pOutputBufferHeader[%d]\n", __LINE__, i); 1138 for (i = 0; i < numOfInputBuffer; i++) { [all …]
|
/hardware/ti/omap3/omx/system/src/openmax_il/perf/src/ |
D | perf_rt.c | 406 int i; in __rt_Boundary() local 407 for (i = 0; i < me->nDRate; i++) in __rt_Boundary() 409 me->dRate[i].txx = me->dRate[i].tx = me->dRate[i].tn = me->dRate[i].tn0 = 0; in __rt_Boundary() 410 me->dRate[i].skip = 0; in __rt_Boundary() 424 int i; in __rt_Boundary() local 425 for (i = 0; i < me->nDRate; i++) in __rt_Boundary() 428 if (me->dRate[i].tn0 >= MIN_FRAMES_FOR_RATE || in __rt_Boundary() 429 (me->dRate[i].tn && me->debug & 4)) in __rt_Boundary() 431 count_temporal_rate(perf->ulID, me, me->dRate + i); in __rt_Boundary() 499 int i, j = -1; /* j is one of the lest used indexes */ in __rt_Buffer() local [all …]
|
/hardware/qcom/display/libqdutils/ |
D | profiler.cpp | 101 for (unsigned int i = 0; i < MAX_FRAMEARRIVAL_STEPS; i++) in populate_debug_fps_metadata() local 102 debug_fps_metadata.accum_framearrivals[i] = 0; in populate_debug_fps_metadata() 122 for (unsigned int i = 0; in print_fps() local 123 i < ((debug_fps_metadata.framearrival_steps / 6) + 1); in print_fps() 124 i++) { in print_fps() 126 debug_fps_metadata.accum_framearrivals[i*6], in print_fps() 127 debug_fps_metadata.accum_framearrivals[i*6+1], in print_fps() 128 debug_fps_metadata.accum_framearrivals[i*6+2], in print_fps() 129 debug_fps_metadata.accum_framearrivals[i*6+3], in print_fps() 130 debug_fps_metadata.accum_framearrivals[i*6+4], in print_fps() [all …]
|
/hardware/invensense/libsensors_iio/software/simple_apps/gesture_test/ |
D | inv_gesture_test.c | 140 unsigned char i = 0; in inv_init_sysfs_attributes() local 153 } while (++i < MAX_SYSFS_ATTRB); in inv_init_sysfs_attributes() 189 for (i = 0; i < MAX_SYSFS_ATTRB; i++) { in inv_init_sysfs_attributes() 418 int i; in initFds() local 420 for (i=0; i< numDMPFeatures; i++) { in initFds() 421 switch(i) { in initFds() 423 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK); in initFds() 427 pfd[i].fd = open(mpu.event_flick, O_RDONLY | O_NONBLOCK); in initFds() 431 pfd[i].fd = open(mpu.event_display_orientation, O_RDONLY | O_NONBLOCK); in initFds() 435 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK); in initFds() [all …]
|