/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 | 849 byte[] val; in adapterPropertyChangedCallback() 851 val = values[i]; in adapterPropertyChangedCallback() 853 infoLog("adapterPropertyChangedCallback with type:" + type + " len:" + val.length); in adapterPropertyChangedCallback() 857 mName = new String(val); in adapterPropertyChangedCallback() 866 mAddress = val; in adapterPropertyChangedCallback() 875 if (val == null || val.length != 3) { in adapterPropertyChangedCallback() 880 ((int) val[0] << 16) + ((int) val[1] << 8) + (int) val[2]; in adapterPropertyChangedCallback() 887 int mode = Utils.byteArrayToInt(val, 0); in adapterPropertyChangedCallback() 897 mUuids = Utils.byteArrayToUuid(val); in adapterPropertyChangedCallback() 900 int number = val.length / BD_ADDR_LEN; in adapterPropertyChangedCallback() [all …]
|
/packages/modules/Wifi/framework/java/android/net/wifi/ |
D | WifiSsid.java | 88 int val; in createFromHex() local 90 val = Integer.parseInt(hexStr.substring(i, i + 2), HEX_RADIX); in createFromHex() 92 val = 0; in createFromHex() 94 a.octets.write(val); in createFromHex() 103 int val = 0; in convertToBytes() local 137 val = Integer.parseInt(asciiEncoded.substring(i, i + 2), HEX_RADIX); in convertToBytes() 139 val = -1; in convertToBytes() 141 val = -1; in convertToBytes() 143 if (val < 0) { in convertToBytes() 144 val = Character.digit(asciiEncoded.charAt(i), HEX_RADIX); in convertToBytes() [all …]
|
/packages/apps/Car/RotaryController/src/com/android/car/rotary/ |
D | DumpUtils.java | 51 int val; in writeFocusDirection() local 54 val = RotaryProtos.FOCUS_LEFT; in writeFocusDirection() 57 val = RotaryProtos.FOCUS_UP; in writeFocusDirection() 60 val = RotaryProtos.FOCUS_RIGHT; in writeFocusDirection() 63 val = RotaryProtos.FOCUS_DOWN; in writeFocusDirection() 68 dumpOutputStream.write(fieldName, fieldId, val); in writeFocusDirection() 90 int val; in writeAfterScrollAction() local 93 val = RotaryProtos.AFTER_SCROLL_DO_NOTHING; in writeAfterScrollAction() 96 val = RotaryProtos.AFTER_SCROLL_FOCUS_PREVIOUS; in writeAfterScrollAction() 99 val = RotaryProtos.AFTER_SCROLL_FOCUS_NEXT; in writeAfterScrollAction() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | XmlUtilHelper.java | 202 public static final void writeMapXml(Map val, OutputStream out) in writeMapXml() argument 208 writeMapXml(val, null, serializer); in writeMapXml() 224 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument 231 writeListXml(val, null, serializer); in writeListXml() 249 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument 251 writeMapXml(val, name, out, null); in writeMapXml() 271 public static final void writeMapXml(Map val, String name, XmlSerializer out, in writeMapXml() argument 274 if (val == null) { in writeMapXml() 285 writeMapXml(val, out, callback); in writeMapXml() 305 public static final void writeMapXml(Map val, XmlSerializer out, in writeMapXml() argument [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/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/Launcher3/robolectric_tests/unstaged/ |
D | SettingsCacheTest.java | 62 boolean val = mSettingsCache.getValue(KEY_SYSTEM_URI_TEST1, 0); in getValueRespectsDefaultValue() 63 assertFalse(val); in getValueRespectsDefaultValue() 69 boolean val = mSettingsCache.getValue(KEY_SYSTEM_URI_TEST1, 0); in getValueHitsCache() 70 assertTrue(val); in getValueHitsCache() 76 boolean val = mSettingsCache.getValue(KEY_SYSTEM_URI_TEST1, 0); in getValueUpdatedCache() 77 assertFalse(val); in getValueUpdatedCache() 80 val = mSettingsCache.getValue(KEY_SYSTEM_URI_TEST1, 0); in getValueUpdatedCache() 81 assertTrue(val); in getValueUpdatedCache()
|
/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/modules/NeuralNetworks/common/operations/ |
D | L2Normalization.cpp | 63 float val = *p; in l2normFloat32Impl() local 64 sum += val * val; in l2normFloat32Impl() 90 int32_t val = static_cast<int32_t>(*p) - inputShape.offset; in l2normQuant8Impl() local 91 sum += val * val; in l2normQuant8Impl() 97 int32_t val = static_cast<int32_t>(*p) - inputShape.offset; in l2normQuant8Impl() local 99 val * 128, invMultiplier, invShift) + in l2normQuant8Impl() 122 int32_t val = static_cast<int32_t>(*p) - inputShape.offset; in l2normQuant8SignedImpl() local 123 sum += val * val; in l2normQuant8SignedImpl() 129 int32_t val = static_cast<int32_t>(*p) - inputShape.offset; in l2normQuant8SignedImpl() local 131 val * 128, invMultiplier, invShift); in l2normQuant8SignedImpl()
|
/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/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/Car/Settings/src/com/android/car/settings/search/ |
D | CarSettingsSearchIndexablesProvider.java | 75 .forEach(list -> list.forEach(val -> { in queryXmlResources() 77 ref[COLUMN_INDEX_XML_RES_RANK] = val.rank; in queryXmlResources() 78 ref[COLUMN_INDEX_XML_RES_RESID] = val.xmlResId; in queryXmlResources() 79 ref[COLUMN_INDEX_XML_RES_CLASS_NAME] = val.className; in queryXmlResources() 80 ref[COLUMN_INDEX_XML_RES_ICON_RESID] = val.iconResId; in queryXmlResources() 81 ref[COLUMN_INDEX_XML_RES_INTENT_ACTION] = val.intentAction; in queryXmlResources() 82 ref[COLUMN_INDEX_XML_RES_INTENT_TARGET_PACKAGE] = val.intentTargetPackage; in queryXmlResources() 83 ref[COLUMN_INDEX_XML_RES_INTENT_TARGET_CLASS] = val.intentTargetClass; in queryXmlResources()
|
/packages/modules/adb/sysdeps/ |
D | env.cpp | 47 std::string val; in GetEnvironmentVariable() local 48 if (!android::base::WideToUTF8(wbuf, &val)) { in GetEnvironmentVariable() 52 return std::make_optional(val); in GetEnvironmentVariable() 54 const char* val = getenv(var.data()); in GetEnvironmentVariable() local 55 if (val == nullptr) { in GetEnvironmentVariable() 59 return std::make_optional(std::string(val)); in GetEnvironmentVariable()
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | RouteInfo.java | 516 String val = ""; in toString() local 517 if (mDestination != null) val = mDestination.toString(); in toString() 519 val += " unreachable"; in toString() 521 val += " throw"; in toString() 523 val += " ->"; in toString() 524 if (mGateway != null) val += " " + mGateway.getHostAddress(); in toString() 525 if (mInterface != null) val += " " + mInterface; in toString() 527 val += " unknown type " + mType; in toString() 530 val += " mtu " + mMtu; in toString() 531 return val; in toString()
|
D | NetworkScore.java | 253 public Builder setShouldYieldToBadWifi(final boolean val) { in setShouldYieldToBadWifi() argument 254 if (val) { in setShouldYieldToBadWifi() 274 public Builder setTransportPrimary(final boolean val) { in setTransportPrimary() argument 275 if (val) { in setTransportPrimary() 299 public Builder setExiting(final boolean val) { in setExiting() argument 300 if (val) { in setExiting()
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | PacketUtils.java | 154 short val = shortBuffer.get(); in calculateChecksum() local 157 checksum = addAndWrapForChecksum(checksum, val); in calculateChecksum() 288 short val = srcBuffer.hasRemaining() ? srcBuffer.get() : dstBuffer.get(); in calculateChecksum() local 291 newChecksum = addAndWrapForChecksum(newChecksum, val); in calculateChecksum() 420 private static short onesComplement(int val) { in onesComplement() argument 421 val = (val >>> 16) + (val & 0xffff); in onesComplement() 423 if (val == 0) return 0; in onesComplement() 424 return (short) ((~val) & 0xffff); in onesComplement()
|
/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/modules/adb/daemon/ |
D | mdns.cpp | 151 uint8_t val = dist(mt); in RandomAlphaNumString() local 152 if (val < 10) { in RandomAlphaNumString() 153 ret += static_cast<char>('0' + val); in RandomAlphaNumString() 154 } else if (val < 36) { in RandomAlphaNumString() 155 ret += static_cast<char>('A' + (val - 10)); in RandomAlphaNumString() 157 ret += static_cast<char>('a' + (val - 36)); in RandomAlphaNumString()
|