/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UnixCalendar.java | 34 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 D | imgprocutil.h | 27 inline int clamp(int min, int val, int max) { argument 28 return val < min ? min : (val > max ? max : val);
|
/frameworks/base/cmds/incidentd/src/ |
H A D | protobuf.cpp | 20 write_raw_varint(uint8_t* buf, uint32_t val) argument 24 if ((val & ~0x7F) == 0) { 25 *p++ = (uint8_t)val; 28 *p++ = (uint8_t)((val & 0x7F) | 0x80); 29 val >>= 7;
|
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
H A D | BluetoothTestRunner.java | 86 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/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/ |
H A D | reduce_common.rsh | 37 static void find_min_user_type_accum(user_t *accum, const user_t val) { 38 if (val.a + val.b * multiplier < accum->a + accum->b * multiplier) { 39 accum->a = val.a; 40 accum->b = val.b; 49 static void find_min_user_type_comb(user_t *accum, const user_t *val) { 50 if (val->a + val->b * multiplier < accum->a + accum->b * multiplier) { 51 accum->a = val->a; 52 accum->b = val [all...] |
/frameworks/base/tools/aapt/ |
H A D | Bundle.h | 86 void setVerbose(bool val) { mVerbose = val; } argument 88 void setAndroidList(bool val) { mAndroidList = val; } argument 90 void setForce(bool val) { mForce = val; } argument 91 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } argument 94 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } argument 96 setUpdate(bool val) argument 98 setExtending(bool val) argument 100 setRequireLocalization(bool val) argument 102 setPseudolocalize(short val) argument 103 setWantUTF16(bool val) argument 105 setValues(bool val) argument 107 setIncludeMetaData(bool val) argument 109 setCompressionMethod(int val) argument 111 setJunkPath(bool val) argument 113 setOutputAPKFile(const char* val) argument 115 setManifestPackageNameOverride(const char * val) argument 117 setInstrumentationPackageNameOverride(const char * val) argument 119 setAutoAddOverlay(bool val) argument 121 setGenDependencies(bool val) argument 123 setErrorOnFailedInsert(bool val) argument 125 setErrorOnMissingConfigEntry(bool val) argument 161 addConfigurations(const char* val) argument 163 setPreferredDensity(const char* val) argument 164 addSplitConfigurations(const char* val) argument 180 setManifestMinSdkVersion(const char* val) argument 182 setMinSdkVersion(const char* val) argument 184 setTargetSdkVersion(const char* val) argument 186 setMaxSdkVersion(const char* val) argument 188 setVersionCode(const char* val) argument 190 setVersionName(const char* val) argument 192 setReplaceVersion(bool val) argument 194 setRevisionCode(const char* val) argument 196 setCustomPackage(const char* val) argument 198 setExtraPackages(const char* val) argument 200 setMaxResVersion(const char * val) argument 202 setDebugMode(bool val) argument 204 setNonConstantId(bool val) argument 206 setSkipSymbolsWithoutDefaultLocalization(bool val) argument 208 setProduct(const char * val) argument 209 setUseCrunchCache(bool val) argument 212 setOutputTextSymbols(const char* val) argument 214 setSingleCrunchInputFile(const char* val) argument 216 setSingleCrunchOutputFile(const char* val) argument 218 setBuildSharedLibrary(bool val) argument 220 setBuildAppAsSharedLibrary(bool val) argument 221 setNoVersionVectors(bool val) argument 223 setNoVersionTransitions(bool val) argument [all...] |
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
H A D | PublicFinalWithObservableTestVo.java | 31 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/av/media/libeffects/lvm/lib/Common/src/ |
H A D | LoadConst_16.c | 28 void LoadConst_16(const LVM_INT16 val, argument 36 *dst = val;
|
H A D | LoadConst_32.c | 28 void LoadConst_32(const LVM_INT32 val, argument 36 *dst = val;
|
H A D | Shift_Sat_v32xv32.c | 28 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 D | Mult3s_32x16.c | 30 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 D | mult3s_16x16.c | 29 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/core/java/android/util/proto/ |
H A D | ProtoOutputStream.java | 269 * @param val The value. 271 public void write(long fieldId, double val) { argument 278 writeDoubleImpl(id, (double)val); 282 writeRepeatedDoubleImpl(id, (double)val); 286 writeFloatImpl(id, (float)val); 290 writeRepeatedFloatImpl(id, (float)val); 294 writeInt32Impl(id, (int)val); 298 writeRepeatedInt32Impl(id, (int)val); 302 writeInt64Impl(id, (long)val); 306 writeRepeatedInt64Impl(id, (long)val); 406 write(long fieldId, float val) argument 541 write(long fieldId, int val) argument 676 write(long fieldId, long val) argument 809 write(long fieldId, boolean val) argument 838 write(long fieldId, String val) argument 867 write(long fieldId, byte[] val) argument 935 writeDouble(long fieldId, double val) argument 942 writeDoubleImpl(int id, double val) argument 955 writeRepeatedDouble(long fieldId, double val) argument 962 writeRepeatedDoubleImpl(int id, double val) argument 973 writePackedDouble(long fieldId, double[] val) argument 999 writeFloat(long fieldId, float val) argument 1006 writeFloatImpl(int id, float val) argument 1019 writeRepeatedFloat(long fieldId, float val) argument 1026 writeRepeatedFloatImpl(int id, float val) argument 1037 writePackedFloat(long fieldId, float[] val) argument 1068 writeUnsignedVarintFromSignedInt(int val) argument 1086 writeInt32(long fieldId, int val) argument 1093 writeInt32Impl(int id, int val) argument 1110 writeRepeatedInt32(long fieldId, int val) argument 1117 writeRepeatedInt32Impl(int id, int val) argument 1132 writePackedInt32(long fieldId, int[] val) argument 1164 writeInt64(long fieldId, long val) argument 1171 writeInt64Impl(int id, long val) argument 1184 writeRepeatedInt64(long fieldId, long val) argument 1191 writeRepeatedInt64Impl(int id, long val) argument 1202 writePackedInt64(long fieldId, long[] val) argument 1233 writeUInt32(long fieldId, int val) argument 1240 writeUInt32Impl(int id, int val) argument 1253 writeRepeatedUInt32(long fieldId, int val) argument 1260 writeRepeatedUInt32Impl(int id, int val) argument 1271 writePackedUInt32(long fieldId, int[] val) argument 1302 writeUInt64(long fieldId, long val) argument 1309 writeUInt64Impl(int id, long val) argument 1322 writeRepeatedUInt64(long fieldId, long val) argument 1329 writeRepeatedUInt64Impl(int id, long val) argument 1340 writePackedUInt64(long fieldId, long[] val) argument 1371 writeSInt32(long fieldId, int val) argument 1378 writeSInt32Impl(int id, int val) argument 1391 writeRepeatedSInt32(long fieldId, int val) argument 1398 writeRepeatedSInt32Impl(int id, int val) argument 1409 writePackedSInt32(long fieldId, int[] val) argument 1440 writeSInt64(long fieldId, long val) argument 1447 writeSInt64Impl(int id, long val) argument 1460 writeRepeatedSInt64(long fieldId, long val) argument 1467 writeRepeatedSInt64Impl(int id, long val) argument 1478 writePackedSInt64(long fieldId, long[] val) argument 1508 writeFixed32(long fieldId, int val) argument 1515 writeFixed32Impl(int id, int val) argument 1528 writeRepeatedFixed32(long fieldId, int val) argument 1535 writeRepeatedFixed32Impl(int id, int val) argument 1546 writePackedFixed32(long fieldId, int[] val) argument 1572 writeFixed64(long fieldId, long val) argument 1579 writeFixed64Impl(int id, long val) argument 1592 writeRepeatedFixed64(long fieldId, long val) argument 1599 writeRepeatedFixed64Impl(int id, long val) argument 1610 writePackedFixed64(long fieldId, long[] val) argument 1635 writeSFixed32(long fieldId, int val) argument 1642 writeSFixed32Impl(int id, int val) argument 1655 writeRepeatedSFixed32(long fieldId, int val) argument 1662 writeRepeatedSFixed32Impl(int id, int val) argument 1673 writePackedSFixed32(long fieldId, int[] val) argument 1699 writeSFixed64(long fieldId, long val) argument 1706 writeSFixed64Impl(int id, long val) argument 1719 writeRepeatedSFixed64(long fieldId, long val) argument 1726 writeRepeatedSFixed64Impl(int id, long val) argument 1737 writePackedSFixed64(long fieldId, long[] val) argument 1763 writeBool(long fieldId, boolean val) argument 1770 writeBoolImpl(int id, boolean val) argument 1784 writeRepeatedBool(long fieldId, boolean val) argument 1791 writeRepeatedBoolImpl(int id, boolean val) argument 1802 writePackedBool(long fieldId, boolean[] val) argument 1832 writeString(long fieldId, String val) argument 1839 writeStringImpl(int id, String val) argument 1851 writeRepeatedString(long fieldId, String val) argument 1858 writeRepeatedStringImpl(int id, String val) argument 1869 writeUtf8String(int id, String val) argument 1893 writeBytes(long fieldId, byte[] val) argument 1900 writeBytesImpl(int id, byte[] val) argument 1913 writeRepeatedBytes(long fieldId, byte[] val) argument 1920 writeRepeatedBytesImpl(int id, byte[] val) argument 1939 writeEnum(long fieldId, int val) argument 1946 writeEnumImpl(int id, int val) argument 1959 writeRepeatedEnum(long fieldId, int val) argument 1966 writeRepeatedEnumImpl(int id, int val) argument 1977 writePackedEnum(long fieldId, int[] val) argument [all...] |
H A D | EncodedBuffer.java | 263 public void writeRawByte(byte val) { argument 267 mWriteBuffer[mWriteIndex++] = val; 273 public static int getRawVarint32Size(int val) { argument 274 if ((val & (0xffffffff << 7)) == 0) return 1; 275 if ((val & (0xffffffff << 14)) == 0) return 2; 276 if ((val & (0xffffffff << 21)) == 0) return 3; 277 if ((val & (0xffffffff << 28)) == 0) return 4; 284 * @param val treated as unsigned. 286 public void writeRawVarint32(int val) { argument 288 if ((val 301 getRawZigZag32Size(int val) argument 310 writeRawZigZag32(int val) argument 317 getRawVarint64Size(long val) argument 333 writeRawVarint64(long val) argument 348 getRawZigZag64Size(long val) argument 355 writeRawZigZag64(long val) argument 362 writeRawFixed32(int val) argument 372 writeRawFixed64(long val) argument 386 writeRawBuffer(byte[] val) argument 395 writeRawBuffer(byte[] val, int offset, int length) argument 530 editRawFixed32(int pos, int val) argument 544 zigZag32(int val) argument 551 zigZag64(long val) argument [all...] |
/frameworks/support/compat/java/android/support/v4/graphics/ |
H A D | PathParser.java | 102 float[] val = getFloats(s); 103 addNode(list, s.charAt(0), val); 187 private static void addNode(ArrayList<PathDataNode> list, char cmd, float[] val) { argument 188 list.add(new PathDataNode(cmd, val)); 362 char previousCmd, char cmd, float[] val) { 417 for (int k = 0; k < val.length; k += incr) { 420 currentX += val[k + 0]; 421 currentY += val[k + 1]; 426 path.rLineTo(val[k + 0], val[ 361 addCommand(Path path, float[] current, char previousCmd, char cmd, float[] val) argument [all...] |
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerFirProcessNeon.h | 145 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/base/core/java/android/os/ |
H A D | HwParcel.java | 50 public native final void writeBool(boolean val); argument 51 public native final void writeInt8(byte val); argument 52 public native final void writeInt16(short val); argument 53 public native final void writeInt32(int val); argument 54 public native final void writeInt64(long val); argument 55 public native final void writeFloat(float val); argument 56 public native final void writeDouble(double val); argument 57 public native final void writeString(String val); argument 59 private native final void writeBoolVector(boolean[] val); argument 60 private native final void writeInt8Vector(byte[] val); argument 61 writeInt16Vector(short[] val) argument 62 writeInt32Vector(int[] val) argument 63 writeInt64Vector(long[] val) argument 64 writeFloatVector(float[] val) argument 65 writeDoubleVector(double[] val) argument 66 writeStringVector(String[] val) argument 68 writeBoolVector(ArrayList<Boolean> val) argument 78 writeInt8Vector(ArrayList<Byte> val) argument 88 writeInt16Vector(ArrayList<Short> val) argument 98 writeInt32Vector(ArrayList<Integer> val) argument 108 writeInt64Vector(ArrayList<Long> val) argument 118 writeFloatVector(ArrayList<Float> val) argument 128 writeDoubleVector(ArrayList<Double> val) argument 138 writeStringVector(ArrayList<String> val) argument [all...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | AppAsLib_test.cpp | 37 Res_value val; local 38 ssize_t block = table.getResource(app::R::integer::number1, &val); 40 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 41 ASSERT_EQ(app::R::array::integerArray1, val.data); 56 Res_value val; local 57 ssize_t block = table.getResource(lib::R::integer::number1, &val); 59 ASSERT_EQ(Res_value::TYPE_REFERENCE, val.dataType); 60 ASSERT_EQ(lib::R::array::integerArray1, val.data); 75 Res_value val; local 76 ssize_t block = table.getResource(lib::R::integer::number1, &val); [all...] |
/frameworks/av/media/libeffects/loudness/common/core/ |
H A D | byte_swapper.h | 42 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 D | math.h | 37 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/libs/binder/ |
H A D | TextOutput.cpp | 45 TextOutput& operator<<(TextOutput& to, const TypeCode& val) argument 47 printTypeCode(val.typeCode(), textOutputPrinter, (void*)&to); 64 TextOutput& operator<<(TextOutput& to, const HexDump& val) argument 66 printHexData(0, val.buffer(), val.size(), val.bytesPerLine(), 67 val.singleLineCutoff(), val.alignment(), val.carrayStyle(),
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
H A D | Size.java | 93 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/native/include/binder/ |
H A 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); 521 const Flattenable<T>& val; member in class:android::Parcel::FlattenableHelper 569 write(const Flattenable<T>& val) argument 575 write(const LightFlattenable<T>& val) argument 623 writeVectorSize(const std::vector<T>& val) argument 631 writeVectorSize(const std::unique_ptr<std::vector<T>>& val) argument 703 unsafeReadTypedVector( std::vector<T>* val, status_t(Parcel::*read_func)(U*) const) const argument 739 readTypedVector(std::vector<T>* val, status_t(Parcel::*read_func)(T*) const) const argument 745 readNullableTypedVector(std::unique_ptr<std::vector<T>>* val, status_t(Parcel::*read_func)(T*) const) const argument 769 unsafeWriteTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(U)) argument 793 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(const T&)) argument 799 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(T)) argument 805 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(const T&)) argument 815 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(T)) argument 881 writeParcelableVector(const std::vector<T>& val) argument 886 writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) argument 895 writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) argument [all...] |
/frameworks/native/libs/binder/include/binder/ |
H A 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); 521 const Flattenable<T>& val; member in class:android::Parcel::FlattenableHelper 569 write(const Flattenable<T>& val) argument 575 write(const LightFlattenable<T>& val) argument 623 writeVectorSize(const std::vector<T>& val) argument 631 writeVectorSize(const std::unique_ptr<std::vector<T>>& val) argument 703 unsafeReadTypedVector( std::vector<T>* val, status_t(Parcel::*read_func)(U*) const) const argument 739 readTypedVector(std::vector<T>* val, status_t(Parcel::*read_func)(T*) const) const argument 745 readNullableTypedVector(std::unique_ptr<std::vector<T>>* val, status_t(Parcel::*read_func)(T*) const) const argument 769 unsafeWriteTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(U)) argument 793 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(const T&)) argument 799 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(T)) argument 805 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(const T&)) argument 815 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(T)) argument 881 writeParcelableVector(const std::vector<T>& val) argument 886 writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) argument 895 writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) argument [all...] |
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/ext/ |
H A D | ext.kt | 20 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...] |