/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 212 public void write(long fieldId, double val) { in write() argument 219 writeDoubleImpl(id, (double)val); in write() 223 writeRepeatedDoubleImpl(id, (double)val); in write() 227 writeFloatImpl(id, (float)val); in write() 231 writeRepeatedFloatImpl(id, (float)val); in write() 235 writeInt32Impl(id, (int)val); in write() 239 writeRepeatedInt32Impl(id, (int)val); in write() 243 writeInt64Impl(id, (long)val); in write() 247 writeRepeatedInt64Impl(id, (long)val); in write() 251 writeUInt32Impl(id, (int)val); in write() [all …]
|
D | EncodedBuffer.java | 271 public void writeRawByte(byte val) { in writeRawByte() argument 275 mWriteBuffer[mWriteIndex++] = val; in writeRawByte() 281 public static int getRawVarint32Size(int val) { in getRawVarint32Size() argument 282 if ((val & (0xffffffff << 7)) == 0) return 1; in getRawVarint32Size() 283 if ((val & (0xffffffff << 14)) == 0) return 2; in getRawVarint32Size() 284 if ((val & (0xffffffff << 21)) == 0) return 3; in getRawVarint32Size() 285 if ((val & (0xffffffff << 28)) == 0) return 4; in getRawVarint32Size() 294 public void writeRawVarint32(int val) { in writeRawVarint32() argument 296 if ((val & ~0x7F) == 0) { in writeRawVarint32() 297 writeRawByte((byte)val); in writeRawVarint32() [all …]
|
/frameworks/base/tools/aapt/ |
D | Bundle.h | 87 void setVerbose(bool val) { mVerbose = val; } in setVerbose() argument 89 void setAndroidList(bool val) { mAndroidList = val; } in setAndroidList() argument 91 void setForce(bool val) { mForce = val; } in setForce() argument 92 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } in setGrayscaleTolerance() argument 95 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } in setMakePackageDirs() argument 97 void setUpdate(bool val) { mUpdate = val; } in setUpdate() argument 99 void setExtending(bool val) { mExtending = val; } in setExtending() argument 101 void setRequireLocalization(bool val) { mRequireLocalization = val; } in setRequireLocalization() argument 103 void setPseudolocalize(short val) { mPseudolocalize = val; } in setPseudolocalize() argument 104 void setWantUTF16(bool val) { mWantUTF16 = val; } in setWantUTF16() argument [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirProcessNeon.h | 145 posSamp.val[0] = vrev64q_s16(posSamp.val[0]); in ProcessNeonIntrinsic() 146 posSamp.val[1] = vrev64q_s16(posSamp.val[1]); in ProcessNeonIntrinsic() 149 accum = vmlal_s16(accum, vget_low_s16(posSamp.val[0]), vget_high_s16(posCoef)); // r in ProcessNeonIntrinsic() 150 accum = vmlal_s16(accum, vget_high_s16(posSamp.val[0]), vget_low_s16(posCoef)); // r in ProcessNeonIntrinsic() 151 accum2 = vmlal_s16(accum2, vget_low_s16(posSamp.val[1]), vget_high_s16(posCoef)); // r in ProcessNeonIntrinsic() 152 accum2 = vmlal_s16(accum2, vget_high_s16(posSamp.val[1]), vget_low_s16(posCoef)); // r in ProcessNeonIntrinsic() 153 accum = vmlal_s16(accum, vget_low_s16(negSamp.val[0]), vget_low_s16(negCoef)); in ProcessNeonIntrinsic() 154 accum = vmlal_s16(accum, vget_high_s16(negSamp.val[0]), vget_high_s16(negCoef)); in ProcessNeonIntrinsic() 155 accum2 = vmlal_s16(accum2, vget_low_s16(negSamp.val[1]), vget_low_s16(negCoef)); in ProcessNeonIntrinsic() 156 accum2 = vmlal_s16(accum2, vget_high_s16(negSamp.val[1]), vget_high_s16(negCoef)); in ProcessNeonIntrinsic() [all …]
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestRunner.java | 86 String val = arguments.getString("enable_iterations"); in onCreate() local 87 if (val != null) { in onCreate() 89 sEnableIterations = Integer.parseInt(val); in onCreate() 95 val = arguments.getString("discoverable_iterations"); in onCreate() 96 if (val != null) { in onCreate() 98 sDiscoverableIterations = Integer.parseInt(val); in onCreate() 104 val = arguments.getString("scan_iterations"); in onCreate() 105 if (val != null) { in onCreate() 107 sScanIterations = Integer.parseInt(val); in onCreate() 113 val = arguments.getString("enable_pan_iterations"); in onCreate() [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Parcel.h | 112 status_t writeInt32(int32_t val); 113 status_t writeUint32(uint32_t val); 114 status_t writeInt64(int64_t val); 115 status_t writeUint64(uint64_t val); 116 status_t writeFloat(float val); 117 status_t writeDouble(double val); 123 status_t writeStrongBinder(const sp<IBinder>& val); 124 status_t writeWeakBinder(const wp<IBinder>& val); 125 status_t writeInt32Array(size_t len, const int32_t *val); 126 status_t writeByteArray(size_t len, const uint8_t *val); [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwParcel.java | 85 public native final void writeBool(boolean val); in writeBool() argument 90 public native final void writeInt8(byte val); in writeInt8() argument 95 public native final void writeInt16(short val); in writeInt16() argument 100 public native final void writeInt32(int val); in writeInt32() argument 105 public native final void writeInt64(long val); in writeInt64() argument 110 public native final void writeFloat(float val); in writeFloat() argument 115 public native final void writeDouble(double val); in writeDouble() argument 123 public native final void writeString(String val); in writeString() argument 130 public native final void writeNativeHandle(@Nullable NativeHandle val); in writeNativeHandle() argument 136 private native final void writeBoolVector(boolean[] val); in writeBoolVector() argument [all …]
|
D | Parcel.java | 298 private static native void nativeWriteInt(long nativePtr, int val); in nativeWriteInt() argument 300 private static native void nativeWriteLong(long nativePtr, long val); in nativeWriteLong() argument 302 private static native void nativeWriteFloat(long nativePtr, float val); in nativeWriteFloat() argument 304 private static native void nativeWriteDouble(long nativePtr, double val); in nativeWriteDouble() argument 305 static native void nativeWriteString(long nativePtr, String val); in nativeWriteString() argument 306 private static native void nativeWriteStrongBinder(long nativePtr, IBinder val); in nativeWriteStrongBinder() argument 307 private static native long nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); in nativeWriteFileDescriptor() argument 714 public final void writeInt(int val) { in writeInt() argument 715 nativeWriteInt(mNativePtr, val); in writeInt() 722 public final void writeLong(long val) { in writeLong() argument [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | PathParser_Delegate.java | 183 float[] val = getFloats(s); in createNodesFromPathData() local 184 addNode(list, s.charAt(0), val); in createNodesFromPathData() 373 @NonNull float[] val) { in addNode() argument 374 list.add(new PathDataNode(cmd, val)); in addNode() 447 char previousCmd, char cmd, @NonNull float[] val) { in addCommand() argument 502 for (int k = 0; k < val.length; k += incr) { in addCommand() 505 currentX += val[k + 0]; in addCommand() 506 currentY += val[k + 1]; in addCommand() 512 path.rLineTo(val[k + 0], val[k + 1]); in addCommand() 514 path.rMoveTo(val[k + 0], val[k + 1]); in addCommand() [all …]
|
/frameworks/base/libs/protoutil/src/ |
D | ProtoOutputStream.cpp | 57 ProtoOutputStream::internalWrite(uint64_t fieldId, T val, const char* typeName) in internalWrite() argument 62 case FIELD_TYPE_DOUBLE: writeDoubleImpl(id, (double)val); break; in internalWrite() 63 case FIELD_TYPE_FLOAT: writeFloatImpl(id, (float)val); break; in internalWrite() 64 case FIELD_TYPE_INT64: writeInt64Impl(id, (int64_t)val); break; in internalWrite() 65 case FIELD_TYPE_UINT64: writeUint64Impl(id, (uint64_t)val); break; in internalWrite() 66 case FIELD_TYPE_INT32: writeInt32Impl(id, (int32_t)val); break; in internalWrite() 67 case FIELD_TYPE_FIXED64: writeFixed64Impl(id, (uint64_t)val); break; in internalWrite() 68 case FIELD_TYPE_FIXED32: writeFixed32Impl(id, (uint32_t)val); break; in internalWrite() 69 case FIELD_TYPE_UINT32: writeUint32Impl(id, (uint32_t)val); break; in internalWrite() 70 case FIELD_TYPE_SFIXED32: writeSFixed32Impl(id, (int32_t)val); break; in internalWrite() [all …]
|
D | EncodedBuffer.cpp | 154 EncodedBuffer::writeRawByte(uint8_t val) in writeRawByte() argument 156 *writeBuffer() = val; in writeRawByte() 161 EncodedBuffer::writeRawVarint64(uint64_t val) in writeRawVarint64() argument 166 if ((val & ~0x7F) == 0) { in writeRawVarint64() 167 writeRawByte((uint8_t) val); in writeRawVarint64() 170 writeRawByte((uint8_t)((val & 0x7F) | 0x80)); in writeRawVarint64() 171 val >>= 7; in writeRawVarint64() 177 EncodedBuffer::writeRawVarint32(uint32_t val) in writeRawVarint32() argument 179 uint64_t v =(uint64_t)val; in writeRawVarint32() 184 EncodedBuffer::writeRawFixed32(uint32_t val) in writeRawFixed32() argument [all …]
|
/frameworks/base/libs/protoutil/include/android/util/ |
D | ProtoOutputStream.h | 98 bool write(uint64_t fieldId, double val); 99 bool write(uint64_t fieldId, float val); 100 bool write(uint64_t fieldId, int val); 101 bool write(uint64_t fieldId, long long val); 102 bool write(uint64_t fieldId, bool val); 103 bool write(uint64_t fieldId, std::string val); 104 bool write(uint64_t fieldId, const char* val, size_t size); 148 inline void writeDoubleImpl(uint32_t id, double val); 149 inline void writeFloatImpl(uint32_t id, float val); 150 inline void writeInt64Impl(uint32_t id, int64_t val); [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ResTable_test.cpp | 63 Res_value val; in TEST() local 66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config), in TEST() 68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 69 EXPECT_EQ(900u, val.data); in TEST() 111 Res_value val; in TEST() local 113 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags); in TEST() 115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType); in TEST() 116 ASSERT_EQ(uint32_t(100), val.data); in TEST() 118 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags); in TEST() 120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); in TEST() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_math_agree.java | 50 private Float2 pack_f2(float[] val) { in pack_f2() argument 51 assert val.length == 2; in pack_f2() 52 return new Float2(val[0], val[1]); in pack_f2() 55 private Float3 pack_f3(float[] val) { in pack_f3() argument 56 assert val.length == 3; in pack_f3() 57 return new Float3(val[0], val[1], val[2]); in pack_f3() 60 private Float4 pack_f4(float[] val) { in pack_f4() argument 61 assert val.length == 4; in pack_f4() 62 return new Float4(val[0], val[1], val[2], val[3]); in pack_f4() 65 private Byte2 pack_b2(byte[] val) { in pack_b2() argument [all …]
|
D | reduce_backward.rs | 31 static void aiAccum(int *accum, int val) { *accum += val; } 39 float val; 48 accum->min.val = posInf; 50 accum->max.val = negInf; 56 me.val = in; 59 if (me.val <= accum->min.val) 61 if (me.val >= accum->max.val) 66 const MinAndMax *val) { 67 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 68 accum->min = val->min; [all …]
|
D | reduce.rs | 39 static void aiAccum(int *accum, int val) { *accum += val; } 66 static void fMinAbsNaNAccumulator(float *accum, float val) { 67 if (IsNaN(*accum) || (fabs(val) < fabs(*accum))) 68 *accum = val; 88 float val; 99 static void fMinAbsBoolAccumulator(FindMinAbsBoolAccumType *accum, float val) { 100 if (accum->onlyInitialized || (fabs(val) < fabs(accum->val))) 101 accum->val = val; 107 fMinAbsBoolAccumulator(accum, other->val); 111 *out = accum->val; [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_math_agree.java | 37 private Float2 pack_f2(float[] val) { in pack_f2() argument 38 assert val.length == 2; in pack_f2() 39 return new Float2(val[0], val[1]); in pack_f2() 41 private Float3 pack_f3(float[] val) { in pack_f3() argument 42 assert val.length == 3; in pack_f3() 43 return new Float3(val[0], val[1], val[2]); in pack_f3() 45 private Float4 pack_f4(float[] val) { in pack_f4() argument 46 assert val.length == 4; in pack_f4() 47 return new Float4(val[0], val[1], val[2], val[3]); in pack_f4() 49 private Byte2 pack_b2(byte[] val) { in pack_b2() argument [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_math_agree.java | 48 private Float2 pack_f2(float[] val) { in pack_f2() argument 49 assert val.length == 2; in pack_f2() 50 return new Float2(val[0], val[1]); in pack_f2() 53 private Float3 pack_f3(float[] val) { in pack_f3() argument 54 assert val.length == 3; in pack_f3() 55 return new Float3(val[0], val[1], val[2]); in pack_f3() 58 private Float4 pack_f4(float[] val) { in pack_f4() argument 59 assert val.length == 4; in pack_f4() 60 return new Float4(val[0], val[1], val[2], val[3]); in pack_f4() 63 private Byte2 pack_b2(byte[] val) { in pack_b2() argument [all …]
|
D | reduce_backward.rs | 29 static void aiAccum(int *accum, int val) { *accum += val; } 37 float val; 46 accum->min.val = posInf; 48 accum->max.val = negInf; 54 me.val = in; 57 if (me.val <= accum->min.val) 59 if (me.val >= accum->max.val) 64 const MinAndMax *val) { 65 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 66 accum->min = val->min; [all …]
|
D | reduce.rs | 37 static void aiAccum(int *accum, int val) { *accum += val; } 64 static void fMinAbsNaNAccumulator(float *accum, float val) { 65 if (IsNaN(*accum) || (fabs(val) < fabs(*accum))) 66 *accum = val; 86 float val; 97 static void fMinAbsBoolAccumulator(FindMinAbsBoolAccumType *accum, float val) { 98 if (accum->onlyInitialized || (fabs(val) < fabs(accum->val))) 99 accum->val = val; 105 fMinAbsBoolAccumulator(accum, other->val); 109 *out = accum->val; [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderTextOutputTest.cpp | 48 #define CHECK_VAL_(val, singleline) \ argument 51 ss << val; \ 53 CHECK_LOG_(val, s.c_str(), singleline); \ 57 #define CHECK_VAL(val) CHECK_VAL_(val, true) argument 101 android::Parcel val; in TEST() local 102 CHECK_LOG(val, "Parcel(NULL)"); in TEST() 107 android::HexDump val(buf, sizeof(buf)); in TEST() local 108 CHECK_LOG(val, "03020100 07060504 0b0a0908 0f0e0d0c '................'"); in TEST() 113 android::HexDump val(buf, sizeof(buf), 4); in TEST() local 114 CHECK_LOG(val, "11 22 33 44 '.\"3D'"); in TEST() [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/ |
D | reduce_general_examples_backward.rs | 12 static void aiAccum(int *accum, int val) { *accum += val; } 21 static void mpyAccum(int *accum, int val) { *accum *= val; } 33 static void dpSum(float *accum, const float *val) { *accum += *val; } 44 float val; 59 me.val = in; 62 if (me.val < accum->min.val) 64 if (me.val > accum->max.val) 69 const MinAndMax *val) { 70 fMMAccumulator(accum, val->min.val, val->min.idx); 71 fMMAccumulator(accum, val->max.val, val->max.idx); [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_examples/ |
D | reduce_general_examples.rs | 15 static void aiAccum(int *accum, int val) { *accum += val; } 24 static void mpyAccum(int *accum, int val) { *accum *= val; } 36 static void dpSum(float *accum, const float *val) { *accum += *val; } 48 float val; 63 me.val = in; 66 if (me.val < accum->min.val) 68 if (me.val > accum->max.val) 73 const MinAndMax *val) { 74 fMMAccumulator(accum, val->min.val, val->min.idx); 75 fMMAccumulator(accum, val->max.val, val->max.idx); [all …]
|
/frameworks/compile/slang/tests/F_reduce_general_bad_result/ |
D | reduce_general_bad_result.rs | 6 static void AccumInt(int *accum, int val) { } 22 static void AccumUInt2dA(UIntA916 *accum, int val) { } 23 static void CombUInt2dA(UIntA916 *accum, const UIntA916 *val) { } 28 static void OutUInt2dAFix(uint *out, const UIntA916 *val) { } 32 static void OutUInt2dABreak(UIntA916 *out, const int *val) { } 63 static void OutUnionCharIntFix(int *out, const union UnionCharInt *val) { } 68 static void OutUnionLongFloatBreak(union UnionLongFloat *out, const int *val) { } 93 static void AccumUnionIntFloatArray(UnionIntFloatArray *accum, int val) { } 103 static void OutUnionDoubleFloatArrayFix(int *out, const UnionDoubleFloatArray *val) { } 108 static void OutUnionCharLongArrayBreak(UnionCharLongArray *out, const int *val) { } [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_result/ |
D | reduce_general_result.rs | 14 static void my_half_accum(half *accum, half val) { } 18 static void my_half2_accum(half2 *accum, half2 val) { } 22 static void my_half4_accum(half4 *accum, half4 val) { } 27 static void my_array_half_accum(array_half *accum, half val) { } 32 static void my_array_half2_accum(array_half2 *accum, half2 val) { } 37 static void my_array_half4_accum(array_half4 *accum, half4 val) { } 41 static void my_float_accum(float *accum, float val) { } 45 static void my_float2_accum(float2 *accum, float2 val) { } 49 static void my_float4_accum(float4 *accum, float4 val) { } 54 static void my_array_float_accum(array_float *accum, float val) { } [all …]
|