Home
last modified time | relevance | path

Searched refs:acc (Results 1 – 18 of 18) sorted by relevance

/frameworks/ml/nn/common/operations/internal/optimized/
Ddepthwiseconv_uint8.h53 int32x4x2_t acc[2];
55 acc[i].val[0] = vld1q_s32(acc_buffer_ptr + 4 * i);
56 acc[i].val[1] = vld1q_s32(acc_buffer_ptr + 4 * i + 8);
67 acc[0].val[i] = vmlal_s16(acc[0].val[i], vget_low_s16(filter[i]),
69 acc[1].val[i] = vmlal_s16(acc[1].val[i], vget_high_s16(filter[i]),
74 vst1q_s32(acc_buffer_ptr + 4 * i, acc[i].val[0]);
75 vst1q_s32(acc_buffer_ptr + 4 * i + 8, acc[i].val[1]);
97 int32x4_t acc[4];
99 acc[i] = vld1q_s32(acc_buffer_ptr + 4 * i);
115 acc[0] = vmlal_s16(acc[0], vget_low_s16(filter), vget_low_s16(input[0]));
[all …]
Ddepthwiseconv_float.h55 float32x4_t acc[4];
57 acc[i] = vld1q_f32(acc_buffer_ptr + 4 * i);
60 acc[0] = vmlaq_f32(acc[0], input[0], filter[0]);
61 acc[1] = vmlaq_f32(acc[1], input[1], filter[1]);
62 acc[2] = vmlaq_f32(acc[2], input[2], filter[0]);
63 acc[3] = vmlaq_f32(acc[3], input[3], filter[1]);
66 vst1q_f32(acc_buffer_ptr + 4 * i, acc[i]);
79 float32x4_t acc[2];
81 acc[i] = vld1q_f32(acc_buffer_ptr + 4 * i);
85 acc[i] = vmlaq_f32(acc[i], input[i], filter[i]);
[all …]
Doptimized_ops.h403 int32x4_t acc[kPeel]; in FullyConnectedAsGEMV() local
405 acc[k] = vdupq_n_s32(0); in FullyConnectedAsGEMV()
436 acc[k] = vmlal_s16(acc[k], vget_low_s16(filter_val[k][p]), in FullyConnectedAsGEMV()
440 acc[k] = vmlal_s16(acc[k], vget_high_s16(filter_val[k][p]), in FullyConnectedAsGEMV()
461 acc[k] = vmlal_s16(acc[k], vget_low_s16(filter_val[k]), in FullyConnectedAsGEMV()
465 acc[k] = vmlal_s16(acc[k], vget_high_s16(filter_val[k]), in FullyConnectedAsGEMV()
472 vst1q_s32(buf + 4 * k, acc[k]); in FullyConnectedAsGEMV()
484 acc[k] = vld1q_s32(buf + 4 * k); in FullyConnectedAsGEMV()
492 vpadd_s32(vget_low_s32(acc[k]), vget_high_s32(acc[k])); in FullyConnectedAsGEMV()
2017 uint16 acc[kAccBufferMaxSize];
[all …]
/frameworks/av/media/libeffects/testlibs/
DAudioBiquadFilter.cpp163 audio_coef_sample_acc_t acc; in process_normal_mono() local
164 acc = mul_coef_sample(b0, x0); in process_normal_mono()
165 acc = mac_coef_sample(b1, x1, acc); in process_normal_mono()
166 acc = mac_coef_sample(b2, x2, acc); in process_normal_mono()
167 acc = mac_coef_sample(a1, y1, acc); in process_normal_mono()
168 acc = mac_coef_sample(a2, y2, acc); in process_normal_mono()
169 audio_sample_t y0 = coef_sample_acc_to_sample(acc); in process_normal_mono()
216 audio_coef_sample_acc_t acc; in process_normal_multi() local
217 acc = mul_coef_sample(b0, x0); in process_normal_multi()
218 acc = mac_coef_sample(b1, x1, acc); in process_normal_multi()
[all …]
DAudioCommon.h55 …_coef_sample_acc_t mac_coef_sample(audio_coef_t x, audio_sample_t y, audio_coef_sample_acc_t acc) { in mac_coef_sample() argument
56 return acc + ((audio_coef_sample_acc_t) (x)) * y; in mac_coef_sample()
60 inline audio_sample_t coef_sample_acc_to_sample(audio_coef_sample_acc_t acc) { in coef_sample_acc_to_sample() argument
61 if (acc < 0) { in coef_sample_acc_to_sample()
62 acc += AUDIO_COEF_ONE - 1; in coef_sample_acc_to_sample()
64 return (audio_sample_t) (acc >> AUDIO_COEF_PRECISION); in coef_sample_acc_to_sample()
/frameworks/ml/nn/common/operations/internal/reference/
Ddepthwiseconv_uint8.h69 int32 acc = 0; in DepthwiseConv() local
82 acc += in DepthwiseConv()
88 acc += bias_data[Offset(bias_dims, oc, 0, 0, 0)]; in DepthwiseConv()
90 acc = MultiplyByQuantizedMultiplierSmallerThanOne( in DepthwiseConv()
91 acc, output_multiplier, output_shift); in DepthwiseConv()
92 acc += output_offset; in DepthwiseConv()
93 acc = std::max(acc, output_activation_min); in DepthwiseConv()
94 acc = std::min(acc, output_activation_max); in DepthwiseConv()
96 static_cast<uint8>(acc); in DepthwiseConv()
Dreference_ops.h257 int32 acc = 0; in Conv() local
272 acc += in Conv()
279 acc += bias_data[Offset(bias_dims, out_channel, 0, 0, 0)]; in Conv()
281 acc = MultiplyByQuantizedMultiplierSmallerThanOne( in Conv()
282 acc, output_multiplier, output_shift); in Conv()
283 acc += output_offset; in Conv()
284 acc = std::max(acc, output_activation_min); in Conv()
285 acc = std::min(acc, output_activation_max); in Conv()
287 static_cast<uint8>(acc); in Conv()
441 int32 acc = 0; in FullyConnected() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DTrackedGarbage.java89 ArrayMap<Class<?>, Integer> acc = new ArrayMap<>(); in dump() local
92 acc.put(ref.clazz, acc.getOrDefault(ref.clazz, 0) + 1); in dump()
98 for (Map.Entry<Class<?>, Integer> entry : acc.entrySet()) { in dump()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java78 byte acc = 0; in calibrateMethod()
80 acc += buffer[i]; in calibrateMethod()
82 buffer[0] = acc; in calibrateMethod()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rs67 float3 acc = force;
72 out.xyz = mad(acc, half_dt, mad(v.xyz, dt, in.xyz));
73 v.xyz += acc;
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirProcess.h88 inline void acc(TC coef, const TI*& data) { in acc() function
90 Accumulator<CHANNELS-1, TO>::acc(coef, data); in acc()
106 inline void acc(TC coef __unused, const TI*& data __unused) { in acc() function
202 accum.acc(c, tmp_data); in ProcessBase()
210 accum.acc(c, tmp_data); in ProcessBase()
/frameworks/av/services/camera/libcameraservice/gui/
DRingBufferConsumer.cpp70 BufferInfo acc, cur; in pinSelectedBuffer() local
93 acc = cur; in pinSelectedBuffer()
94 accPtr = &acc; in pinSelectedBuffer()
/frameworks/native/services/sensorservice/
DSensorFusion.cpp108 const vec3_t acc(event.data); in process() local
111 mFusions[i].handleAcc(acc, dT); in process()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbProfileGroupSettingsManager.java501 public boolean matches(UsbAccessory acc) { in matches() argument
502 if (mManufacturer != null && !acc.getManufacturer().equals(mManufacturer)) return false; in matches()
503 if (mModel != null && !acc.getModel().equals(mModel)) return false; in matches()
504 return !(mVersion != null && !acc.getVersion().equals(mVersion)); in matches()
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java968 AccountInfo acc = accIt.next(); in doDatabaseCleanup() local
969 if (!ArrayUtils.contains(accounts, acc.accountAndUser.account) in doDatabaseCleanup()
970 && acc.accountAndUser.userId == userId) { in doDatabaseCleanup()
973 Slog.v(TAG, "Account removed: " + acc.accountAndUser); in doDatabaseCleanup()
975 for (AuthorityInfo auth : acc.authorities.values()) { in doDatabaseCleanup()
DSyncManager.java2985 for (AccountAndUser acc : mRunningAccounts) { in updateRunningAccountsH()
2986 Slog.v(TAG, acc.toString()); in updateRunningAccountsH()
/frameworks/base/core/java/android/view/
DViewRootImpl.java5180 float acc = acceleration; in collect() local
5184 if (scale > 1) acc *= scale; in collect()
5187 + " scale=" + scale + " acc=" + acc); in collect()
5188 acceleration = acc < MAX_ACCELERATION ? acc : MAX_ACCELERATION; in collect()
5192 if (scale > 1) acc /= scale; in collect()
5195 + " scale=" + scale + " acc=" + acc); in collect()
5196 acceleration = acc > 1 ? acc : 1; in collect()
5253 float acc = acceleration; in generate() local
5254 acc *= 1.1f; in generate()
5255 acceleration = acc < MAX_ACCELERATION ? acc : acceleration; in generate()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java1727 for (Account acc : getAccounts(parentUserId, mContext.getOpPackageName())) { in completeCloningAccount()
1728 if (acc.equals(account)) { in completeCloningAccount()
2656 for (Account acc : accounts.accountCache.get(account.type)) { in accountExistsCache()
2657 if (acc.name.equals(account.name)) { in accountExistsCache()