Home
last modified time | relevance | path

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

12345

/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/
DPduHeaders.java358 protected void setOctet(int value, int field) in setOctet() argument
376 if ((VALUE_YES != value) && (VALUE_NO != value)) { in setOctet()
382 if ((READ_STATUS_READ != value) && in setOctet()
383 (READ_STATUS__DELETED_WITHOUT_BEING_READ != value)) { in setOctet()
389 if ((CANCEL_STATUS_REQUEST_SUCCESSFULLY_RECEIVED != value) && in setOctet()
390 (CANCEL_STATUS_REQUEST_CORRUPTED != value)) { in setOctet()
396 if ((value < PRIORITY_LOW) || (value > PRIORITY_HIGH)) { in setOctet()
402 if ((value < STATUS_EXPIRED) || (value > STATUS_UNREACHABLE)) { in setOctet()
408 if ((value < REPLY_CHARGING_REQUESTED) in setOctet()
409 || (value > REPLY_CHARGING_ACCEPTED_TEXT_ONLY)) { in setOctet()
[all …]
DSendReq.java106 public void addBcc(EncodedStringValue value) { in addBcc() argument
107 mPduHeaders.appendEncodedStringValue(value, PduHeaders.BCC); in addBcc()
116 public void setBcc(EncodedStringValue[] value) { in setBcc() argument
117 mPduHeaders.setEncodedStringValues(value, PduHeaders.BCC); in setBcc()
135 public void addCc(EncodedStringValue value) { in addCc() argument
136 mPduHeaders.appendEncodedStringValue(value, PduHeaders.CC); in addCc()
145 public void setCc(EncodedStringValue[] value) { in setCc() argument
146 mPduHeaders.setEncodedStringValues(value, PduHeaders.CC); in setCc()
164 public void setContentType(byte[] value) { in setContentType() argument
165 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 …]
DNotificationInd.java65 public void setContentClass(int value) throws InvalidHeaderValueException { in setContentClass() argument
66 mPduHeaders.setOctet(value, PduHeaders.CONTENT_CLASS); in setContentClass()
87 public void setContentLocation(byte[] value) { in setContentLocation() argument
88 mPduHeaders.setTextString(value, PduHeaders.CONTENT_LOCATION); in setContentLocation()
109 public void setExpiry(long value) { in setExpiry() argument
110 mPduHeaders.setLongInteger(value, PduHeaders.EXPIRY); in setExpiry()
131 public void setFrom(EncodedStringValue value) { in setFrom() argument
132 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 …]
DReadOrigInd.java59 public void setDate(long value) { in setDate() argument
60 mPduHeaders.setLongInteger(value, PduHeaders.DATE); in setDate()
80 public void setFrom(EncodedStringValue value) { in setFrom() argument
81 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom()
99 public void setMessageId(byte[] value) { in setMessageId() argument
100 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID); in setMessageId()
118 public void setReadStatus(int value) throws InvalidHeaderValueException { in setReadStatus() argument
119 mPduHeaders.setOctet(value, PduHeaders.READ_STATUS); in setReadStatus()
137 public void setTo(EncodedStringValue[] value) { in setTo() argument
138 mPduHeaders.setEncodedStringValues(value, PduHeaders.TO); in setTo()
DDeliveryInd.java62 public void setDate(long value) { in setDate() argument
63 mPduHeaders.setLongInteger(value, PduHeaders.DATE); in setDate()
81 public void setMessageId(byte[] value) { in setMessageId() argument
82 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID); in setMessageId()
100 public void setStatus(int value) throws InvalidHeaderValueException { in setStatus() argument
101 mPduHeaders.setOctet(value, PduHeaders.STATUS); in setStatus()
119 public void setTo(EncodedStringValue[] value) { in setTo() argument
120 mPduHeaders.setEncodedStringValues(value, PduHeaders.TO); in setTo()
DMultimediaMessagePdu.java91 public void setSubject(EncodedStringValue value) { in setSubject() argument
92 mPduHeaders.setEncodedStringValue(value, PduHeaders.SUBJECT); in setSubject()
110 public void addTo(EncodedStringValue value) { in addTo() argument
111 mPduHeaders.appendEncodedStringValue(value, PduHeaders.TO); in addTo()
129 public void setPriority(int value) throws InvalidHeaderValueException { in setPriority() argument
130 mPduHeaders.setOctet(value, PduHeaders.PRIORITY); in setPriority()
147 public void setDate(long value) { in setDate() argument
148 mPduHeaders.setLongInteger(value, PduHeaders.DATE); in setDate()
DReadRecInd.java71 public void setDate(long value) { in setDate() argument
72 mPduHeaders.setLongInteger(value, PduHeaders.DATE); in setDate()
90 public void setMessageId(byte[] value) { in setMessageId() argument
91 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID); in setMessageId()
109 public void setTo(EncodedStringValue[] value) { in setTo() argument
110 mPduHeaders.setEncodedStringValues(value, PduHeaders.TO); in setTo()
128 public void setReadStatus(int value) throws InvalidHeaderValueException { in setReadStatus() argument
129 mPduHeaders.setOctet(value, PduHeaders.READ_STATUS); in setReadStatus()
DSendConf.java60 public void setMessageId(byte[] value) { in setMessageId() argument
61 mPduHeaders.setTextString(value, PduHeaders.MESSAGE_ID); in setMessageId()
79 public void setResponseStatus(int value) throws InvalidHeaderValueException { in setResponseStatus() argument
80 mPduHeaders.setOctet(value, PduHeaders.RESPONSE_STATUS); in setResponseStatus()
98 public void setTransactionId(byte[] value) { in setTransactionId() argument
99 mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID); in setTransactionId()
DGenericPdu.java69 public void setMessageType(int value) throws InvalidHeaderValueException { in setMessageType() argument
70 mPduHeaders.setOctet(value, PduHeaders.MESSAGE_TYPE); in setMessageType()
89 public void setMmsVersion(int value) throws InvalidHeaderValueException { in setMmsVersion() argument
90 mPduHeaders.setOctet(value, PduHeaders.MMS_VERSION); in setMmsVersion()
110 public void setFrom(EncodedStringValue value) { in setFrom() argument
111 mPduHeaders.setEncodedStringValue(value, PduHeaders.FROM); in setFrom()
DNotifyRespInd.java71 public void setReportAllowed(int value) throws InvalidHeaderValueException { in setReportAllowed() argument
72 mPduHeaders.setOctet(value, PduHeaders.REPORT_ALLOWED); in setReportAllowed()
82 public void setStatus(int value) throws InvalidHeaderValueException { in setStatus() argument
83 mPduHeaders.setOctet(value, PduHeaders.STATUS); in setStatus()
111 public void setTransactionId(byte[] value) { in setTransactionId() argument
112 mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID); in setTransactionId()
DAcknowledgeInd.java67 public void setReportAllowed(int value) throws InvalidHeaderValueException { in setReportAllowed() argument
68 mPduHeaders.setOctet(value, PduHeaders.REPORT_ALLOWED); in setReportAllowed()
86 public void setTransactionId(byte[] value) { in setTransactionId() argument
87 mPduHeaders.setTextString(value, PduHeaders.TRANSACTION_ID); in setTransactionId()
/development/tools/idegen/src/com/android/idegen/
DMakeFileParser.java135 for (String value : valuesArr) {
136 appendValue(key, value);
160 String value = rawValue.trim(); in rawValue.trim()
162 if (value.isEmpty()) { in value.isEmpty()
168 value = findVariables(value); in calls()
170 String[] tokens = value.split(" ");
175 private String findVariables(String value) {
177 int variableStart = value.indexOf("$(");
181 sb.append(value.substring(0, variableStart));
184 int variableEnd = findClosingParen(value, variableStart);
[all …]
/development/vndk/tools/elfcheck/elfcheck/
Drewriter.py39 def __init__(self, value, locs): argument
40 self.value = value
45 return repr(self.value)
48 def append(self, value, locs): argument
50 self.value += value
114 for key, value in variables.items():
115 self._add_var(key, value)
126 return os.path.join(self._mk_dirname, file_var.value)
130 return os.path.join(self._android_build_top, file_var.value)
150 check_elf_files_var.value == 'false':
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DShapeHolder.java37 public void setPaint(Paint value) { in setPaint() argument
38 paint = value; in setPaint()
44 public void setX(float value) { in setX() argument
45 x = value; in setX()
50 public void setY(float value) { in setY() argument
51 y = value; in setY()
56 public void setShape(ShapeDrawable value) { in setShape() argument
57 shape = value; in setShape()
65 public void setColor(int value) { in setColor() argument
66 shape.getPaint().setColor(value); in setColor()
[all …]
/development/vndk/tools/header-checker/src/repr/json/
Dconverter.cpp41 void JsonObject::Set(const std::string &key, bool value) { in Set() argument
42 SetOmissible(key, value, false); in Set()
46 void JsonObject::Set(const std::string &key, uint64_t value) { in Set() argument
47 SetOmissible<Json::UInt64>(key, value, 0); in Set()
51 void JsonObject::Set(const std::string &key, int64_t value) { in Set() argument
52 SetOmissible<Json::Int64>(key, value, 0); in Set()
56 void JsonObject::Set(const std::string &key, const std::string &value) { in Set() argument
57 SetOmissible<const std::string &>(key, value, ""); in Set()
61 void JsonObject::Set(const std::string &key, const JsonArray &value) { in Set() argument
62 SetOmissible(key, value, json_empty_array); in Set()
Dconverter.h46 void Set(const std::string &key, bool value);
49 void Set(const std::string &key, uint64_t value);
52 void Set(const std::string &key, int64_t value);
55 void Set(const std::string &key, const std::string &value);
58 void Set(const std::string &key, const JsonArray &value);
62 inline void SetOmissible(const std::string &key, T value, T omissible_value) { in SetOmissible() argument
63 if (value != omissible_value) { in SetOmissible()
64 (*this)[key] = value; in SetOmissible()
/development/vndk/tools/sourcedr/blueprint/
Dblueprint.py49 def __init__(self, name, value): argument
52 self.value = value
68 for key, value in attrs.iteritems():
70 new_attrs[key] = value
72 item = _Enum(key, value)
404 def __init__(self, value): argument
406 self.value = value
411 return repr(self.value)
416 return self.value
423 return self.value == rhs.value
[all …]
/development/vndk/tools/header-checker/src/utils/
Dstring_utils.cpp94 std::string value(s); in ParseBool() local
95 std::transform(value.begin(), value.end(), value.begin(), std::tolower); in ParseBool()
96 return (value == "true" || value == "on" || value == "1"); in ParseBool()
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DOtherMetadataFragment.java182 .setPriority(priority.value) in createNotification()
183 .setCategory(category.value) in createNotification()
184 .setContentText(String.format("Category %s, Priority %s", category.value, in createNotification()
311 private final String value; field in OtherMetadataFragment.Category
313 Category(String value) { in Category() argument
314 this.value = value; in Category()
319 return value; in toString()
334 private final int value; field in OtherMetadataFragment.Priority
336 Priority(int value) { in Priority() argument
337 this.value = value; in Priority()
/development/gsi/gsi_util/gsi_util/commands/
Ddump.py57 def _output_dump_info(self, info_name, value): argument
58 print >> self._os, '{:30}: {}'.format(info_name, value)
67 value = dump_result_dict.get(info_name)
68 if not value:
71 value = self._UNKNOWN_VALUE
73 self._output_dump_info(info_name, value)
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DUtils.java46 public static int parseInt(String value, int defValue) { in parseInt() argument
47 return parseIntWithBase(value, 10, defValue); in parseInt()
51 public static int parseIntWithBase(String value, int base, int defValue) { in parseIntWithBase() argument
52 if (value == null) { in parseIntWithBase()
56 return Integer.parseInt(value, base); in parseIntWithBase()
/development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/
DHardcodedColorDetector.java120 final String value = attribute.getValue(); in visitAttribute() local
121 final ResourceUrl resUrl = ResourceUrl.parse(value); in visitAttribute()
123 && isHardcodedColor(value)) { in visitAttribute()
130 addIndirectColor(context, value, attribute); in visitAttribute()
158 final String value = child.getNodeValue(); in visitElement() local
159 final ResourceUrl resUrl = ResourceUrl.parse(value); in visitElement()
160 if (resUrl == null && isHardcodedColor(value)) { in visitElement()
166 addIndirectColor(context, value, child); in visitElement()
173 final String value = element.getFirstChild().getNodeValue(); in visitElement() local
174 if (isHardcodedColor(value) && context.isEnabled(ISSUE)) { in visitElement()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java175 int value = 0;
177 value += TILT_LEFT;
179 value += TILT_RIGHT;
182 value += TILT_UP;
184 value += TILT_DOWN;
187 if (value != mLastValue) {
188 mLastValue = value;
190 switch (value) {
/development/vndk/tools/elfcheck/
Dfix_android_mk_prebuilt.py40 key, value = var.split('=', 1)
42 value = value.strip()
43 variables[key] = value

12345