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

1234567891011>>

/frameworks/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java34 public void addDays(int val) { argument
35 mTime += val * DAY_IN_MILLIS;
38 public void addWeeks(int val) { argument
39 mTime += val * WEEK_IN_MILLIS;
42 public void addMonths(int val) { argument
43 mTime += val * MONTH_IN_MILLIS;
46 public void addYears(int val) { argument
47 mTime += val * YEAR_IN_MILLIS;
/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/support/v4/java/android/support/v4/content/res/
H A DTypedArrayUtils.java33 boolean val = a.getBoolean(fallbackIndex, defaultValue);
34 return a.getBoolean(index, val);
39 Drawable val = a.getDrawable(index);
40 if (val == null) {
41 val = a.getDrawable(fallbackIndex);
43 return val;
48 int val = a.getInt(fallbackIndex, defaultValue);
49 return a.getInt(index, val);
54 int val = a.getResourceId(fallbackIndex, defaultValue);
55 return a.getResourceId(index, val);
[all...]
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
H A DPublicFinalWithObservableTestVo.java31 private int val = R.string.app_name; field in class:PublicFinalWithObservableTestVo.MyVo
34 return val;
37 public void setVal(int val) { argument
38 this.val = val;
39 notifyPropertyChanged(BR.val);
/frameworks/base/tools/aapt/
H A DBundle.h85 void setVerbose(bool val) { mVerbose = val; } argument
87 void setAndroidList(bool val) { mAndroidList = val; } argument
89 void setForce(bool val) { mForce = val; } argument
90 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } argument
93 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } argument
95 setUpdate(bool val) argument
97 setExtending(bool val) argument
99 setRequireLocalization(bool val) argument
101 setPseudolocalize(short val) argument
102 setWantUTF16(bool val) argument
104 setValues(bool val) argument
106 setIncludeMetaData(bool val) argument
108 setCompressionMethod(int val) argument
110 setJunkPath(bool val) argument
112 setOutputAPKFile(const char* val) argument
114 setManifestPackageNameOverride(const char * val) argument
116 setInstrumentationPackageNameOverride(const char * val) argument
118 setAutoAddOverlay(bool val) argument
120 setGenDependencies(bool val) argument
122 setErrorOnFailedInsert(bool val) argument
124 setErrorOnMissingConfigEntry(bool val) argument
160 addConfigurations(const char* val) argument
162 setPreferredDensity(const char* val) argument
163 addSplitConfigurations(const char* val) argument
179 setManifestMinSdkVersion(const char* val) argument
181 setMinSdkVersion(const char* val) argument
183 setTargetSdkVersion(const char* val) argument
185 setMaxSdkVersion(const char* val) argument
187 setVersionCode(const char* val) argument
189 setVersionName(const char* val) argument
191 setReplaceVersion(bool val) argument
193 setRevisionCode(const char* val) argument
195 setCustomPackage(const char* val) argument
197 setExtraPackages(const char* val) argument
199 setMaxResVersion(const char * val) argument
201 setDebugMode(bool val) argument
203 setNonConstantId(bool val) argument
205 setSkipSymbolsWithoutDefaultLocalization(bool val) argument
207 setProduct(const char * val) argument
208 setUseCrunchCache(bool val) argument
211 setOutputTextSymbols(const char* val) argument
213 setSingleCrunchInputFile(const char* val) argument
215 setSingleCrunchOutputFile(const char* val) argument
217 setBuildSharedLibrary(bool val) argument
219 setBuildAppAsSharedLibrary(bool val) argument
220 setNoVersionVectors(bool val) argument
[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/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
/frameworks/base/libs/androidfw/tests/
H A DAppAsLib_test.cpp35 Res_value val; local
36 ssize_t block = table.getResource(appaslib::R::app::integer::number1, &val);
38 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType);
39 ASSERT_EQ(appaslib::R::app::array::integerArray1, val.data);
48 Res_value val; local
49 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val);
51 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType);
52 ASSERT_EQ(appaslib::R::lib::array::integerArray1, val.data);
61 Res_value val; local
62 ssize_t block = table.getResource(appaslib::R::lib::integer::number1, &val);
[all...]
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...]
/frameworks/support/graphics/drawable/static/src/android/support/graphics/drawable/
H A DPathParser.java92 float[] val = getFloats(s);
93 addNode(list, s.charAt(0), val);
177 private static void addNode(ArrayList<PathDataNode> list, char cmd, float[] val) { argument
178 list.add(new PathDataNode(cmd, val));
340 char previousCmd, char cmd, float[] val) {
395 for (int k = 0; k < val.length; k += incr) {
398 currentX += val[k + 0];
399 currentY += val[k + 1];
404 path.rLineTo(val[k + 0], val[
339 addCommand(Path path, float[] current, char previousCmd, char cmd, float[] val) argument
[all...]
/frameworks/av/services/audioflinger/
H A DAudioResamplerFirProcessNeon.h145 posSamp.val[0] = vrev64q_s16(posSamp.val[0]);
146 posSamp.val[1] = vrev64q_s16(posSamp.val[1]);
149 accum = vmlal_s16(accum, vget_low_s16(posSamp.val[0]), vget_high_s16(posCoef)); // r
150 accum = vmlal_s16(accum, vget_high_s16(posSamp.val[0]), vget_low_s16(posCoef)); // r
151 accum2 = vmlal_s16(accum2, vget_low_s16(posSamp.val[1]), vget_high_s16(posCoef)); // r
152 accum2 = vmlal_s16(accum2, vget_high_s16(posSamp.val[1]), vget_low_s16(posCoef)); // r
153 accum = vmlal_s16(accum, vget_low_s16(negSamp.val[0]), vget_low_s16(negCoef));
154 accum = vmlal_s16(accum, vget_high_s16(negSamp.val[
[all...]
/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/native/include/binder/
H A DParcel.h104 status_t writeInt32(int32_t val);
105 status_t writeUint32(uint32_t val);
106 status_t writeInt64(int64_t val);
107 status_t writeUint64(uint64_t val);
108 status_t writeFloat(float val);
109 status_t writeDouble(double val);
115 status_t writeStrongBinder(const sp<IBinder>& val);
116 status_t writeWeakBinder(const wp<IBinder>& val);
117 status_t writeInt32Array(size_t len, const int32_t *val);
118 status_t writeByteArray(size_t len, const uint8_t *val);
465 const Flattenable<T>& val; member in class:android::Parcel::FlattenableHelper
466 FlattenableHelper(const Flattenable<T>& val) argument
511 write(const Flattenable<T>& val) argument
517 write(const LightFlattenable<T>& val) argument
578 unsafeReadTypedVector( std::vector<T>* val, status_t(Parcel::*read_func)(U*) const) const argument
606 readTypedVector(std::vector<T>* val, status_t(Parcel::*read_func)(T*) const) const argument
612 readNullableTypedVector(std::unique_ptr<std::vector<T>>* val, status_t(Parcel::*read_func)(T*) const) const argument
636 unsafeWriteTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(U)) argument
660 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(const T&)) argument
666 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(T)) argument
672 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(const T&)) argument
682 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(T)) argument
748 writeParcelableVector(const std::vector<T>& val) argument
753 writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) argument
[all...]
/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/data-binding/compiler/src/main/kotlin/android/databinding/tool/ext/
H A Dext.kt20 private class LazyExt<K, T>(private val initializer: (k : K) -> T) : ReadOnlyProperty<K, T> {
21 private val mapping = hashMapOf<K, T>()
23 val t = mapping[thisRef]
27 val result = initializer(thisRef)
33 private class VersionedLazyExt<K, T>(private val initializer: (k : K) -> T) : ReadOnlyProperty<K, T> {
34 private val mapping = hashMapOf<K, VersionedResult<T>>()
37 val t = mapping[thisRef]
38 val version = if(thisRef is VersionProvider) thisRef.version else 1
42 val result = initializer(thisRef)
48 data class VersionedResult<T>(val versio
[all...]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
H A DBRWriter.kt21 class BRWriter(properties: Set<String>, val useFinal : Boolean) {
22 val indexedProps = properties.sorted().withIndex()
24 val klass: String by lazy {
26 val prefix = if (useFinal) "final " else "";
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DSystemPropertyService.java27 public void set(String key, String val) { argument
28 android.os.SystemProperties.set(key, val);
/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);

Completed in 652 milliseconds

1234567891011>>