Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 469) sorted by relevance

12345678910>>...19

/frameworks/base/tools/aapt/
DBundle.h87 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/base/core/java/android/util/proto/
DProtoOutputStream.java227 public void write(long fieldId, double val) { in write() argument
234 writeDoubleImpl(id, (double)val); in write()
238 writeRepeatedDoubleImpl(id, (double)val); in write()
242 writeFloatImpl(id, (float)val); in write()
246 writeRepeatedFloatImpl(id, (float)val); in write()
250 writeInt32Impl(id, (int)val); in write()
254 writeRepeatedInt32Impl(id, (int)val); in write()
258 writeInt64Impl(id, (long)val); in write()
262 writeRepeatedInt64Impl(id, (long)val); in write()
266 writeUInt32Impl(id, (int)val); in write()
[all …]
DEncodedBuffer.java271 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/av/media/libaudioprocessing/
DAudioResamplerFirProcessNeon.h145 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/
DBluetoothTestRunner.java86 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/
DParcel.h114 status_t writeInt32(int32_t val);
115 status_t writeUint32(uint32_t val);
116 status_t writeInt64(int64_t val);
117 status_t writeUint64(uint64_t val);
118 status_t writeFloat(float val);
119 status_t writeDouble(double val);
126 status_t writeStrongBinder(const sp<IBinder>& val);
127 status_t writeInt32Array(size_t len, const int32_t *val);
128 status_t writeByteArray(size_t len, const uint8_t *val);
129 status_t writeBool(bool val);
[all …]
/frameworks/native/include/binder/
DParcel.h114 status_t writeInt32(int32_t val);
115 status_t writeUint32(uint32_t val);
116 status_t writeInt64(int64_t val);
117 status_t writeUint64(uint64_t val);
118 status_t writeFloat(float val);
119 status_t writeDouble(double val);
126 status_t writeStrongBinder(const sp<IBinder>& val);
127 status_t writeInt32Array(size_t len, const int32_t *val);
128 status_t writeByteArray(size_t len, const uint8_t *val);
129 status_t writeBool(bool val);
[all …]
/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp61 ProtoOutputStream::internalWrite(uint64_t fieldId, T val, const char* typeName) in internalWrite() argument
66 case FIELD_TYPE_DOUBLE: writeDoubleImpl(id, (double)val); break; in internalWrite()
67 case FIELD_TYPE_FLOAT: writeFloatImpl(id, (float)val); break; in internalWrite()
68 case FIELD_TYPE_INT64: writeInt64Impl(id, (int64_t)val); break; in internalWrite()
69 case FIELD_TYPE_UINT64: writeUint64Impl(id, (uint64_t)val); break; in internalWrite()
70 case FIELD_TYPE_INT32: writeInt32Impl(id, (int32_t)val); break; in internalWrite()
71 case FIELD_TYPE_FIXED64: writeFixed64Impl(id, (uint64_t)val); break; in internalWrite()
72 case FIELD_TYPE_FIXED32: writeFixed32Impl(id, (uint32_t)val); break; in internalWrite()
73 case FIELD_TYPE_UINT32: writeUint32Impl(id, (uint32_t)val); break; in internalWrite()
74 case FIELD_TYPE_SFIXED32: writeSFixed32Impl(id, (int32_t)val); break; in internalWrite()
[all …]
DEncodedBuffer.cpp160 EncodedBuffer::writeRawByte(uint8_t val) in writeRawByte() argument
162 *writeBuffer() = val; in writeRawByte()
167 EncodedBuffer::writeRawVarint64(uint64_t val) in writeRawVarint64() argument
172 if ((val & ~0x7F) == 0) { in writeRawVarint64()
173 writeRawByte((uint8_t) val); in writeRawVarint64()
176 writeRawByte((uint8_t)((val & 0x7F) | 0x80)); in writeRawVarint64()
177 val >>= 7; in writeRawVarint64()
183 EncodedBuffer::writeRawVarint32(uint32_t val) in writeRawVarint32() argument
185 uint64_t v =(uint64_t)val; in writeRawVarint32()
190 EncodedBuffer::writeRawFixed32(uint32_t val) in writeRawFixed32() argument
[all …]
/frameworks/layoutlib/bridge/src/android/util/
DPathParser_Delegate.java183 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/core/java/android/os/
DHwParcel.java90 public native final void writeBool(boolean val); in writeBool() argument
96 public native final void writeInt8(byte val); in writeInt8() argument
102 public native final void writeInt16(short val); in writeInt16() argument
108 public native final void writeInt32(int val); in writeInt32() argument
114 public native final void writeInt64(long val); in writeInt64() argument
120 public native final void writeFloat(float val); in writeFloat() argument
126 public native final void writeDouble(double val); in writeDouble() argument
135 public native final void writeString(String val); in writeString() argument
143 public native final void writeNativeHandle(@Nullable NativeHandle val); in writeNativeHandle() argument
150 private native final void writeBoolVector(boolean[] val); in writeBoolVector() argument
[all …]
DParcel.java302 private static native void nativeWriteInt(long nativePtr, int val); in nativeWriteInt() argument
304 private static native void nativeWriteLong(long nativePtr, long val); in nativeWriteLong() argument
306 private static native void nativeWriteFloat(long nativePtr, float val); in nativeWriteFloat() argument
308 private static native void nativeWriteDouble(long nativePtr, double val); in nativeWriteDouble() argument
310 private static native void nativeWriteString8(long nativePtr, String val); in nativeWriteString8() argument
312 private static native void nativeWriteString16(long nativePtr, String val); in nativeWriteString16() argument
314 private static native void nativeWriteStrongBinder(long nativePtr, IBinder val); in nativeWriteStrongBinder() argument
316 private static native long nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); in nativeWriteFileDescriptor() argument
741 public final void writeInt(int val) { in writeInt() argument
742 nativeWriteInt(mNativePtr, val); in writeInt()
[all …]
/frameworks/base/libs/protoutil/include/android/util/
DProtoOutputStream.h99 bool write(uint64_t fieldId, double val);
100 bool write(uint64_t fieldId, float val);
101 bool write(uint64_t fieldId, int val);
102 bool write(uint64_t fieldId, long val);
103 bool write(uint64_t fieldId, long long val);
104 bool write(uint64_t fieldId, bool val);
105 bool write(uint64_t fieldId, std::string val);
106 bool write(uint64_t fieldId, const char* val, size_t size);
150 inline void writeDoubleImpl(uint32_t id, double val);
151 inline void writeFloatImpl(uint32_t id, float val);
[all …]
/frameworks/base/libs/androidfw/tests/
DResTable_test.cpp63 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 …]
DIdmap_test.cpp78 Res_value val; in TEST_F() local
83 0 /* density_override */, &val, &config, in TEST_F()
86 ASSERT_EQ(val.dataType, Res_value::TYPE_STRING); in TEST_F()
87 ASSERT_EQ(GetStringFromApkAssets(asset_manager, val, cookie), "Overlay One"); in TEST_F()
94 Res_value val; in TEST_F() local
99 0 /* density_override */, &val, &config, in TEST_F()
102 ASSERT_EQ(val.dataType, Res_value::TYPE_STRING); in TEST_F()
103 ASSERT_EQ(GetStringFromApkAssets(asset_manager, val, cookie), "yes"); in TEST_F()
110 Res_value val; in TEST_F() local
115 0 /* density_override */, &val, &config, in TEST_F()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_math_agree.java50 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 …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_math_agree.java48 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/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_math_agree.java37 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/native/libs/binder/tests/
DbinderTextOutputTest.cpp48 #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/native/libs/binder/
DParcel.cpp774 status_t Parcel::writeByteVector(const std::vector<int8_t>& val) { in writeByteVector() argument
775 return writeByteVectorInternal(val.data(), val.size()); in writeByteVector()
778 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<int8_t>>& val) in writeByteVector() argument
780 if (!val) return writeInt32(-1); in writeByteVector()
781 return writeByteVectorInternal(val->data(), val->size()); in writeByteVector()
784 status_t Parcel::writeByteVector(const std::vector<uint8_t>& val) { in writeByteVector() argument
785 return writeByteVectorInternal(reinterpret_cast<const int8_t*>(val.data()), val.size()); in writeByteVector()
788 status_t Parcel::writeByteVector(const std::unique_ptr<std::vector<uint8_t>>& val) in writeByteVector() argument
790 if (!val) return writeInt32(-1); in writeByteVector()
791 return writeByteVectorInternal(reinterpret_cast<const int8_t*>(val->data()), val->size()); in writeByteVector()
[all …]
/frameworks/av/media/libeffects/loudness/common/core/
Dbyte_swapper.h42 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/av/media/libstagefright/codecs/amrnb/enc/src/
Dset_sign.cpp252 Word16 val, min; in set_sign() local
258 val = dn[i]; in set_sign()
260 if (val >= 0) in set_sign()
267 val = negate(val); in set_sign()
268 dn[i] = val; /* modify dn[] according to the fixed sign */ in set_sign()
271 dn2[i] = val; in set_sign()
498 Word16 val; in set_sign12k2() local
525 val = *(p_cn++); in set_sign12k2()
526 s = L_mac(s, val, val, pOverflow); in set_sign12k2()
527 val = *(p_dn++); in set_sign12k2()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DSize.java93 private final Point val; field in Size
99 val = new Point(width, height); in Size()
107 val = new Point(0, 0); in Size()
109 val = new Point(other.width(), other.height()); in Size()
120 val = new Point(0, 0); in Size()
122 val = new Point(other.width, other.height); in Size()
133 val = new Point(0, 0); in Size()
135 val = new Point(other.getWidth(), other.getHeight()); in Size()
146 val = new Point(0, 0); in Size()
148 val = new Point(p); in Size()
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
Dreduce_general_result.rscript14 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/compile/slang/tests/P_reduce_general_examples/
Dreduce_general_examples.rscript15 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 …]

12345678910>>...19