Searched refs:val (Results 1 - 25 of 246) sorted by relevance

12345678910

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dimgprocutil.h27 inline int clamp(int min, int val, int max) { argument
28 return val < min ? min : (val > max ? max : val);
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothTestRunner.java86 String val = arguments.getString("enable_iterations");
87 if (val != null) {
89 sEnableIterations = Integer.parseInt(val);
95 val = arguments.getString("discoverable_iterations");
96 if (val != null) {
98 sDiscoverableIterations = Integer.parseInt(val);
104 val = arguments.getString("scan_iterations");
105 if (val != null) {
107 sScanIterations = Integer.parseInt(val);
113 val
[all...]
/frameworks/native/libs/binder/
H A DTextOutput.cpp40 TextOutput& operator<<(TextOutput& to, bool val) argument
42 if (val) to.print("true", 4);
47 TextOutput& operator<<(TextOutput& to, int val) argument
50 sprintf(buf, "%d", val);
55 TextOutput& operator<<(TextOutput& to, long val) argument
58 sprintf(buf, "%ld", val);
63 TextOutput& operator<<(TextOutput& to, unsigned int val) argument
66 sprintf(buf, "%u", val);
71 TextOutput& operator<<(TextOutput& to, unsigned long val) argument
74 sprintf(buf, "%lu", val);
79 operator <<(TextOutput& to, long long val) argument
87 operator <<(TextOutput& to, unsigned long long val) argument
107 operator <<(TextOutput& to, float val) argument
112 operator <<(TextOutput& to, double val) argument
117 operator <<(TextOutput& to, const void* val) argument
125 operator <<(TextOutput& to, const String8& val) argument
131 operator <<(TextOutput& to, const String16& val) argument
142 operator <<(TextOutput& to, const TypeCode& val) argument
161 operator <<(TextOutput& to, const HexDump& val) argument
[all...]
/frameworks/base/tools/aapt/
H A DBundle.h83 void setVerbose(bool val) { mVerbose = val; } argument
85 void setAndroidList(bool val) { mAndroidList = val; } argument
87 void setForce(bool val) { mForce = val; } argument
88 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } argument
91 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } argument
93 setUpdate(bool val) argument
95 setExtending(bool val) argument
97 setRequireLocalization(bool val) argument
99 setPseudolocalize(short val) argument
100 setWantUTF16(bool val) argument
102 setValues(bool val) argument
104 setIncludeMetaData(bool val) argument
106 setCompressionMethod(int val) argument
108 setJunkPath(bool val) argument
110 setOutputAPKFile(const char* val) argument
112 setManifestPackageNameOverride(const char * val) argument
114 setInstrumentationPackageNameOverride(const char * val) argument
116 setAutoAddOverlay(bool val) argument
118 setGenDependencies(bool val) argument
120 setErrorOnFailedInsert(bool val) argument
122 setErrorOnMissingConfigEntry(bool val) argument
150 addConfigurations(const char* val) argument
152 setPreferredDensity(const char* val) argument
153 addSplitConfigurations(const char* val) argument
169 setManifestMinSdkVersion(const char* val) argument
171 setMinSdkVersion(const char* val) argument
173 setTargetSdkVersion(const char* val) argument
175 setMaxSdkVersion(const char* val) argument
177 setVersionCode(const char* val) argument
179 setVersionName(const char* val) argument
181 setReplaceVersion(bool val) argument
183 setRevisionCode(const char* val) argument
185 setCustomPackage(const char* val) argument
187 setExtraPackages(const char* val) argument
189 setMaxResVersion(const char * val) argument
191 setDebugMode(bool val) argument
193 setNonConstantId(bool val) argument
195 setProduct(const char * val) argument
196 setUseCrunchCache(bool val) argument
199 setOutputTextSymbols(const char* val) argument
201 setSingleCrunchInputFile(const char* val) argument
203 setSingleCrunchOutputFile(const char* val) argument
205 setBuildSharedLibrary(bool val) argument
[all...]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DLoadConst_16.c28 void LoadConst_16(const LVM_INT16 val, argument
36 *dst = val;
H A DLoadConst_32.c28 void LoadConst_32(const LVM_INT32 val, argument
36 *dst = val;
H A DShift_Sat_v32xv32.c28 void Shift_Sat_v32xv32 (const LVM_INT16 val, argument
36 if(val>0)
45 b=(a<<val);
47 if( (b>>val) != a ) /* if overflow occured, right shift will show difference*/
63 else if(val<0)
65 RShift=(LVM_INT16)(-val);
H A DMult3s_32x16.c30 const LVM_INT16 val,
42 MUL32x16INTO32(srcval,val,temp,15)
29 Mult3s_32x16( const LVM_INT32 *src, const LVM_INT16 val, LVM_INT32 *dst, LVM_INT16 n) argument
H A Dmult3s_16x16.c29 const LVM_INT16 val,
38 temp = (LVM_INT32)(*src) * (LVM_INT32)val;
28 Mult3s_16x16( const LVM_INT16 *src, const LVM_INT16 val, LVM_INT16 *dst, LVM_INT16 n) argument
H A DShift_Sat_v16xv16.c28 void Shift_Sat_v16xv16 (const LVM_INT16 val, argument
36 if(val>0)
43 temp = temp << val;
60 else if(val<0)
62 RShift=(LVM_INT16)(-val);
/frameworks/base/core/java/android/util/
H A DPathParser.java63 float[] val = getFloats(s);
64 addNode(list, s.charAt(0), val);
148 private static void addNode(ArrayList<PathDataNode> list, char cmd, float[] val) { argument
149 list.add(new PathDataNode(cmd, val));
309 char previousCmd, char cmd, float[] val) {
364 for (int k = 0; k < val.length; k += incr) {
367 path.rMoveTo(val[k + 0], val[k + 1]);
368 currentX += val[k + 0];
369 currentY += val[
308 addCommand(Path path, float[] current, char previousCmd, char cmd, float[] val) argument
[all...]
/frameworks/base/libs/androidfw/tests/
H A DTheme_test.cpp46 Res_value val; local
47 ASSERT_GE(theme1.getAttribute(android::R::attr::background, &val), 0);
48 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType);
49 ASSERT_EQ(uint32_t(0xffff0000), val.data);
50 ASSERT_GE(theme1.getAttribute(app::R::attr::number, &val), 0);
51 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType);
52 ASSERT_EQ(uint32_t(1), val.data);
60 ASSERT_GE(theme2.getAttribute(android::R::attr::background, &val), 0);
61 ASSERT_EQ(Res_value::TYPE_INT_COLOR_RGB8, val.dataType);
62 ASSERT_EQ(uint32_t(0xffff0000), val
[all...]
H A DResTable_test.cpp72 Res_value val; local
74 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags);
76 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType);
77 ASSERT_EQ(uint32_t(100), val.data);
79 index = theme.getAttribute(base::R::attr::attr2, &val, &specFlags);
81 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType);
82 ASSERT_EQ(base::R::integer::number1, val.data);
92 Res_value val; local
94 ssize_t index = theme.getAttribute(base::R::attr::attr1, &val, &specFlags);
96 ASSERT_EQ(Res_value::TYPE_INT_DEC, val
112 Res_value val; local
124 Res_value val; local
140 Res_value val; local
168 Res_value val; local
200 Res_value val; local
[all...]
H A DTestHelpers.cpp26 Res_value val; local
27 ssize_t block = table.getResource(resourceId, &val, MAY_NOT_BE_BAG);
32 if (val.dataType != Res_value::TYPE_STRING) {
41 const String8 actual = pool->string8ObjectAt(val.data);
/frameworks/av/media/libeffects/loudness/common/core/
H A Dbyte_swapper.h42 static T Swap(const T &val) { argument
43 T new_val = val;
56 static T Swap(const T &val) { argument
57 return val;
63 static T Swap(const T &val) { argument
65 const char *o = (const char *)&val;
75 static T Swap(const T &val) { argument
77 const char *o = (const char *)&val;
89 static T Swap(const T &val) { argument
90 T new_val = val;
106 SwapBytes(const T &val, bool force_swap) argument
[all...]
H A Dmath.h37 inline float fast_log2(float val) { argument
38 int* const exp_ptr = reinterpret_cast <int *> (&val);
44 val = ((-1.0f / 3) * val + 2) * val - 2.0f / 3;
45 return static_cast<float>(val + log_2);
49 inline float fast_log(float val) { argument
50 return fast_log2(val) *
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
H A DSize.java93 private final Point val; field in class:Size
99 val = new Point(width, height);
107 val = new Point(0, 0);
109 val = new Point(other.width(), other.height());
120 val = new Point(0, 0);
122 val = new Point(other.width, other.height);
133 val = new Point(0, 0);
135 val = new Point(other.getWidth(), other.getHeight());
146 val = new Point(0, 0);
148 val
[all...]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
H A DPowerCommand.java52 int val;
54 val = BatteryManager.BATTERY_PLUGGED_AC |
59 val = 0;
61 val = BatteryManager.BATTERY_PLUGGED_USB;
63 val = BatteryManager.BATTERY_PLUGGED_AC;
65 val = BatteryManager.BATTERY_PLUGGED_WIRELESS;
70 if (val != 0) {
75 pm.setStayOnSetting(val);
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java52 public void addDays(int val) { argument
53 mTime += val * DAY_IN_MILLIS;
56 public void addWeeks(int val) { argument
57 mTime += val * WEEK_IN_MILLIS;
60 public void addMonths(int val) { argument
61 mTime += val * MONTH_IN_MILLIS;
64 public void addYears(int val) { argument
65 mTime += val * YEAR_IN_MILLIS;
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
H A DUT_struct.java38 int val = 100;
39 i.x = val;
40 i.y = val;
43 s.invoke_struct_test(val);
47 val = 200;
48 p.set_x(0, val, true);
49 p.set_y(0, val, true);
50 s.invoke_struct_test(val);
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
H A DUT_struct.java38 int val = 100;
39 i.x = val;
40 i.y = val;
43 s.invoke_struct_test(val);
47 val = 200;
48 p.set_x(0, val, true);
49 p.set_y(0, val, true);
50 s.invoke_struct_test(val);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiSsid.java67 int val;
69 val = Integer.parseInt(hexStr.substring(i, i + 2), HEX_RADIX);
71 val = 0;
73 a.octets.write(val);
82 int val = 0;
116 val = Integer.parseInt(asciiEncoded.substring(i, i + 2), HEX_RADIX);
118 val = -1;
120 if (val < 0) {
121 val = Character.digit(asciiEncoded.charAt(i), HEX_RADIX);
122 if (val <
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dset_sign.cpp177 Word16 val, min;
183 val = dn[i];
185 if (val >= 0) {
189 val = negate(val);
191 dn[i] = val; // modify dn[] according to the fixed sign
192 dn2[i] = val;
206 val = sub(dn2[j], min);
208 if (val < 0)
252 Word16 val, mi local
498 Word16 val; local
[all...]
/frameworks/base/core/java/android/os/
H A DParcel.java255 private static native void nativeWriteInt(long nativePtr, int val); argument
256 private static native void nativeWriteLong(long nativePtr, long val); argument
257 private static native void nativeWriteFloat(long nativePtr, float val); argument
258 private static native void nativeWriteDouble(long nativePtr, double val); argument
259 private static native void nativeWriteString(long nativePtr, String val); argument
260 private static native void nativeWriteStrongBinder(long nativePtr, IBinder val); argument
261 private static native void nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); argument
509 public final void writeInt(int val) { argument
510 nativeWriteInt(mNativePtr, val);
517 public final void writeLong(long val) { argument
525 writeFloat(float val) argument
533 writeDouble(double val) argument
541 writeString(String val) argument
550 writeCharSequence(CharSequence val) argument
558 writeStrongBinder(IBinder val) argument
566 writeStrongInterface(IInterface val) argument
580 writeFileDescriptor(FileDescriptor val) argument
588 writeByte(byte val) argument
603 writeMap(Map val) argument
611 writeMapInternal(Map<String,Object> val) argument
628 writeArrayMapInternal(ArrayMap<String, Object> val) argument
655 writeArrayMap(ArrayMap<String, Object> val) argument
663 writeBundle(Bundle val) argument
676 writePersistableBundle(PersistableBundle val) argument
689 writeSize(Size val) argument
698 writeSizeF(SizeF val) argument
708 writeList(List val) argument
727 writeArray(Object[] val) argument
747 writeSparseArray(SparseArray<Object> val) argument
762 writeSparseBooleanArray(SparseBooleanArray val) argument
777 writeBooleanArray(boolean[] val) argument
805 readBooleanArray(boolean[] val) argument
816 writeCharArray(char[] val) argument
841 readCharArray(char[] val) argument
852 writeIntArray(int[] val) argument
877 readIntArray(int[] val) argument
888 writeLongArray(long[] val) argument
914 readLongArray(long[] val) argument
925 writeFloatArray(float[] val) argument
951 readFloatArray(float[] val) argument
962 writeDoubleArray(double[] val) argument
988 readDoubleArray(double[] val) argument
999 writeStringArray(String[] val) argument
1024 readStringArray(String[] val) argument
1035 writeBinderArray(IBinder[] val) argument
1050 writeCharSequenceArray(CharSequence[] val) argument
1075 readBinderArray(IBinder[] val) argument
1100 writeTypedList(List<T> val) argument
1131 writeStringList(List<String> val) argument
1156 writeBinderList(List<IBinder> val) argument
1188 writeTypedArray(T[] val, int parcelableFlags) argument
1769 readByteArray(byte[] val) argument
2080 readTypedArray(T[] val, Parcelable.Creator<T> c) argument
[all...]
/frameworks/compile/mclinker/lib/Target/Mips/
H A DMipsGNUInfo.cpp52 uint64_t val = llvm::ELF::EF_MIPS_NOREORDER | m_PICFlags; local
55 val |= llvm::ELF::EF_MIPS_ARCH_32R2 | llvm::ELF::EF_MIPS_ABI_O32;
57 val |= llvm::ELF::EF_MIPS_ARCH_64R2;
59 return val;

Completed in 644 milliseconds

12345678910