/frameworks/base/core/java/android/net/http/ |
H A D | Request.java | 168 * be formatted in request as "name: value\r\n". 170 * @param value of header 172 void addHeader(String name, String value) { argument 178 if (value == null || value.length() == 0) { 179 String damage = "Null or empty value for header \"" + name + "\""; 183 mHttpRequest.addHeader(name, value);
|
/frameworks/base/core/java/android/nfc/tech/ |
H A D | MifareClassic.java | 458 * Increment a value block, storing the result in the temporary block on the tag. 467 * @param value non-negative to increment by 471 public void increment(int blockIndex, int value) throws IOException { argument 473 validateValueOperand(value); 480 cmd.putInt(value); 486 * Decrement a value block, storing the result in the temporary block on the tag. 495 * @param value non-negative to decrement by 499 public void decrement(int blockIndex, int value) throws IOException { argument 501 validateValueOperand(value); 508 cmd.putInt(value); 648 validateValueOperand(int value) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | PerformanceCollector.java | 81 * @param results memory and runtime metrics stored as key/value pairs, 117 * @param value long value of the measurement 119 public void writeMeasurement(String label, long value); argument 127 * @param value float value of the measurement 129 public void writeMeasurement(String label, float value); argument 137 * @param value string summary of the measurement 139 public void writeMeasurement(String label, String value); argument 315 * @return Memory and runtime metrics stored as key/value pair 424 addMeasurement(String label, long value) argument 435 addMeasurement(String label, float value) argument 446 addMeasurement(String label, String value) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | ListPreference.java | 32 * This preference will store a string into the SharedPreferences. This string will be the value 99 * The array to find the value to save for a preference when an entry from 127 * Sets the value of the key. This should be one of the entries in 130 * @param value The value to set for the key. 132 public void setValue(String value) { argument 133 mValue = value; 135 persistString(value); 142 * value will be substituted in its place. 161 * value wil 212 findIndexOfValue(String value) argument 308 String value; field in class:ListPreference.SavedState [all...] |
H A D | MultiCheckPreference.java | 104 * The array to find the value to save for a preference when an entry from 144 * Get the boolean state of a given value. 151 * Set the boolean state of a given value. 175 * value will be substituted in its place. 193 * value will be substituted in its place when it's retrieved. 215 * Returns the index of the given value (in the entry values array). 217 * @param value The value whose index should be returned. 218 * @return The index of the value, or -1 if not found. 220 public int findIndexOfValue(String value) { argument [all...] |
H A D | MultiSelectListPreference.java | 94 * The array to find the value to save for a preference when an entry from 122 * Sets the value of the key. This should contain entries in 135 * Retrieves the current value of the key. 142 * Returns the index of the given value (in the entry values array). 144 * @param value The value whose index should be returned. 145 * @return The index of the value, or -1 if not found. 147 public int findIndexOfValue(String value) { argument 148 if (value != null && mEntryValues != null) { 150 if (mEntryValues[i].equals(value)) { [all...] |
/frameworks/base/core/java/android/speech/tts/ |
H A D | BlockingAudioTrack.java | 341 private static final long clip(long value, long min, long max) { argument 342 if (value < min) { 346 if (value > max) { 350 return value; 353 private static float clip(float value, float min, float max) { argument 354 return value > max ? max : (value < min ? min : value);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateFormat.java | 66 zero-pad the value to that number of characters. 221 String value = Settings.System.getString(context.getContentResolver(), 224 if (value == null) { 242 value = "24"; 244 value = "12"; 247 value = "12"; 252 sIs24Hour = value.equals("24"); 258 return value.equals("24"); 288 String value = Settings.System.getString(context.getContentResolver(), 291 return getDateFormatForSetting(context, value); 303 getDateFormatForSetting(Context context, String value) argument 310 getDateFormatStringForSetting(Context context, String value) argument [all...] |
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 237 private int value; field in class:Base64.Decoder 246 value = 0; 275 int value = this.value; 288 // (whitespace, etc.), value will end up negative. (All 291 // together will result in a value with its top bit set.) 297 (value = ((alphabet[input[p] & 0xff] << 18) | 301 output[op+2] = (byte) value; 302 output[op+1] = (byte) (value >> 8); 303 output[op] = (byte) (value >> 1 [all...] |
H A D | EventLog.java | 157 * @param value A value to log 160 public static native int writeEvent(int tag, int value); argument 165 * @param value A value to log 168 public static native int writeEvent(int tag, long value); argument 173 * @param str A value to log
|
H A D | MathUtils.java | 127 public static float acos(float value) { argument 128 return (float) Math.acos(value); 131 public static float asin(float value) { argument 132 return (float) Math.asin(value); 135 public static float atan(float value) { argument 136 return (float) Math.atan(value); 151 public static float norm(float start, float stop, float value) { argument 152 return (value - start) / (stop - start); 155 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { argument 156 return maxStart + (maxStart - maxStop) * ((value [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | SimpleAdapter.java | 39 * is invoked. If the returned value is true, binding has occurred. 40 * If the returned value is false, the following views are then tried in order: 42 * <li> A view that implements Checkable (e.g. CheckBox). The expected bind value is a boolean. 43 * <li> TextView. The expected bind value is a string and {@link #setViewText(TextView, String)} 45 * <li> ImageView. The expected bind value is a resource id or a string and 235 * @param value the value retrieved from the data set 239 public void setViewImage(ImageView v, int value) { argument 240 v.setImageResource(value); 248 * By default, the value wil 260 setViewImage(ImageView v, String value) argument [all...] |
H A D | SimpleCursorTreeAdapter.java | 33 * is invoked. If the returned value is true, binding has occurred. If the 34 * returned value is false and the view to bind is a TextView, 35 * {@link #setViewText(TextView, String)} is invoked. If the returned value 269 * value will be treated as a Uri. Intended to be overridden by Adapters 273 * @param value the value retrieved from the cursor 275 protected void setViewImage(ImageView v, String value) { argument 277 v.setImageResource(Integer.parseInt(value)); 279 v.setImageURI(Uri.parse(value));
|
/frameworks/base/core/java/com/android/internal/util/ |
H A D | FastXmlSerializer.java | 152 public XmlSerializer attribute(String namespace, String name, String value) throws IOException, argument 162 escapeAndAppendString(value); 319 public void setProperty(String name, Object value) throws IllegalArgumentException, argument
|
H A D | TypedProperties.java | 202 // Read a value of the appropriate type, and insert into the map. 203 final Object value = parseValue(st, type); 208 if (value.getClass() != oldValue.getClass()) { 213 map.put(propertyName, value); 229 * @return a Boolean, Number subclass, or String representing the value. 257 long value; 259 value = Long.decode(st.sval); 264 // Ensure that the type can hold this value, and return. 268 if (value < Byte.MIN_VALUE || value > Byt 419 TypeException(String property, Object value, String requestedType) argument [all...] |
H A D | XmlUtils.java | 52 convertValueToList(CharSequence value, String[] options, int defaultValue) argument 54 if (null != value) { 56 if (value.equals(options[i])) 65 convertValueToBoolean(CharSequence value, boolean defaultValue) argument 69 if (null == value) 72 if (value.equals("1") 73 || value.equals("true") 74 || value.equals("TRUE")) 91 int value; 127 convertValueToUnsignedInt(String value, in argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | DrawableHolder.java | 61 * Adds an animation that interpolates given property from its current value 62 * to the given value. 67 * @param toValue the target value 158 public void setX(float value) { argument 159 mX = value; 162 public void setY(float value) { argument 163 mY = value; 166 public void setScaleX(float value) { argument 167 mScaleX = value; 170 public void setScaleY(float value) { argument [all...] |
H A D | LockSettingsService.java | 55 private static final String COLUMN_VALUE = "value"; 86 String value = Settings.Secure.getString(cr, validSetting); 87 if (value != null) { 88 setString(validSetting, value, 0); 125 public void setBoolean(String key, boolean value, int userId) throws RemoteException { argument 128 writeToDb(key, value ? "1" : "0", userId); 132 public void setLong(String key, long value, int userId) throws RemoteException { argument 135 writeToDb(key, Long.toString(value), userId); 139 public void setString(String key, String value, int userId) throws RemoteException { argument 142 writeToDb(key, value, userI 309 writeToDb(String key, String value, int userId) argument 313 writeToDb(SQLiteDatabase db, String key, String value, int userId) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_media_AudioSystem.cpp | 216 android_media_AudioSystem_setMasterVolume(JNIEnv *env, jobject thiz, jfloat value) argument 218 return check_AudioSystem_Command(AudioSystem::setMasterVolume(value)); 224 float value; local 225 if (AudioSystem::getMasterVolume(&value) != NO_ERROR) { 226 value = -1.0; 228 return value;
|
H A D | android_util_EventLog.cpp | 45 * static native int writeEvent(int tag, int value) 48 jint tag, jint value) 50 return android_btWriteLog(tag, EVENT_TYPE_INT, &value, sizeof(value)); 55 * static native int writeEvent(long tag, long value) 58 jint tag, jlong value) 60 return android_btWriteLog(tag, EVENT_TYPE_LONG, &value, sizeof(value)); 65 * static native int writeEvent(int tag, String value) 68 jint tag, jstring value) { 47 android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, jint tag, jint value) argument 57 android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, jint tag, jlong value) argument 67 android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz, jint tag, jstring value) argument 91 android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, jint tag, jobjectArray value) argument [all...] |
H A D | android_util_XmlBlock.cpp | 324 Res_value value; local 325 if (st->getAttributeValue(idx, &value) < 0) { 329 return value.dataType == value.TYPE_REFERENCE 330 || value.dataType == value.TYPE_ATTRIBUTE 331 ? value.data : 0;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | PerformanceCollectorTest.java | 513 public void writeMeasurement(String label, long value) { argument 514 timingResults.putLong(label, value); 517 public void writeMeasurement(String label, float value) { argument 518 timingResults.putFloat(label, value); 521 public void writeMeasurement(String label, String value) { argument 522 timingResults.putString(label, value);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | LruCacheTest.java | 183 * Replacing the value for a key doesn't cause an eviction but it does bring 200 @Override protected int sizeOf(String key, String value) { 201 return key.length() + value.length(); 216 @Override protected int sizeOf(String key, String value) { 217 return value.length(); 245 @Override protected int sizeOf(String key, int[] value) { 246 return value[0]; 267 @Override protected int sizeOf(String key, String value) { 286 @Override protected int sizeOf(String key, String value) { 287 return value 467 assertHit(LruCache<String, String> cache, String key, String value) argument 479 assertCreated(LruCache<String, String> cache, String key, String value) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | FileRotatorTest.java | 80 // write single new value 134 // combine a second time, should leave rotated value untouched, and 263 // should omit last value, since it only touches at currentTime 365 // verify backup value was recovered; no_backup indicates that 377 private void write(String name, String value) throws IOException { argument 380 out.writeUTF(value); 384 private static Writer writer(final String value) { argument 387 new DataOutputStream(out).writeUTF(value); 419 for (String value : expected) { 420 if (!actualCopy.remove(value)) { [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 62 * Checking whether the return value matches the value of the inBitmap 85 * If set to a value > 1, requests the decoder to subsample the original 90 * number of pixels. Any value <= 1 is treated the same as 1. Note: the 335 public static Bitmap decodeResourceStream(Resources res, TypedValue value, argument 342 if (opts.inDensity == 0 && value != null) { 343 final int density = value.density; 375 final TypedValue value = new TypedValue(); 376 is = res.openRawResource(id, value); 378 bm = decodeResourceStream(res, value, i [all...] |