/frameworks/base/tools/aapt/ |
D | Bundle.h | 86 void setVerbose(bool val) { mVerbose = val; } in setVerbose() argument 88 void setAndroidList(bool val) { mAndroidList = val; } in setAndroidList() argument 90 void setForce(bool val) { mForce = val; } in setForce() argument 91 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } in setGrayscaleTolerance() argument 94 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } in setMakePackageDirs() argument 96 void setUpdate(bool val) { mUpdate = val; } in setUpdate() argument 98 void setExtending(bool val) { mExtending = val; } in setExtending() argument 100 void setRequireLocalization(bool val) { mRequireLocalization = val; } in setRequireLocalization() argument 102 void setPseudolocalize(short val) { mPseudolocalize = val; } in setPseudolocalize() argument 103 void setWantUTF16(bool val) { mWantUTF16 = val; } in setWantUTF16() argument [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 271 public void write(long fieldId, double val) { in write() argument 278 writeDoubleImpl(id, (double)val); in write() 282 writeRepeatedDoubleImpl(id, (double)val); in write() 286 writeFloatImpl(id, (float)val); in write() 290 writeRepeatedFloatImpl(id, (float)val); in write() 294 writeInt32Impl(id, (int)val); in write() 298 writeRepeatedInt32Impl(id, (int)val); in write() 302 writeInt64Impl(id, (long)val); in write() 306 writeRepeatedInt64Impl(id, (long)val); in write() 310 writeUInt32Impl(id, (int)val); in write() [all …]
|
D | EncodedBuffer.java | 263 public void writeRawByte(byte val) { in writeRawByte() argument 267 mWriteBuffer[mWriteIndex++] = val; in writeRawByte() 273 public static int getRawVarint32Size(int val) { in getRawVarint32Size() argument 274 if ((val & (0xffffffff << 7)) == 0) return 1; in getRawVarint32Size() 275 if ((val & (0xffffffff << 14)) == 0) return 2; in getRawVarint32Size() 276 if ((val & (0xffffffff << 21)) == 0) return 3; in getRawVarint32Size() 277 if ((val & (0xffffffff << 28)) == 0) return 4; in getRawVarint32Size() 286 public void writeRawVarint32(int val) { in writeRawVarint32() argument 288 if ((val & ~0x7F) == 0) { in writeRawVarint32() 289 writeRawByte((byte)val); in writeRawVarint32() [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/support/compat/java/android/support/v4/graphics/ |
D | PathParser.java | 102 float[] val = getFloats(s); in createNodesFromPathData() local 103 addNode(list, s.charAt(0), val); in createNodesFromPathData() 187 private static void addNode(ArrayList<PathDataNode> list, char cmd, float[] val) { in addNode() argument 188 list.add(new PathDataNode(cmd, val)); in addNode() 362 char previousCmd, char cmd, float[] val) { in addCommand() argument 417 for (int k = 0; k < val.length; k += incr) { in addCommand() 420 currentX += val[k + 0]; in addCommand() 421 currentY += val[k + 1]; in addCommand() 426 path.rLineTo(val[k + 0], val[k + 1]); in addCommand() 428 path.rMoveTo(val[k + 0], val[k + 1]); in addCommand() [all …]
|
/frameworks/base/core/java/android/os/ |
D | HwParcel.java | 50 public native final void writeBool(boolean val); in writeBool() argument 51 public native final void writeInt8(byte val); in writeInt8() argument 52 public native final void writeInt16(short val); in writeInt16() argument 53 public native final void writeInt32(int val); in writeInt32() argument 54 public native final void writeInt64(long val); in writeInt64() argument 55 public native final void writeFloat(float val); in writeFloat() argument 56 public native final void writeDouble(double val); in writeDouble() argument 57 public native final void writeString(String val); in writeString() argument 59 private native final void writeBoolVector(boolean[] val); in writeBoolVector() argument 60 private native final void writeInt8Vector(byte[] val); in writeInt8Vector() argument [all …]
|
D | Parcel.java | 286 private static native void nativeWriteInt(long nativePtr, int val); in nativeWriteInt() argument 288 private static native void nativeWriteLong(long nativePtr, long val); in nativeWriteLong() argument 290 private static native void nativeWriteFloat(long nativePtr, float val); in nativeWriteFloat() argument 292 private static native void nativeWriteDouble(long nativePtr, double val); in nativeWriteDouble() argument 293 private static native void nativeWriteString(long nativePtr, String val); in nativeWriteString() argument 294 private static native void nativeWriteStrongBinder(long nativePtr, IBinder val); in nativeWriteStrongBinder() argument 295 private static native long nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); in nativeWriteFileDescriptor() argument 592 public final void writeInt(int val) { in writeInt() argument 593 nativeWriteInt(mNativePtr, val); in writeInt() 600 public final void writeLong(long val) { in writeLong() argument [all …]
|
/frameworks/native/libs/binder/include/binder/ |
D | Parcel.h | 111 status_t writeInt32(int32_t val); 112 status_t writeUint32(uint32_t val); 113 status_t writeInt64(int64_t val); 114 status_t writeUint64(uint64_t val); 115 status_t writeFloat(float val); 116 status_t writeDouble(double val); 122 status_t writeStrongBinder(const sp<IBinder>& val); 123 status_t writeWeakBinder(const wp<IBinder>& val); 124 status_t writeInt32Array(size_t len, const int32_t *val); 125 status_t writeByteArray(size_t len, const uint8_t *val); [all …]
|
/frameworks/base/tools/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() 371 @NonNull float[] val) { in addNode() argument 372 list.add(new PathDataNode(cmd, val)); in addNode() 445 char previousCmd, char cmd, @NonNull float[] val) { in addCommand() argument 500 for (int k = 0; k < val.length; k += incr) { in addCommand() 503 currentX += val[k + 0]; in addCommand() 504 currentY += val[k + 1]; in addCommand() 510 path.rLineTo(val[k + 0], val[k + 1]); in addCommand() 512 path.rMoveTo(val[k + 0], val[k + 1]); in addCommand() [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/RSTest_CompatLib/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 …]
|
D | reduce.rs | 15 static void aiAccum(int *accum, int val) { *accum += val; } 24 float val; 33 accum->min.val = posInf; 35 accum->max.val = negInf; 41 me.val = in; 44 if (me.val <= accum->min.val) 46 if (me.val >= accum->max.val) 51 const MinAndMax *val) { 52 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 53 accum->min = val->min; [all …]
|
D | reduce_backward.rs | 11 static void aiAccum(int *accum, int val) { *accum += val; } 19 float val; 28 accum->min.val = posInf; 30 accum->max.val = negInf; 36 me.val = in; 39 if (me.val <= accum->min.val) 41 if (me.val >= accum->max.val) 46 const MinAndMax *val) { 47 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 48 accum->min = val->min; [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/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/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/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | reduce_backward.rs | 13 static void aiAccum(int *accum, int val) { *accum += val; } 21 float val; 30 accum->min.val = posInf; 32 accum->max.val = negInf; 38 me.val = in; 41 if (me.val <= accum->min.val) 43 if (me.val >= accum->max.val) 48 const MinAndMax *val) { 49 if ((accum->min.idx < 0) || (val->min.val < accum->min.val)) 50 accum->min = val->min; [all …]
|
D | reduce.rs | 21 static void aiAccum(int *accum, int val) { *accum += val; } 48 static void fMinAbsNaNAccumulator(float *accum, float val) { 49 if (IsNaN(*accum) || (fabs(val) < fabs(*accum))) 50 *accum = val; 70 float val; 81 static void fMinAbsBoolAccumulator(FindMinAbsBoolAccumType *accum, float val) { 82 if (accum->onlyInitialized || (fabs(val) < fabs(accum->val))) 83 accum->val = val; 89 fMinAbsBoolAccumulator(accum, other->val); 93 *out = accum->val; [all …]
|
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 …]
|
/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 …]
|
/frameworks/native/libs/binder/ |
D | Parcel.cpp | 799 status_t writeByteVectorInternal(Parcel* parcel, const std::vector<T>& val) in writeByteVectorInternal() argument 802 if (val.size() > std::numeric_limits<int32_t>::max()) { in writeByteVectorInternal() 807 status = parcel->writeInt32(val.size()); in writeByteVectorInternal() 812 void* data = parcel->writeInplace(val.size()); in writeByteVectorInternal() 818 memcpy(data, val.data(), val.size()); in writeByteVectorInternal() 824 const std::unique_ptr<std::vector<T>>& val) in writeByteVectorInternalPtr() argument 826 if (!val) { in writeByteVectorInternalPtr() 830 return writeByteVectorInternal(parcel, *val); in writeByteVectorInternalPtr() 835 status_t Parcel::writeByteVector(const std::vector<int8_t>& val) { in writeByteVector() argument 836 return writeByteVectorInternal(this, val); in writeByteVector() [all …]
|
/frameworks/av/media/libeffects/loudness/common/core/ |
D | byte_swapper.h | 42 static T Swap(const T &val) { in Swap() 43 T new_val = val; in Swap() 56 static T Swap(const T &val) { 57 return val; 63 static T Swap(const T &val) { 65 const char *o = (const char *)&val; 75 static T Swap(const T &val) { 77 const char *o = (const char *)&val; 89 static T Swap(const T &val) { 90 T new_val = val; [all …]
|
/frameworks/native/libs/binder/tests/ |
D | binderTextOutputTest.cpp | 49 #define CHECK_VAL_(val, singleline) \ argument 52 ss << val; \ 54 CHECK_LOG_(val, s.c_str(), singleline); \ 58 #define CHECK_VAL(val) CHECK_VAL_(val, true) argument 108 android::Parcel val; in TEST() local 109 CHECK_LOG(val, "Parcel(NULL)"); in TEST() 114 android::HexDump val(buf, sizeof(buf)); in TEST() local 115 CHECK_LOG(val, "03020100 07060504 0b0a0908 0f0e0d0c '................'"); in TEST() 120 android::HexDump val(buf, sizeof(buf), 4); in TEST() local 121 CHECK_LOG(val, "11 22 33 44 '.\"3D'"); in TEST() [all …]
|