/device/google/contexthub/firmware/os/algos/common/math/ |
D | mat.c | 40 static void mat33SwapRows(struct Mat33 *A, uint32_t i, uint32_t j); 43 uint32_t l, uint32_t i, uint32_t j); 45 static void mat44SwapRows(struct Mat44 *A, uint32_t i, uint32_t j); 102 uint32_t j; in mat33Multiply() local 103 for (j = 0; j < 3; ++j) { in mat33Multiply() 107 sum += A->elem[i][k] * B->elem[k][j]; in mat33Multiply() 110 out->elem[i][j] = sum; in mat33Multiply() 120 uint32_t j; in mat33ScalarMul() local 121 for (j = 0; j < 3; ++j) { in mat33ScalarMul() 122 A->elem[i][j] *= c; in mat33ScalarMul() [all …]
|
/device/generic/goldfish/camera/ |
D | metadata_utils.cpp | 155 for (unsigned j = 0; j < e.count; ++j) { in prettyPrintCameraMetadata() local 158 ((j > 0) ? "," : ""), e.data.u8[j]); in prettyPrintCameraMetadata() 164 for (unsigned j = 0; j < e.count; ++j) { in prettyPrintCameraMetadata() local 167 ((j > 0) ? "," : ""), e.data.i32[j]); in prettyPrintCameraMetadata() 173 for (unsigned j = 0; j < e.count; ++j) { in prettyPrintCameraMetadata() local 176 ((j > 0) ? "," : ""), e.data.f[j]); in prettyPrintCameraMetadata() 182 for (unsigned j = 0; j < e.count; ++j) { in prettyPrintCameraMetadata() local 185 ((j > 0) ? "," : ""), e.data.i64[j]); in prettyPrintCameraMetadata() 191 for (unsigned j = 0; j < e.count; ++j) { in prettyPrintCameraMetadata() local 194 ((j > 0) ? "," : ""), e.data.d[j]); in prettyPrintCameraMetadata() [all …]
|
/device/generic/opengl-transport/host/commands/emugen/ |
D | ApiGen.cpp | 101 for (size_t j = 0; j < n; j++) { in genProcTypes() local 102 if (!evars[j].isVoid()) { in genProcTypes() 103 …if (j != 0 || side == CLIENT_SIDE || (side == SERVER_SIDE && e->customDecoder())) fprintf(fp, ", "… in genProcTypes() 104 evars[j].printType(fp); in genProcTypes() 117 for (size_t j = 0; j < n; j++) { in genProcTypes() local 118 if (!evars[j].isVoid()) { in genProcTypes() 119 if (j != 0) fprintf(fp, ", "); in genProcTypes() 120 evars[j].printType(fp); in genProcTypes() 273 for (size_t j=0; j<e->vars().size(); j++) { in genEntryPoints() local 274 if (e->vars()[j].paramCheckExpression() != "") in genEntryPoints() [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | kf_rem_pio2.c | 62 __int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; local 75 j = jv-jx; m = jx+jk; 76 for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (float) ipio2[j]; 80 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; 87 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { 90 z = q[j-1]+fw; 110 j = iq[i]; 112 if(j!=0) { 113 carry = 1; iq[i] = 0x100- j; 115 } else iq[i] = 0xff - j; [all …]
|
D | ef_pow.c | 68 __int32_t i,j,k,yisint,n; local 95 j = iy>>(23-k); 96 if((j<<(23-k))==iy) yisint = 2-(j&1); 157 j = ix&0x007fffff; 159 ix = j|0x3f800000; /* normalize ix */ 160 if(j<=0x1cc471) k=0; /* |x|<sqrt(3/2) */ 161 else if(j<0x5db3d7) k=1; /* |x|<sqrt(3) */ 213 GET_FLOAT_WORD(j,z); 214 i = j&0x7fffffff; 215 if (j>0) { [all …]
|
D | ef_rem_pio2.c | 107 __int32_t i,j,n,ix,hx; local 149 j = ix>>23; 152 i = j-((high>>23)&0xff); 160 i = j-((high>>23)&0xff);
|
/device/linaro/dragonboard/shared/utils/rmtfs/ |
D | util.c | 20 int j; in print_hex_dump() local 26 for (j = 0; j < linelen; j++) { in print_hex_dump() 27 ch = ptr[i + j]; in print_hex_dump() 33 for (; j < 16; j++) { in print_hex_dump() 39 for (j = 0; j < linelen; j++) { in print_hex_dump() 40 ch = ptr[i + j]; in print_hex_dump()
|
/device/google/contexthub/lib/nanohub/ |
D | rsa.c | 114 uint32_t j, c; in biMulIterative() local 123 for (j = 0; j < RSA_LIMBS; j++) { in biMulIterative() 124 r = (uint64_t)a[step] * b[j] + c + ret[step + j]; in biMulIterative() 125 ret[step + j] = r; in biMulIterative() 130 for (j = step + RSA_LIMBS; j < RSA_LIMBS * 2; j++) { in biMulIterative() 131 r = (uint64_t)ret[j] + c; in biMulIterative() 132 ret[j] = r; in biMulIterative()
|
D | aes.c | 185 uint32_t i, j, *ks = ctx->K + 4, *encrK = tmpSpace->tmpCtx.K + 52; in aesInitForDecr() local 193 for (j = 0; j < 4; j++) { in aesInitForDecr() 194 ks[j] = in aesInitForDecr() 195 ror(RevTab0[FwdSbox[(encrK[j] >> 24) & 0xff]], 0) ^ in aesInitForDecr() 196 ror(RevTab0[FwdSbox[(encrK[j] >> 16) & 0xff]], 8) ^ in aesInitForDecr() 197 ror(RevTab0[FwdSbox[(encrK[j] >> 8) & 0xff]], 16) ^ in aesInitForDecr() 198 ror(RevTab0[FwdSbox[(encrK[j] >> 0) & 0xff]], 24); in aesInitForDecr()
|
/device/google/contexthub/util/nanoapp_postprocess/ |
D | postprocess.c | 126 size_t i, j, k; in packNanoRelocs() local 136 for (k = i, j = k + 1; j < app->nanoRelocSize; j++) { in packNanoRelocs() 137 if (app->nanoReloc[j].type > app->nanoReloc[k].type) in packNanoRelocs() 139 …if ((app->nanoReloc[j].type < app->nanoReloc[k].type) || (app->nanoReloc[j].ofstInRam < app->nanoR… in packNanoRelocs() 140 k = j; in packNanoRelocs() 187 for (j = 1; (j + i) < app->nanoRelocSize && j < MAX_RUN_LEN && in packNanoRelocs() 188 app->nanoReloc[j + i].type == lastOutType && in packNanoRelocs() 189 … (app->nanoReloc[j + i].ofstInRam - app->nanoReloc[j + i - 1].ofstInRam) == 4; j++); in packNanoRelocs() 190 if (j >= MIN_RUN_LEN) { in packNanoRelocs() 192 DBG("Out: Reloc0 [size 2]; repeat=%zu", j); in packNanoRelocs() [all …]
|
D | postprocess_elf.c | 125 uint32_t i, j, k; in packNanoRelocs() local 134 for (k = i, j = k + 1; j < outNumRelocs; j++) { in packNanoRelocs() 135 if (nanoRelocs[j].type > nanoRelocs[k].type) in packNanoRelocs() 137 …if ((nanoRelocs[j].type < nanoRelocs[k].type) || (nanoRelocs[j].ofstInRam < nanoRelocs[k].ofstInRa… in packNanoRelocs() 138 k = j; in packNanoRelocs() 179 …j = 1; j + i < outNumRelocs && j < MAX_RUN_LEN && nanoRelocs[j + i].type == lastOutType && nanoRel… in packNanoRelocs() 180 if (j >= MIN_RUN_LEN) { in packNanoRelocs() 182 fprintf(stderr, "Out: Reloc0 x%" PRIX32 "\n", j); in packNanoRelocs() 184 packedNanoRelocs[packedNanoRelocSz++] = j - MIN_RUN_LEN; in packNanoRelocs() 185 origin = nanoRelocs[j + i - 1].ofstInRam + 4; //reset origin to last one in packNanoRelocs() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 2312 size_t i = 1, j; local 2330 for (j = FIRST_CONT_SENSOR; j < NUM_CONT_SENSOR; j++) 2331 observed[j] = false; 2341 for (j = FIRST_CONT_SENSOR; j < NUM_CONT_SENSOR; j++) { 2342 saved_pending_delta[j] = mTask.pending_delta[j]; 2343 saved_time_delta[j] = mTask.time_delta[j]; 2383 for (j = FIRST_CONT_SENSOR; j < NUM_CONT_SENSOR; j++) { 2384 if (mTask.sensors[j].configed && 2385 mTask.sensors[j].latency != SENSOR_LATENCY_NODATA) { 2386 min_delta = min_delta < mTask.time_delta[j] ? min_delta : [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | hostIntf.c | 666 uint32_t i, j, blocks, maxBlocks, numAxis, packetSamples; in initSensors() local 678 for (j = 0, present = 0, error = 0; (si = sensorFind(i, j, &handle)) != NULL; j++) { in initSensors() 760 for (i = SENS_TYPE_INVALID + 1, j = 0; i <= SENS_TYPE_LAST_USER && j < numSensors; i++) { in initSensors() 764 mSensorList[i - 1] = j; in initSensors() 765 resetBuffer(mActiveSensorTable + j); in initSensors() 766 mActiveSensorTable[j].buffer.sensType = i; in initSensors() 767 mActiveSensorTable[j].biasReportType = 0; in initSensors() 768 mActiveSensorTable[j].rate = 0; in initSensors() 769 mActiveSensorTable[j].latency = 0; in initSensors() 770 mActiveSensorTable[j].numAxis = si->numAxis; in initSensors() [all …]
|
/device/google/gs-common/storage/ |
D | dump_storage.cpp | 126 for (int j = 0; j < 6; j++) { in main() local 128 iostat_path.append(iostats[j].c_str()); in main() 153 for (int j = 0; j < 6; j++) { in main() local 155 reqstat_path.append(reqstats[j].c_str()); in main()
|
/device/google/contexthub/firmware/os/algos/ |
D | time_sync.c | 89 size_t j; in time_sync_estimate_time1() local 118 for (j = 0; j < n; ++j) { in time_sync_estimate_time1() 133 for (j = 0; j < n; ++j) { in time_sync_estimate_time1()
|
D | fusion.c | 307 uint32_t j; in fusionPredict() local 308 for (j = 0; j < 3; ++j) { in fusionPredict() 309 O.elem[i][j] = O33.elem[i][j]; in fusionPredict() 403 uint32_t j; in scaleCovariance() local 404 for (j = r; j < 3; ++j) { in scaleCovariance() 414 apat += 2.0f * v * A->elem[c][j]; in scaleCovariance() 417 out->elem[r][j] = apat; in scaleCovariance() 418 out->elem[j][r] = apat; in scaleCovariance()
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | cpp_bindings.cpp | 508 for (int j = 1; j < linelen; j++) { in log() local 509 appendFmt(line, offset, " %02x", data[i+j]); in log() 512 for (int j = linelen; j < 16; j++) { in log() local 520 for (int j = 0; j < linelen; j++) { in log() local 521 if (isprint(data[i+j])) { in log() 522 appendFmt(line, offset, "%c", data[i+j]); in log()
|
/device/google/contexthub/util/sensortest/ |
D | sensortest.cpp | 57 for (int j = 0; j < mNumSensors; j++) { in printSensorList() local 58 if ((ASensor_getType(mSensorList[j]) > prevMinType) && in printSensorList() 59 (ASensor_getType(mSensorList[j]) < currMinType)) { in printSensorList() 60 currMinType = ASensor_getType(mSensorList[j]); in printSensorList() 61 currMinIndex = j; in printSensorList()
|
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/ |
D | MultiDisplayService.java | 383 for (int j = 0; j < 6; j++) { in run() 384 Log.d(TAG, "received " + array[j]); in run() 409 for (int j = 0; j < 6; j++) { in run() 410 Log.d(TAG, "SET_DISPLAY received " + array[j]); in run()
|
/device/google/cuttlefish/host/libs/audio_connector/ |
D | commands.cpp | 72 for (int j = 0; j < channels; ++j) { in Reply() local 73 info_reply()[i].positions[j] = reply[i].positions[j]; in Reply()
|
/device/google/contexthub/firmware/os/algos/calibration/over_temp/ |
D | over_temp_cal.c | 1298 for (size_t j = 0; j < 3; j++) { in jumpStartModelData() local 1299 over_temp_cal->model_data[i].offset[j] = in jumpStartModelData() 1300 over_temp_cal->temp_sensitivity[j] * offset_temp_celsius + in jumpStartModelData() 1301 over_temp_cal->sensor_intercept[j]; in jumpStartModelData() 1764 for (size_t j = 0; j < 3; j++) { in overTempGetModelError() local 1766 NANO_ABS(over_temp_cal->model_data[i].offset[j] - in overTempGetModelError() 1767 (temp_sensitivity[j] * in overTempGetModelError() 1769 sensor_intercept[j])); in overTempGetModelError() 1770 if (max_error_test > max_error[j]) { in overTempGetModelError() 1771 max_error[j] = max_error_test; in overTempGetModelError()
|
/device/google/gs-common/powerstats/ |
D | CpupmStateResidencyDataProvider.cpp | 95 for (int32_t j = 0; j < stateResidencies.size(); j++) { in getStateResidencies() local 96 stateResidencies[j].id = j; in getStateResidencies()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 1021 for (int j = 0; j < iter->count; j++) { in restoreSensorState() local 1962 for (auto &j : i->second) { in sendDirectReportEvent() local 1963 if ((uint64_t)nev->timestamp > j.second.lastTimestamp in sendDirectReportEvent() 1965 nev->timestamp - j.second.lastTimestamp, in sendDirectReportEvent() 1967 nev->sensor, j.second.rateLevel))) { in sendDirectReportEvent() 1968 mDirectChannel[j.first]->write(nev); in sendDirectReportEvent() 1969 j.second.lastTimestamp = nev->timestamp; in sendDirectReportEvent() 1982 auto j = mSensorToChannel.find(handle); in mergeDirectReportRequest() local 1983 if (j != mSensorToChannel.end()) { in mergeDirectReportRequest() 1984 for (auto &i : j->second) { in mergeDirectReportRequest() [all …]
|
/device/generic/car/emulator/usbpt/bluetooth/usb_modeswitch/ |
D | usb_modeswitch.c | 910 int i=0, j; in findMBIMConfig() local 940 for (j=0; j<descriptor.bNumConfigurations; j++) { in findMBIMConfig() 943 libusb_get_config_descriptor(dev, j, &config); in findMBIMConfig() 1338 int ret, i, j; in switchCiscoMode() local 1368 for (j=1; j<4; j++) { in switchCiscoMode() 1370 SHOW_PROGRESS(output," Read the CSW for bulk message %d (attempt %d) ...\n",i+1,j); in switchCiscoMode() 1819 int i, j; in find_first_bulk_endpoint() local 1823 for (j=0; j < active_config->bNumInterfaces; j++) { in find_first_bulk_endpoint() 1824 alt = &(active_config->interface[j].altsetting[0]); in find_first_bulk_endpoint()
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 452 size_t j = 0; in drainSamples() local 459 j = mTask.sample_indices[GYR]; in drainSamples() 473 g_time = mTask.gyro_client_cnt > 0 ? mTask.samples[GYR][j].time in drainSamples() 512 initVec3(&w, mTask.samples[GYR][j].x, mTask.samples[GYR][j].y, mTask.samples[GYR][j].z); in drainSamples() 521 if (++j == MAX_NUM_SAMPLES) in drainSamples() 522 j = 0; in drainSamples() 539 mTask.sample_indices[GYR] = j; in drainSamples()
|