/device/google/contexthub/firmware/inc/algos/ |
D | vec.h | 31 float x, y, z, w; member 41 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() argument 42 v->x += w->x; in vec3Add() 43 v->y += w->y; in vec3Add() 44 v->z += w->z; in vec3Add() 47 static inline void vec3Sub(struct Vec3 *v, const struct Vec3 *w) { in vec3Sub() argument 48 v->x -= w->x; in vec3Sub() 49 v->y -= w->y; in vec3Sub() 50 v->z -= w->z; in vec3Sub() 59 static inline float vec3Dot(const struct Vec3 *v, const struct Vec3 *w) { in vec3Dot() argument [all …]
|
/device/google/contexthub/lib/libm/ |
D | sf_atan.c | 74 float w,s1,s2,z; local 106 w = z*z; 108 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); 109 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9]))));
|
D | ef_rem_pio2.c | 105 float z,w,t,r,fn; local 144 w = fn*pio2_1t; /* 1st round good to 40 bit */ 146 y[0] = r-w; /* quick check no cancellation */ 150 y[0] = r-w; 155 w = fn*pio2_2; 156 r = t-w; 157 w = fn*pio2_2t-((t-r)-w); 158 y[0] = r-w; 163 w = fn*pio2_3; 164 r = t-w; [all …]
|
/device/google/contexthub/lib/nanohub/ |
D | sha2.c | 72 state->w[i] = __builtin_bswap32(state->w[i]); in sha2processBlock() 76 uint32_t s0 = ror(state->w[i-15], 7) ^ ror(state->w[i-15], 18) ^ (state->w[i-15] >> 3); in sha2processBlock() 77 uint32_t s1 = ror(state->w[i-2], 17) ^ ror(state->w[i-2], 19) ^ (state->w[i-2] >> 10); in sha2processBlock() 78 state->w[i] = state->w[i - 16] + s0 + state->w[i - 7] + s1; in sha2processBlock() 95 uint32_t temp1 = h + s1 + ch + k[i] + state->w[i]; in sha2processBlock()
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | s_atanf.c | 51 float w,s1,s2,z; in atanf() local 83 w = z*z; in atanf() 85 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf() 86 s2 = w*(aT[1]+w*aT[3]); in atanf()
|
/device/google/contexthub/firmware/src/algos/ |
D | quat.c | 32 q->w = sqrtf(clamp(Hx + My + Az + 1.0f) * 0.25f); in initQuat() 39 float q0 = q->w; in quatToMatrix() 65 if (q->w < 0.0f) { in quatNormalize() 69 q->w = -q->w; in quatNormalize() 73 1.0f / sqrtf(q->x * q->x + q->y * q->y + q->z * q->z + q->w * q->w); in quatNormalize() 78 q->w *= invNorm; in quatNormalize()
|
D | fusion.c | 254 static void fusionPredict(struct Fusion *fusion, const struct Vec3 *w) { in fusionPredict() argument 260 struct Vec3 we = *w; in fusionPredict() 339 if (fusion->x0.w < 0.0f) { in fusionPredict() 343 fusion->x0.w = -fusion->x0.w; in fusionPredict() 382 void fusionHandleGyro(struct Fusion *fusion, const struct Vec3 *w, float dT) { in fusionHandleGyro() argument 383 if (!fusion_init_complete(fusion, GYRO, w, dT)) { in fusionHandleGyro() 389 fusionPredict(fusion, w); in fusionHandleGyro() 417 F[0].x = q->w; F[1].x = -q->z; F[2].x = q->y; in getF() 418 F[0].y = q->z; F[1].y = q->w; F[2].y = -q->x; in getF() 419 F[0].z = -q->y; F[1].z = q->x; F[2].z = q->w; in getF() [all …]
|
D | mag_cal.c | 99 float r = sqrtf(vec3Dot(&v, &v) - out.w); in moc_fit() 170 float w = x * x + y * y + z * z; in magCalUpdate() local 175 moc->acc_w += w; in magCalUpdate() 180 moc->acc_xw += x * w; in magCalUpdate() 184 moc->acc_yw += y * w; in magCalUpdate() 187 moc->acc_zw += z * w; in magCalUpdate()
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-test/src/ |
D | mm_qcamera_display.c | 113 overlayp->src_rect.w = e->src_rect.w; in overlay_set_params() 120 overlayp->dst_rect.w = e->dst_rect.h; in overlay_set_params() 121 overlayp->dst_rect.h = e->dst_rect.w; in overlay_set_params() 123 if (overlayp->dst_rect.w > 480) in overlay_set_params() 124 overlayp->dst_rect.w = 480; in overlay_set_params() 137 overlayp->src_rect.x, overlayp->src_rect.y, overlayp->src_rect.w, overlayp->src_rect.h, in overlay_set_params() 138 overlayp->dst_rect.x, overlayp->dst_rect.y, overlayp->dst_rect.w, overlayp->dst_rect.h in overlay_set_params() 208 e->src_rect.w = crop->in2_w; in test_app_camframe_callback() 213 CDBG("e->src_rect.w = %d\n", e->src_rect.w); in test_app_camframe_callback() 218 e->dst_rect.w = input_display.user_input_display_width; in test_app_camframe_callback() [all …]
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
D | JoystickView.java | 51 int w = mJoystickBackground.getIntrinsicWidth(); in initJoystickView() local 53 mJoystickBackground.setBounds(0, 0, w, h); in initJoystickView() 56 Utilities.centerAround(w / 2 - 4, h / 2 + 4, mJoystickNormal); in initJoystickView() 57 Utilities.centerAround(w / 2 - 4, h / 2 + 4, mJoystickPressed); in initJoystickView() 70 int w = mJoystickBackground.getIntrinsicWidth(); in onDraw() local 72 int x = w / 2 - 4 + fX; in onDraw()
|
D | Utilities.java | 7 int w = d.getIntrinsicWidth(); in centerAround() local 9 int left = x - w / 2; in centerAround() 11 int right = left + w; in centerAround()
|
/device/generic/goldfish/opengl/system/gralloc/ |
D | gralloc.cpp | 126 int w, int h, int format, int usage, in gralloc_alloc() argument 129 D("gralloc_alloc w=%d h=%d usage=0x%x\n", w, h, usage); in gralloc_alloc() 172 w, h, usage); in gralloc_alloc() 183 w, h, usage); in gralloc_alloc() 189 int stride = w; in gralloc_alloc() 262 size_t yStride = (w*bpp + (align - 1)) & ~(align-1); in gralloc_alloc() 268 size_t bpr = (w*bpp + (align-1)) & ~(align-1); in gralloc_alloc() 294 w, h, frameworkFormat, format, in gralloc_alloc() 324 cb->hostHandle = rcEnc->rcCreateColorBuffer(rcEnc, w, h, glFormat); in gralloc_alloc() 466 int l, int t, int w, int h) in fb_setUpdateRect() argument [all …]
|
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 357 static int alloc_device_alloc(alloc_device_t *dev, int w, int h, int format, int usage, buffer_hand… in alloc_device_alloc() argument 380 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 388 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 395 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 400 stride = GRALLOC_ALIGN(w, 16); in alloc_device_alloc() 438 size_t bpr = GRALLOC_ALIGN(w * bpp, 64); in alloc_device_alloc() 496 hnd->width = w; in alloc_device_alloc()
|
/device/google/contexthub/firmware/src/drivers/orientation/ |
D | orientation.c | 174 size_t i, w, n, num_samples; in fillSamples() local 192 w = (mTask.sample_indices[index] + n) % MAX_NUM_SAMPLES; in fillSamples() 232 mTask.samples[index][w].x = curr_sample->x + weight_next * in fillSamples() 234 mTask.samples[index][w].y = curr_sample->y + weight_next * in fillSamples() 236 mTask.samples[index][w].z = curr_sample->z + weight_next * in fillSamples() 238 mTask.samples[index][w].time = curr_time + counter; in fillSamples() 250 if (++w == MAX_NUM_SAMPLES) { in fillSamples() 251 w = 0; in fillSamples() 399 struct Vec3 a, w, m; in drainSamples() local 445 initVec3(&w, mTask.samples[GYR][j].x, mTask.samples[GYR][j].y, mTask.samples[GYR][j].z); in drainSamples() [all …]
|
/device/google/contexthub/firmware/inc/platform/stm32f4xx/cmsis/ |
D | core_cm0.h | 241 uint32_t w; /*!< Type used for word access */ member 254 uint32_t w; /*!< Type used for word access */ member 280 uint32_t w; /*!< Type used for word access */ member 295 uint32_t w; /*!< Type used for word access */ member
|
D | core_cm0plus.h | 252 uint32_t w; /*!< Type used for word access */ member 265 uint32_t w; /*!< Type used for word access */ member 291 uint32_t w; /*!< Type used for word access */ member 306 uint32_t w; /*!< Type used for word access */ member
|
D | core_sc000.h | 247 uint32_t w; /*!< Type used for word access */ member 260 uint32_t w; /*!< Type used for word access */ member 286 uint32_t w; /*!< Type used for word access */ member 301 uint32_t w; /*!< Type used for word access */ member
|
/device/google/contexthub/util/nanotool/ |
D | calibrationfile.cpp | 109 int32_t z, int32_t w) { in SetFourAxis() argument 114 json_array->addInt32(w); in SetFourAxis()
|
/device/google/contexthub/sensorhal/ |
D | hubconnection.cpp | 433 float w; in processSample() local 518 w = sample->x * sample->x + sample->y * sample->y + sample->z * sample->z; in processSample() 519 if (w < 1.0f) in processSample() 520 w = sqrt(1.0f - w); in processSample() 522 w = 0.0f; in processSample() 526 ev->data[3] = w; in processSample() 532 w = sample->x * sample->x + sample->y * sample->y + sample->z * sample->z; in processSample() 533 if (w < 1.0f) in processSample() 534 w = sqrt(1.0f - w); in processSample() 536 w = 0.0f; in processSample() [all …]
|
/device/generic/goldfish/opengl/system/egl/ |
D | egl.cpp | 205 void setWidth(EGLint w) { width = w; } in setWidth() 339 EGLint surfType, int32_t w, int32_t h, GLenum pixelFormat); 350 int32_t w, int32_t h); 357 EGLint surfType, int32_t w, int32_t h) in egl_pbuffer_surface_t() argument 361 setWidth(w); in egl_pbuffer_surface_t() 398 EGLConfig config, EGLint surfType, int32_t w, int32_t h, in create() argument 402 w, h); in create() 659 int32_t w = 0; in eglCreatePbufferSurface() local 666 w = attrib_list[1]; in eglCreatePbufferSurface() 693 EGL_PBUFFER_BIT, w, h, pixelFormat); in eglCreatePbufferSurface()
|
/device/lge/bullhead/sepolicy/ |
D | audioserver.te | 3 # allow communication w/perfd
|
D | mediaserver.te | 7 # allow communication w/perfd
|
/device/huawei/angler/sepolicy/ |
D | cameraserver.te | 5 # allow communication w/perfd
|
/device/google/contexthub/lib/include/nanohub/ |
D | sha2.h | 34 uint32_t w[SHA2_WORDS_STATE_SIZE]; member
|
/device/moto/shamu/camera/QCamera/HAL/core/src/ |
D | QCameraHWI_Rdi.cpp | 106 int w,h,main_422; in dumpFrameToFile() local 110 w = mHalCamCtrl->mRdiWidth; in dumpFrameToFile()
|