Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 1324) sorted by relevance

12345678910>>...53

/packages/services/Car/tools/emulator/
Ddiagjson.example8 "value": 2
12 "value": 18
16 "value": 21
22 "value": 64
26 "value": 3080
30 "value": 0
34 "value": 42.22222
38 "value": 214.0625
42 "value": 31.764706
52 "value": 2
[all …]
Dobd2_to_diagjson.py66 def __setattr__(self, name, value): argument
67 self.__dict__['store'][name] = value
116 def setIntValue(self, id, value): argument
121 d['value'] = value
128 for value in self.store.intValues:
129 yield (value['id'], value['value'])
131 def setFloatValue(self, id, value): argument
136 d['value'] = value
143 for value in self.store.floatValues:
144 yield (value['id'], value['value'])
[all …]
Dvhal_emulator_test.py107 if len(rxMsg.value) != 1:
109 value = None
111 valType = rxMsg.value[0].value_type
114 value = rxMsg.value[0].string_value
116 value = rxMsg.value[0].bytes_value
118 value = rxMsg.value[0].int32_values[0]
120 value = rxMsg.value[0].int32_values[0]
122 value = rxMsg.value[0].int64_values[0]
124 value = rxMsg.value[0].float_values[0]
126 value = "%.5f" % value
[all …]
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/
DExifTag.java94 private Object value; field in ExifTag
126 value = null; in ExifTag()
208 return value != null; in hasValue()
222 boolean setValue(int[] value) { in setValue() argument
223 if (checkBadComponentCount(value.length)) { in setValue()
231 if (dataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue()
233 } else if (dataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue()
237 long[] data = new long[value.length]; in setValue()
238 for (int i = 0; i < value.length; i++) { in setValue()
239 data[i] = value[i]; in setValue()
[all …]
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduHeaders.java376 protected void setOctet(int value, int field) in setOctet() argument
394 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet()
400 if ((READ_STATUS_READ != value) && in setOctet()
401 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet()
407 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet()
408 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet()
414 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet()
420 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet()
426 if ((value < REPLY_CHARGING_REQUESTED) in setOctet()
427 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet()
[all …]
DSendReq.java107 public void addBcc(EncodedStringValue value) { in addBcc() argument
108 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc()
117 public void setBcc(EncodedStringValue[] value) { in setBcc() argument
118 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc()
136 public void addCc(EncodedStringValue value) { in addCc() argument
137 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc()
146 public void setCc(EncodedStringValue[] value) { in setCc() argument
147 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc()
165 public void setContentType(byte[] value) { in setContentType() argument
166 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType()
[all …]
DRetrieveConf.java73 public void addCc(EncodedStringValue value) { in addCc() argument
74 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc()
92 public void setContentType(byte[] value) { in setContentType() argument
93 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType()
111 public void setDeliveryReport(int value) throws InvalidHeaderValueException { in setDeliveryReport() argument
112 mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT); in setDeliveryReport()
132 public void setFrom(EncodedStringValue value) { in setFrom() argument
133 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom()
153 public void setMessageClass(byte[] value) { in setMessageClass() argument
154 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduHeaders.java356 protected void setOctet(int value, int field) in setOctet() argument
374 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet()
380 if ((READ_STATUS_READ != value) && in setOctet()
381 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet()
387 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet()
388 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet()
394 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet()
400 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet()
406 if ((value < REPLY_CHARGING_REQUESTED) in setOctet()
407 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet()
[all …]
DSendReq.java104 public void addBcc(EncodedStringValue value) { in addBcc() argument
105 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc()
114 public void setBcc(EncodedStringValue[] value) { in setBcc() argument
115 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc()
133 public void addCc(EncodedStringValue value) { in addCc() argument
134 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc()
143 public void setCc(EncodedStringValue[] value) { in setCc() argument
144 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc()
162 public void setContentType(byte[] value) { in setContentType() argument
163 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType()
[all …]
DRetrieveConf.java71 public void addCc(EncodedStringValue value) { in addCc() argument
72 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc()
90 public void setContentType(byte[] value) { in setContentType() argument
91 mPduHeaders.setTextString(value, PduHeaders.CONTENT_TYPE); in setContentType()
109 public void setDeliveryReport(int value) throws InvalidHeaderValueException { in setDeliveryReport() argument
110 mPduHeaders.setOctet(value, PduHeaders.DELIVERY_REPORT); in setDeliveryReport()
130 public void setFrom(EncodedStringValue value) { in setFrom() argument
131 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom()
151 public void setMessageClass(byte[] value) { in setMessageClass() argument
152 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass()
[all …]
DNotificationInd.java63 public void setContentClass(int value) throws InvalidHeaderValueException { in setContentClass() argument
64 mPduHeaders.setOctet(value, PduHeaders.CONTENT_CLASS); in setContentClass()
85 public void setContentLocation(byte[] value) { in setContentLocation() argument
86 mPduHeaders.setTextString(value, PduHeaders.CONTENT_LOCATION); in setContentLocation()
107 public void setExpiry(long value) { in setExpiry() argument
108 mPduHeaders.setLongInteger(value, PduHeaders.EXPIRY); in setExpiry()
129 public void setFrom(EncodedStringValue value) { in setFrom() argument
130 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom()
151 public void setMessageClass(byte[] value) { in setMessageClass() argument
152 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_CLASS); in setMessageClass()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java72 public void onChangeEvent(CarPropertyValue value) {
74 Log.v(TAG, "New car property value: " + value);
76 if (value.getStatus() == CarPropertyValue.STATUS_AVAILABLE) {
77 mValueMap.put(value.getPropertyId(), value);
79 mValueMap.put(value.getPropertyId(), null);
257 CarPropertyValue value = mValueMap.get(propertyId); in refreshSensorInfoText() local
261 getTimestamp(value), in refreshSensorInfoText()
262 value == null ? mNaString : (float) value.getValue())); in refreshSensorInfoText()
266 getTimestamp(value), in refreshSensorInfoText()
267 value == null ? mNaString : (float) value.getValue())); in refreshSensorInfoText()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp89 int value = 0; in fromNetworkDnsEventReportedStr() local
94 if (protoField[1] == "event_type" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr()
95 event.set_event_type(static_cast<EventType>(value)); in fromNetworkDnsEventReportedStr()
96 } else if (protoField[1] == "return_code" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr()
97 event.set_return_code(static_cast<ReturnCode>(value)); in fromNetworkDnsEventReportedStr()
98 } else if (protoField[1] == "latency_micros" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr()
99 event.set_latency_micros(value); in fromNetworkDnsEventReportedStr()
100 } else if (protoField[1] == "hints_ai_flags" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr()
101 event.set_hints_ai_flags(value); in fromNetworkDnsEventReportedStr()
102 } else if (protoField[1] == "res_nsend_flags" && ParseInt(protoField[2], &value)) { in fromNetworkDnsEventReportedStr()
[all …]
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp188 xmlChar* value = xmlGetProp(node1, (const xmlChar*)"Type"); in import() local
189 if (value && in import()
190 (xmlStrcmp(value, (const xmlChar*)"SecElemSelectedRoutes") == 0)) { in import()
203 } else if (value && in import()
204 (xmlStrcmp(value, (const xmlChar*)"DefaultRoutes") == 0)) { in import()
217 if (value) xmlFree(value); in import()
325 xmlChar* value = NULL; in importProtocolRoute() local
329 value = xmlGetProp(element, id); in importProtocolRoute()
330 if (value) { in importProtocolRoute()
331 if (xmlStrcmp(value, (const xmlChar*)"T1T") == 0) in importProtocolRoute()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ditoa.h39 inline char* u32toa(uint32_t value, char* buffer) { in u32toa() argument
42 if (value < 10000) { in u32toa()
43 const uint32_t d1 = (value / 100) << 1; in u32toa()
44 const uint32_t d2 = (value % 100) << 1; in u32toa()
46 if (value >= 1000) in u32toa()
48 if (value >= 100) in u32toa()
50 if (value >= 10) in u32toa()
54 else if (value < 100000000) { in u32toa()
56 const uint32_t b = value / 10000; in u32toa()
57 const uint32_t c = value % 10000; in u32toa()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeConfigPayload.java207 byte[] value = new byte[length]; in decodeAttributeFrom()
208 inputBuffer.get(value); in decodeAttributeFrom()
212 configList.add(new ConfigAttributeIpv4Address(value)); in decodeAttributeFrom()
215 configList.add(new ConfigAttributeIpv4Netmask(value)); in decodeAttributeFrom()
218 configList.add(new ConfigAttributeIpv4Dns(value)); in decodeAttributeFrom()
221 configList.add(new ConfigAttributeIpv4Dhcp(value)); in decodeAttributeFrom()
224 configList.add(new ConfigAttributeAppVersion(value)); in decodeAttributeFrom()
227 configList.add(new ConfigAttributeIpv6Address(value)); in decodeAttributeFrom()
230 configList.add(new ConfigAttributeIpv6Dns(value)); in decodeAttributeFrom()
233 configList.add(new ConfigAttributeIpv4Subnet(value)); in decodeAttributeFrom()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/
DMetadata.java148 void setCustomizedMeta(int key, byte[] value) { in setCustomizedMeta() argument
151 publicMetadata.manufacturer_name = value; in setCustomizedMeta()
154 publicMetadata.model_name = value; in setCustomizedMeta()
157 publicMetadata.software_version = value; in setCustomizedMeta()
160 publicMetadata.hardware_version = value; in setCustomizedMeta()
163 publicMetadata.companion_app = value; in setCustomizedMeta()
166 publicMetadata.main_icon = value; in setCustomizedMeta()
169 publicMetadata.is_untethered_headset = value; in setCustomizedMeta()
172 publicMetadata.untethered_left_icon = value; in setCustomizedMeta()
175 publicMetadata.untethered_right_icon = value; in setCustomizedMeta()
[all …]
/packages/modules/NetworkStack/src/android/net/apf/
DApfGenerator.java65 final int value; field in ApfGenerator.Opcodes
67 private Opcodes(int value) { in Opcodes() argument
68 this.value = value; in Opcodes()
81 final int value; field in ApfGenerator.ExtendedOpcodes
83 private ExtendedOpcodes(int value) { in ExtendedOpcodes() argument
84 this.value = value; in ExtendedOpcodes()
91 final int value; field in ApfGenerator.Register
93 private Register(int value) { in Register() argument
94 this.value = value; in Register()
115 mOpcode = (byte)opcode.value; in Instruction()
[all …]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DExifTag.java236 public boolean setValue(int[] value) { in setValue() argument
237 if (checkBadComponentCount(value.length)) { in setValue()
244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue()
246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
252 data[i] = value[i]; in setValue()
255 mComponentCountActual = value.length; in setValue()
270 public boolean setValue(int value) { in setValue() argument
272 value in setValue()
[all …]
/packages/apps/Camera2/src/com/android/camera/exif/
DExifTag.java236 public boolean setValue(int[] value) { in setValue() argument
237 if (checkBadComponentCount(value.length)) { in setValue()
244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue()
246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
252 data[i] = value[i]; in setValue()
255 mComponentCountActual = value.length; in setValue()
270 public boolean setValue(int value) { in setValue() argument
272 value in setValue()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/exif/
DExifTag.java236 public boolean setValue(int[] value) { in setValue() argument
237 if (checkBadComponentCount(value.length)) { in setValue()
244 if (mDataType == TYPE_UNSIGNED_SHORT && checkOverflowForUnsignedShort(value)) { in setValue()
246 } else if (mDataType == TYPE_UNSIGNED_LONG && checkOverflowForUnsignedLong(value)) { in setValue()
250 long[] data = new long[value.length]; in setValue()
251 for (int i = 0; i < value.length; i++) { in setValue()
252 data[i] = value[i]; in setValue()
255 mComponentCountActual = value.length; in setValue()
270 public boolean setValue(int value) { in setValue() argument
272 value in setValue()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java345 return (T) propValue.value.int32Values.get(0); in get()
347 return (T) Boolean.valueOf(propValue.value.int32Values.get(0) == 1); in get()
349 return (T) propValue.value.floatValues.get(0); in get()
351 Integer[] intArray = new Integer[propValue.value.int32Values.size()]; in get()
352 return (T) propValue.value.int32Values.toArray(intArray); in get()
354 Float[] floatArray = new Float[propValue.value.floatValues.size()]; in get()
355 return (T) propValue.value.floatValues.toArray(floatArray); in get()
357 return (T) toIntArray(propValue.value.int32Values); in get()
359 return (T) toFloatArray(propValue.value.floatValues); in get()
361 return (T) toByteArray(propValue.value.bytes); in get()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java55 final int value = i; in testAdd() local
56 src.add(value); in testAdd()
73 final int value = i; in testAdd() local
74 assertEquals("value at " + i, value, src.get(i)); in testAdd()
83 final int value = i; in testAddAt() local
84 src.addAt(i, value); in testAddAt()
88 final int value = i; in testAddAt() local
89 assertEquals("value at " + i, value, src.get(i)); in testAddAt()
128 final int value = i; in testReset() local
129 src.add(value); in testReset()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpCodecConfig.java183 int value; in assignCodecConfigPriorities() local
185 value = resources.getInteger(R.integer.a2dp_source_codec_priority_sbc); in assignCodecConfigPriorities()
187 value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in assignCodecConfigPriorities()
189 if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value in assignCodecConfigPriorities()
191 mA2dpSourceCodecPrioritySbc = value; in assignCodecConfigPriorities()
195 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aac); in assignCodecConfigPriorities()
197 value = BluetoothCodecConfig.CODEC_PRIORITY_DEFAULT; in assignCodecConfigPriorities()
199 if ((value >= BluetoothCodecConfig.CODEC_PRIORITY_DISABLED) && (value in assignCodecConfigPriorities()
201 mA2dpSourceCodecPriorityAac = value; in assignCodecConfigPriorities()
205 value = resources.getInteger(R.integer.a2dp_source_codec_priority_aptx); in assignCodecConfigPriorities()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDialogDetailsView.java138 String value; in setDetails() local
143 value = DetailsHelper.resolveAddress(mActivity, latlng, this); in setDetails()
147 value = Formatter.formatFileSize( in setDetails()
152 value = "1".equals(detail.getValue()) in setDetails()
163 value = context.getString(R.string.flash_on); in setDetails()
165 value = context.getString(R.string.flash_off); in setDetails()
170 value = (String) detail.getValue(); in setDetails()
171 double time = Double.valueOf(value); in setDetails()
173 value = String.format(mDefaultLocale, "%d/%d", 1, in setDetails()
178 value = String.valueOf(integer) + "''"; in setDetails()
[all …]

12345678910>>...53