/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/msinttypes/ |
D | stdint.h | 65 #define INT8_C(val) val##i8 argument 66 #define INT16_C(val) val##i16 argument 67 #define INT32_C(val) val##i32 argument 68 #define INT64_C(val) val##i64 argument 70 #define UINT8_C(val) val##ui8 argument 71 #define UINT16_C(val) val##ui16 argument 72 #define UINT32_C(val) val##ui32 argument 73 #define UINT64_C(val) val##ui64 argument 276 #define INT8_C(val) val##i8 argument 277 #define INT16_C(val) val##i16 argument [all …]
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | ImageUtils.cpp | 50 int val = (int) (REDY * r + GREENY * g + BLUEY * b) / 1000 + 16; in rgba2yvu() local 51 if (val < 0) val = 0; in rgba2yvu() 52 if (val > 255) val = 255; in rgba2yvu() 53 *(yimg) = val; in rgba2yvu() 55 val = (int) (REDV * r - GREENV * g - BLUEV * b) / 1000 + 128; in rgba2yvu() 56 if (val < 0) val = 0; in rgba2yvu() 57 if (val > 255) val = 255; in rgba2yvu() 58 *(vimg) = val; in rgba2yvu() 60 val = (int) (-REDU * r - GREENU * g + BLUEU * b) / 1000 + 128; in rgba2yvu() 61 if (val < 0) val = 0; in rgba2yvu() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterProperties.java | 774 byte[] val; in adapterPropertyChangedCallback() 776 val = values[i]; in adapterPropertyChangedCallback() 778 infoLog("adapterPropertyChangedCallback with type:" + type + " len:" + val.length); in adapterPropertyChangedCallback() 782 mName = new String(val); in adapterPropertyChangedCallback() 791 mAddress = val; in adapterPropertyChangedCallback() 801 if (val == null || val.length != 3) { in adapterPropertyChangedCallback() 806 ((int) val[0] << 16) + ((int) val[1] << 8) + (int) val[2]; in adapterPropertyChangedCallback() 813 int mode = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback() 822 mUuids = Utils.byteArrayToUuid(val); in adapterPropertyChangedCallback() 825 int number = val.length / BD_ADDR_LEN; in adapterPropertyChangedCallback() [all …]
|
D | RemoteDevices.java | 491 byte[] val; in devicePropertyChangedCallback() 510 val = values[j]; in devicePropertyChangedCallback() 511 if (val.length > 0) { in devicePropertyChangedCallback() 516 final String newName = new String(val); in devicePropertyChangedCallback() 530 device.mAlias = new String(val); in devicePropertyChangedCallback() 534 device.mAddress = val; in devicePropertyChangedCallback() 535 debugLog("Remote Address is:" + Utils.getAddressStringFromByte(val)); in devicePropertyChangedCallback() 538 final int newClass = Utils.byteArrayToInt(val); in devicePropertyChangedCallback() 543 device.mBluetoothClass = Utils.byteArrayToInt(val); in devicePropertyChangedCallback() 553 int numUuids = val.length / AbstractionLayer.BT_UUID_SIZE; in devicePropertyChangedCallback() [all …]
|
/packages/apps/Settings/src/com/android/settings/search/ |
D | SettingsSearchIndexablesProvider.java | 104 for (SearchIndexableResource val : resources) { in queryXmlResources() 106 ref[COLUMN_INDEX_XML_RES_RANK] = val.rank; in queryXmlResources() 107 ref[COLUMN_INDEX_XML_RES_RESID] = val.xmlResId; in queryXmlResources() 108 ref[COLUMN_INDEX_XML_RES_CLASS_NAME] = val.className; in queryXmlResources() 109 ref[COLUMN_INDEX_XML_RES_ICON_RESID] = val.iconResId; in queryXmlResources() 110 ref[COLUMN_INDEX_XML_RES_INTENT_ACTION] = val.intentAction; in queryXmlResources() 111 ref[COLUMN_INDEX_XML_RES_INTENT_TARGET_PACKAGE] = val.intentTargetPackage; in queryXmlResources() 123 for (SearchIndexableRaw val : raws) { in queryRawData() 125 ref[COLUMN_INDEX_RAW_TITLE] = val.title; in queryRawData() 126 ref[COLUMN_INDEX_RAW_SUMMARY_ON] = val.summaryOn; in queryRawData() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/ |
D | SettingsSearchIndexablesProvider.java | 104 for (SearchIndexableResource val : resources) { in queryXmlResources() 106 ref[COLUMN_INDEX_XML_RES_RANK] = val.rank; in queryXmlResources() 107 ref[COLUMN_INDEX_XML_RES_RESID] = val.xmlResId; in queryXmlResources() 108 ref[COLUMN_INDEX_XML_RES_CLASS_NAME] = val.className; in queryXmlResources() 109 ref[COLUMN_INDEX_XML_RES_ICON_RESID] = val.iconResId; in queryXmlResources() 110 ref[COLUMN_INDEX_XML_RES_INTENT_ACTION] = val.intentAction; in queryXmlResources() 111 ref[COLUMN_INDEX_XML_RES_INTENT_TARGET_PACKAGE] = val.intentTargetPackage; in queryXmlResources() 123 for (SearchIndexableRaw val : raws) { in queryRawData() 125 ref[COLUMN_INDEX_RAW_TITLE] = val.title; in queryRawData() 126 ref[COLUMN_INDEX_RAW_SUMMARY_ON] = val.summaryOn; in queryRawData() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/module/ |
D | WallpaperStatsLog.java | 127 private static void copyInt(byte[] buff, int pos, int val) { in copyInt() argument 128 buff[pos] = (byte) (val); in copyInt() 129 buff[pos + 1] = (byte) (val >> 8); in copyInt() 130 buff[pos + 2] = (byte) (val >> 16); in copyInt() 131 buff[pos + 3] = (byte) (val >> 24); in copyInt() 135 private static void copyLong(byte[] buff, int pos, long val) { in copyLong() argument 136 buff[pos] = (byte) (val); in copyLong() 137 buff[pos + 1] = (byte) (val >> 8); in copyLong() 138 buff[pos + 2] = (byte) (val >> 16); in copyLong() 139 buff[pos + 3] = (byte) (val >> 24); in copyLong() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | ObexAppParameters.java | 50 byte[] val = new byte[len]; in ObexAppParameters() 52 System.arraycopy(raw, i, val, 0, len); in ObexAppParameters() 53 this.add(tag, val); in ObexAppParameters() 103 public void add(byte tag, byte val) { in add() argument 104 byte[] bval = ByteBuffer.allocate(1).put(val).array(); in add() 108 public void add(byte tag, short val) { in add() argument 109 byte[] bval = ByteBuffer.allocate(2).putShort(val).array(); in add() 113 public void add(byte tag, int val) { in add() argument 114 byte[] bval = ByteBuffer.allocate(4).putInt(val).array(); in add() 118 public void add(byte tag, long val) { in add() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | ObexAppParameters.java | 50 byte[] val = new byte[len]; in ObexAppParameters() 52 System.arraycopy(raw, i, val, 0, len); in ObexAppParameters() 53 this.add(tag, val); in ObexAppParameters() 103 public void add(byte tag, byte val) { in add() argument 104 byte[] bval = ByteBuffer.allocate(1).put(val).array(); in add() 108 public void add(byte tag, short val) { in add() argument 109 byte[] bval = ByteBuffer.allocate(2).putShort(val).array(); in add() 113 public void add(byte tag, int val) { in add() argument 114 byte[] bval = ByteBuffer.allocate(4).putInt(val).array(); in add() 118 public void add(byte tag, long val) { in add() argument [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceInfo.java | 132 String val = pair[1]; in parse() local 139 if ("bind".equals(val)) { in parse() 141 } else if ("start".equals(val)) { in parse() 143 } else if ("startForeground".equals(val)) { in parse() 146 throw new IllegalArgumentException("Unexpected bind option: " + val); in parse() 150 if ("all".equals(val)) { in parse() 152 } else if ("system".equals(val)) { in parse() 154 } else if ("foreground".equals(val)) { in parse() 157 throw new IllegalArgumentException("Unexpected user scope: " + val); in parse() 161 if ("asap".equals(val)) { in parse() [all …]
|
/packages/services/Car/tools/emulator/ |
D | prop_event_simulator.py | 14 def parseVal(val, valType): argument 16 return str(val) 18 return int(val) 20 return map(int, val.split(',')) 22 return long(val) 24 return map(long, val.split(',')) 26 return float(val) 28 return map(float, val.split(',')) 30 print val 31 return json.loads(val)
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/ |
D | VehiclePropValueBuilder.java | 79 for (int val : values) { in addIntValue() 80 mPropValue.value.int32Values.add(val); in addIntValue() 87 for (float val : values) { in addFloatValue() 88 mPropValue.value.floatValues.add(val); in addFloatValue() 95 for (byte val : values) { in addByteValue() 96 mPropValue.value.bytes.add(val); in addByteValue() 103 for (long val : values) { in setInt64Value() 104 mPropValue.value.int64Values.add(val); in setInt64Value() 117 public VehiclePropValueBuilder setStringValue(String val) { in setStringValue() argument 118 mPropValue.value.stringValue = val; in setStringValue()
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_feature_detection.cpp | 812 float val,max_val; in db_Max_128Aligned16_f() 817 val= *p++; in db_Max_128Aligned16_f() 818 if(val>max_val) max_val=val; in db_Max_128Aligned16_f() 870 float val,max_val; in db_Max_64Aligned16_f() 875 val= *p++; in db_Max_64Aligned16_f() 876 if(val>max_val) max_val=val; in db_Max_64Aligned16_f() 918 float val,max_val; in db_Max_32Aligned16_f() 923 val= *p++; in db_Max_32Aligned16_f() 924 if(val>max_val) max_val=val; in db_Max_32Aligned16_f() 958 float val,max_val; in db_Max_16Aligned16_f() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Assert.java | 135 final int val, final int rangeMinInclusive, final int rangeMaxInclusive) { in inRange() argument 136 if (val < rangeMinInclusive || val > rangeMaxInclusive) { in inRange() 138 rangeMaxInclusive + "], but was " + val, false); in inRange() 143 final long val, final long rangeMinInclusive, final long rangeMaxInclusive) { in inRange() argument 144 if (val < rangeMinInclusive || val > rangeMaxInclusive) { in inRange() 146 rangeMaxInclusive + "], but was " + val, false); in inRange()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 194 public void onChangeEvent(final CarPropertyValue val) { 195 int areaId = val.getAreaId(); 196 switch (val.getPropertyId()) { 198 handleAcStateUpdate(getValue(val)); 201 handleFanPositionUpdate(areaId, getValue(val)); 204 handleFanSpeedUpdate(areaId, getValue(val)); 207 handleTempUpdate(val); 210 handleDefrosterUpdate(areaId, getValue(val)); 213 handleAirCirculationUpdate(getValue(val)); 216 handleSeatWarmerUpdate(areaId, getValue(val)); [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 200 int val = 0; in convertLine() local 206 val = parseImm(line, arg); in convertLine() 222 gen.addJumpIfR0Equals(val, true_label); in convertLine() 231 gen.addJumpIfR0NotEquals(val, false_label); in convertLine() 239 gen.addJumpIfR0AnyBitsSet(val, true_label); in convertLine() 254 gen.addJumpIfR0GreaterThan(val, true_label); in convertLine() 261 gen.addJumpIfR0LessThan(val + 1, false_label); in convertLine() 274 gen.addJumpIfR0LessThan(val, false_label); in convertLine() 281 gen.addJumpIfR0GreaterThan(val - 1, true_label); in convertLine()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | Exif.java | 39 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation() local 40 if (val == null) { in getOrientation() 43 return ExifInterface.getRotationForOrientationValue(val.shortValue()); in getOrientation() 70 Integer val = exif.getTagIntValue(ExifInterface.TAG_ORIENTATION); in getOrientation() local 71 if (val == null) { in getOrientation() 74 return ExifInterface.getRotationForOrientationValue(val.shortValue()); in getOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/ |
D | FilterStackSource.java | 58 ContentValues val = new ContentValues(); in insertStack() local 59 val.put(FilterStack.STACK_ID, stackName); in insertStack() 60 val.put(FilterStack.FILTER_STACK, stackBlob); in insertStack() 63 ret = (-1 != database.insert(FilterStack.TABLE, null, val)); in insertStack() 72 ContentValues val = new ContentValues(); in updateStackName() local 73 val.put(FilterStack.STACK_ID, stackName); in updateStackName() 76 database.update(FilterStack.TABLE, val, FilterStack._ID + " = ?", in updateStackName()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | LockScreenNotificationPreferenceController.java | 220 final int val = Integer.parseInt((String) newValue); in onPreferenceChange() local 221 if (val == mLockscreenSelectedValueProfile) { in onPreferenceChange() 224 final boolean show = val == R.string.lock_screen_notifications_summary_show_profile; in onPreferenceChange() 228 mLockscreenSelectedValueProfile = val; in onPreferenceChange() 231 final int val = Integer.parseInt((String) newValue); in onPreferenceChange() local 232 if (val == mLockscreenSelectedValue) { in onPreferenceChange() 235 final boolean enabled = val != R.string.lock_screen_notifications_summary_disable; in onPreferenceChange() 236 final boolean show = val == R.string.lock_screen_notifications_summary_show; in onPreferenceChange() 241 mLockscreenSelectedValue = val; in onPreferenceChange()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | LockScreenNotificationPreferenceController.java | 220 final int val = Integer.parseInt((String) newValue); in onPreferenceChange() local 221 if (val == mLockscreenSelectedValueProfile) { in onPreferenceChange() 224 final boolean show = val == R.string.lock_screen_notifications_summary_show_profile; in onPreferenceChange() 228 mLockscreenSelectedValueProfile = val; in onPreferenceChange() 231 final int val = Integer.parseInt((String) newValue); in onPreferenceChange() local 232 if (val == mLockscreenSelectedValue) { in onPreferenceChange() 235 final boolean enabled = val != R.string.lock_screen_notifications_summary_disable; in onPreferenceChange() 236 final boolean show = val == R.string.lock_screen_notifications_summary_show; in onPreferenceChange() 241 mLockscreenSelectedValue = val; in onPreferenceChange()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 487 public <E> void setProperty(@NonNull Class<E> clazz, int propId, int areaId, @NonNull E val) { in setProperty() argument 490 + ", areaId: 0x" + toHexString(areaId) + ", class: " + clazz + ", val: " + val); in setProperty() 493 mService.setProperty(new CarPropertyValue<>(propId, areaId, val)); in setProperty() 507 public void setBooleanProperty(int prop, int areaId, boolean val) { in setBooleanProperty() argument 508 setProperty(Boolean.class, prop, areaId, val); in setBooleanProperty() 518 public void setFloatProperty(int prop, int areaId, float val) { in setFloatProperty() argument 519 setProperty(Float.class, prop, areaId, val); in setFloatProperty() 529 public void setIntProperty(int prop, int areaId, int val) { in setIntProperty() argument 530 setProperty(Integer.class, prop, areaId, val); in setIntProperty()
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_btservice_AdapterService.cpp | 107 (jbyte*)properties[i].val); in get_properties() 126 ScopedLocalRef<jbyteArray> val( in adapter_properties_callback() local 129 if (!val.get()) { in adapter_properties_callback() 135 sCallbackEnv->GetObjectClass(val.get())); in adapter_properties_callback() 180 ScopedLocalRef<jbyteArray> val( in remote_device_properties_callback() local 183 if (!val.get()) { in remote_device_properties_callback() 189 sCallbackEnv->GetObjectClass(val.get())); in remote_device_properties_callback() 245 (jbyte*)properties[i].val); in device_found_callback() 255 (const char*)properties[addr_index].val); in device_found_callback() 258 (RawAddress*)properties[addr_index].val, in device_found_callback() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifTag.java | 376 long[] val = (long[]) value; in getValueAsInts() local 377 int[] arr = new int[val.length]; in getValueAsInts() 378 for (int i = 0; i < val.length; i++) { in getValueAsInts() 379 arr[i] = (int) val[i]; // Truncates in getValueAsInts() 409 Object val = ((Object[]) value)[0]; in forceGetValueAsString() local 410 if (val == null) { in forceGetValueAsString() 413 return val.toString(); in forceGetValueAsString()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | DvrStorageManager.java | 90 int val = in.readInt(); in readFormatInt() local 91 if (val != NO_VALUE) { in readFormatInt() 92 mediaFormat.setInteger(key, val); in readFormatInt() 98 long val = in.readLong(); in readFormatLong() local 99 if (val != NO_VALUE_LONG) { in readFormatLong() 100 mediaFormat.setLong(key, val); in readFormatLong() 106 float val = in.readFloat(); in readFormatFloat() local 107 if (val != NO_VALUE) { in readFormatFloat() 108 mediaFormat.setFloat(key, val); in readFormatFloat()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | DvrStorageManager.java | 90 int val = in.readInt(); in readFormatInt() local 91 if (val != NO_VALUE) { in readFormatInt() 92 format.setInteger(key, val); in readFormatInt() 98 long val = in.readLong(); in readFormatLong() local 99 if (val != NO_VALUE_LONG) { in readFormatLong() 100 format.setLong(key, val); in readFormatLong() 106 float val = in.readFloat(); in readFormatFloat() local 107 if (val != NO_VALUE) { in readFormatFloat() 108 format.setFloat(key, val); in readFormatFloat()
|