/frameworks/base/media/java/android/media/ |
H A D | Metadata.java | 528 * Check val is either a system id or a custom one. 529 * @param val Metadata key to test. 532 private boolean checkMetadataId(final int val) { argument 533 if (val <= ANY || (LAST_SYSTEM < val && val < FIRST_CUSTOM)) { 534 Log.e(TAG, "Invalid metadata ID " + val);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AnyMotionDetector.java | 424 public Vector3 times(float val) { argument 425 return new Vector3(timeMillisSinceBoot, x * val, y * val, z * val);
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | BrightnessMappingStrategy.java | 276 * Returns the index of the first value that's less than or equal to {@code val}. 279 * than val, then it will return the length of arr as the insertion point. 281 private static int findInsertionPoint(float[] arr, float val) { argument 283 if (val <= arr[i]) {
|
/frameworks/base/tests/UsbTests/src/com/android/server/usb/ |
H A D | UsbHandlerTest.java | 111 protected void putGlobalSettings(ContentResolver resolver, String setting, int val) { argument 112 mMockGlobalSettings.put(setting, val);
|
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 490 const char16_t* val = block->getAttributeStringValue(i, &len); local 491 if (val != NULL) { 492 printf(" (Raw: \"%s\")", ResTable::normalizeForOutput(String8(val).string()).
|
/frameworks/base/tools/aapt2/ |
H A D | Resource.h | 280 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceType& val) { argument 281 return out << to_string(val);
|
H A D | ResourceValues.cpp | 386 BinaryPrimitive::BinaryPrimitive(const android::Res_value& val) : value(val) { argument 538 constexpr T* add_pointer(T& val) { argument 539 return &val; 765 android::Res_value val = {}; local 766 item.Flatten(&val); 768 const uint32_t flattened_data = util::DeviceToHost32(val.data); 771 const uint32_t actual_type = ResourceUtils::AndroidTypeToAttributeTypeMask(val.dataType);
|
H A D | ResourceValues.h | 54 void SetWeak(bool val) { argument 55 weak_ = val; 60 void SetTranslatable(bool val) { argument 61 translatable_ = val; 281 explicit BinaryPrimitive(const android::Res_value& val);
|
/frameworks/base/tools/aapt2/format/proto/ |
H A D | ProtoSerialize.cpp | 436 android::Res_value val = {}; variable 437 prim->Flatten(&val); 441 switch (val.dataType) { 443 if (val.data == android::Res_value::DATA_NULL_UNDEFINED) { 445 } else if (val.data == android::Res_value::DATA_NULL_EMPTY) { 448 LOG(FATAL) << "Unexpected data value for TYPE_NULL BinaryPrimitive: " << val.data; 452 pb_prim->set_float_value(*(float*)&val.data); 455 pb_prim->set_dimension_value(val.data); 458 pb_prim->set_fraction_value(val.data); 461 pb_prim->set_int_decimal_value(static_cast<int32_t>(val [all...] |
/frameworks/native/cmds/rawbu/ |
H A D | backup.cpp | 173 static int write_int32(FILE* fh, int32_t val) argument 175 int res = fwrite(&val, 1, sizeof(val), fh); 176 if (res != sizeof(val)) { 184 static int write_int64(FILE* fh, int64_t val) argument 186 int res = fwrite(&val, 1, sizeof(val), fh); 187 if (res != sizeof(val)) { 417 int32_t val; local 418 if (fread(&val, 428 int64_t val; local [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); 523 const Flattenable<T>& val; member in class:android::Parcel::FlattenableHelper 571 write(const Flattenable<T>& val) argument 577 write(const LightFlattenable<T>& val) argument 625 writeVectorSize(const std::vector<T>& val) argument 633 writeVectorSize(const std::unique_ptr<std::vector<T>>& val) argument 705 unsafeReadTypedVector( std::vector<T>* val, status_t(Parcel::*read_func)(U*) const) const argument 741 readTypedVector(std::vector<T>* val, status_t(Parcel::*read_func)(T*) const) const argument 747 readNullableTypedVector(std::unique_ptr<std::vector<T>>* val, status_t(Parcel::*read_func)(T*) const) const argument 771 unsafeWriteTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(U)) argument 795 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(const T&)) argument 801 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(T)) argument 807 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(const T&)) argument 817 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(T)) argument 883 writeParcelableVector(const std::vector<T>& val) argument 888 writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) argument 897 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); 523 const Flattenable<T>& val; member in class:android::Parcel::FlattenableHelper 571 write(const Flattenable<T>& val) argument 577 write(const LightFlattenable<T>& val) argument 625 writeVectorSize(const std::vector<T>& val) argument 633 writeVectorSize(const std::unique_ptr<std::vector<T>>& val) argument 705 unsafeReadTypedVector( std::vector<T>* val, status_t(Parcel::*read_func)(U*) const) const argument 741 readTypedVector(std::vector<T>* val, status_t(Parcel::*read_func)(T*) const) const argument 747 readNullableTypedVector(std::unique_ptr<std::vector<T>>* val, status_t(Parcel::*read_func)(T*) const) const argument 771 unsafeWriteTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(U)) argument 795 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(const T&)) argument 801 writeTypedVector(const std::vector<T>& val, status_t(Parcel::*write_func)(T)) argument 807 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(const T&)) argument 817 writeNullableTypedVector(const std::unique_ptr<std::vector<T>>& val, status_t(Parcel::*write_func)(T)) argument 883 writeParcelableVector(const std::vector<T>& val) argument 888 writeParcelableVector(const std::unique_ptr<std::vector<std::unique_ptr<T>>>& val) argument 897 writeParcelableVector(const std::shared_ptr<std::vector<std::unique_ptr<T>>>& val) argument [all...] |
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceProcessor.java | 704 for (Long val: dtSet) { 705 setTimeFromLongValue(mIterator, val); 1308 private static final void setTimeFromLongValue(Time date, long val) { argument 1309 date.year = (int) (val >> 26); 1310 date.month = (int) (val >> 22) & 0xf; 1311 date.monthDay = (int) (val >> 17) & 0x1f; 1312 date.hour = (int) (val >> 12) & 0x1f; 1313 date.minute = (int) (val >> 6) & 0x3f; 1314 date.second = (int) (val & 0x3f);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | NetworkScanRequestTracker.java | 217 synchronized void setIsBinderDead(boolean val) { argument 218 mIsBinderDead = val;
|
/frameworks/rs/ |
H A D | rsScript.cpp | 59 void Script::setVar(uint32_t slot, const void *val, size_t len) { argument 60 //ALOGE("setVar %i %p %i", slot, val, len); 67 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); 70 void Script::getVar(uint32_t slot, const void *val, size_t len) { argument 71 //ALOGE("getVar %i %p %i", slot, val, len); 79 mRSC->mHal.funcs.script.getGlobalVar(mRSC, this, slot, (void *)val, len); 82 void Script::setVar(uint32_t slot, const void *val, size_t len, Element *e, argument 92 (void *)val, len, e, dims, dimLen); 95 void Script::setVarObj(uint32_t slot, ObjectBase *val) { argument 96 //ALOGE("setVarObj %i %p", slot, val); [all...] |
/frameworks/wilhelm/src/android/ |
H A D | android_AudioSfDecoder.cpp | 629 int32_t val; local 630 if (msg->findInt32(PLAYEREVENT_PREFETCHSTATUSCHANGE, &val)) { 631 SL_LOGV("\tASfPlayer notifying %s = %d", PLAYEREVENT_PREFETCHSTATUSCHANGE, val); 632 notifyClient(kEventPrefetchStatusChange, val, 0, notifyUser); 634 else if (msg->findInt32(PLAYEREVENT_PREFETCHFILLLEVELUPDATE, &val)) { 635 SL_LOGV("\tASfPlayer notifying %s = %d", PLAYEREVENT_PREFETCHFILLLEVELUPDATE, val); 636 notifyClient(kEventPrefetchFillLevelUpdate, val, 0, notifyUser); 638 else if (msg->findInt32(PLAYEREVENT_ENDOFSTREAM, &val)) { 639 SL_LOGV("\tASfPlayer notifying %s = %d", PLAYEREVENT_ENDOFSTREAM, val); 640 notifyClient(kEventEndOfStream, val, [all...] |
/frameworks/av/media/libaudioprocessing/ |
H A D | AudioResamplerFirGen.h | 153 double val = x * maxval; local 154 double ival = floor(val + 0.5 + err*0.2); 155 err = val - ival; 287 double val = Poly4(A, B, C, D, x, x2); 289 return val + Poly4(E, F, G, H, x, x2) * x4 + I * (x4 * x4);
|
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/ |
H A D | c4t64fx.c | 137 Word16 psk, ps, alpk, alp, val, k_cn, k_dn, exp; local 283 val = dn[i]; 293 dn[i] = -val; 348 val = extract_h(L_tmp); 351 if ((nb_pulse >= 12) && (val > 1024)) 728 val = (512 >> h_shift); /* codeword in Q9 format */ 738 code[i] += val; 742 code[i] -= val;
|
/frameworks/av/media/ndk/ |
H A D | NdkMediaExtractor.cpp | 219 int32_t val; local 220 if (meta->findInt32(kKeyIsSyncFrame, &val) && val != 0) {
|
H A D | NdkMediaFormat.cpp | 94 int32_t val; local 95 f->findInt32(name, &val); 96 ret.appendFormat("int32(%" PRId32 ")", val); 101 int64_t val; local 102 f->findInt64(name, &val); 103 ret.appendFormat("int64(%" PRId64 ")", val); 108 size_t val; local 109 f->findSize(name, &val); 110 ret.appendFormat("size_t(%zu)", val); 115 float val; local 122 double val; local 137 AString val; local [all...] |
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
H A D | LoadtestActivity.java | 565 private int sanitizeInt(int val, int min, int max) { argument 566 if (val > max) { 567 val = max; 568 } else if (val < min) { 569 val = min; 571 return val;
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiSelector.java | 361 * @param val Value to match 365 public UiSelector enabled(boolean val) { argument 366 return buildSelector(SELECTOR_ENABLED, val); 380 * @param val Value to match 384 public UiSelector focused(boolean val) { argument 385 return buildSelector(SELECTOR_FOCUSED, val); 399 * @param val Value to match 403 public UiSelector focusable(boolean val) { argument 404 return buildSelector(SELECTOR_FOCUSABLE, val); 418 * @param val Valu 422 scrollable(boolean val) argument 442 selected(boolean val) argument 462 checked(boolean val) argument 481 clickable(boolean val) argument 500 checkable(boolean val) argument 519 longClickable(boolean val) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_HwParcel.cpp | 315 JNIEnv *env, jobject thiz, Type val) { \ 319 status_t err = parcel->write ## Suffix(val); \ 329 Type val; \ 330 status_t err = parcel->read ## Suffix(&val); \ 333 return val; \ 355 bool val; local 356 status_t err = parcel->readBool(&val); 359 return (jboolean)val;
|
H A D | android_os_Parcel.cpp | 233 static void android_os_Parcel_writeInt(JNIEnv* env, jclass clazz, jlong nativePtr, jint val) { argument 236 const status_t err = parcel->writeInt32(val); 243 static void android_os_Parcel_writeLong(JNIEnv* env, jclass clazz, jlong nativePtr, jlong val) argument 247 const status_t err = parcel->writeInt64(val); 254 static void android_os_Parcel_writeFloat(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat val) argument 258 const status_t err = parcel->writeFloat(val); 265 static void android_os_Parcel_writeDouble(JNIEnv* env, jclass clazz, jlong nativePtr, jdouble val) argument 269 const status_t err = parcel->writeDouble(val); 276 static void android_os_Parcel_writeString(JNIEnv* env, jclass clazz, jlong nativePtr, jstring val) argument 281 if (val) { [all...] |
/frameworks/base/libs/common_time/ |
H A D | common_time_server.h | 223 inline void setForceLowPriority(bool val) { argument 224 mForceLowPriority = val;
|