Searched defs:value (Results 251 - 275 of 335) sorted by relevance

<<11121314

/packages/apps/Mms/src/com/android/mms/util/
H A DBlobCache.java40 // file. The offset is 0 when the slot is free. Note that 0 is a valid value
425 // The user can input a non-null value in req.buffer, and this method will
641 static void writeInt(byte[] buf, int offset, int value) { argument
643 buf[offset + i] = (byte) (value & 0xff);
644 value >>= 8;
648 static void writeLong(byte[] buf, int offset, long value) { argument
650 buf[offset + i] = (byte) (value & 0xff);
651 value >>= 8;
/packages/apps/MusicFX/src/com/android/musicfx/
H A DControlPanelEffect.java348 * Sets boolean parameter to value for given key
355 * @param value
358 final int audioSession, final Key key, final boolean value) {
363 boolean enabled = value;
368 if (value == true) {
465 virtualizerEffect.setEnabled(value);
474 bassBoostEffect.setEnabled(value);
483 equalizerEffect.setEnabled(value);
495 // presetReverbEffect.setEnabled(value);
514 Log.e(TAG, "setParameterBoolean: " + key + "; " + value
357 setParameterBoolean(final Context context, final String packageName, final int audioSession, final Key key, final boolean value) argument
[all...]
/packages/apps/Nfc/src/com/android/nfc/
H A DSendUi.java502 static float getDegreesForRotation(int value) { argument
503 switch (value) {
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DInstallFlowAnalytics.java190 private static void writeBoolean(Parcel dest, boolean value) { argument
191 dest.writeByte((byte) (value ? 1 : 0));
524 private static final byte clipUnsignedValueToUnsignedByte(long value) { argument
525 if (value < 0) {
527 } else if (value > 0xff) {
530 return (byte) value;
534 private static final int clipUnsignedLongToUnsignedInt(long value) { argument
535 if (value < 0) {
537 } else if (value > 0xffffffffL) {
540 return (int) value;
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DApnEditor.java334 * raw value of the protocol preference (e.g., "IPV4V6"). If unknown,
634 private String starify(String value) { argument
635 if (value == null || value.length() == 0) {
638 char[] password = new char[value.length()];
646 private String checkNull(String value) { argument
647 if (value == null || value.length() == 0) {
650 return value;
654 private String checkNotSet(String value) { argument
[all...]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageMeasurement.java89 StorageMeasurement value = sInstances.get(volume);
90 if (value == null) {
91 value = new StorageMeasurement(context.getApplicationContext(), volume);
92 sInstances.put(volume, value);
94 return value;
105 * When measuring internal storage, this value includes the code size of
108 * emulates external storage, this value also includes emulated storage
111 * When measuring a physical {@link StorageVolume}, this value includes
532 private static void addValue(SparseLongArray array, int key, long value) { argument
533 array.put(key, array.get(key) + value);
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartDataUsageView.java68 /** Current maximum value of {@link #mVert}. */
258 // since we just changed axis, make sweep recalculate its value
494 public float convertToPoint(long value) { argument
495 return (mSize * (value - mMin)) / (mMax - mMin);
504 public long buildLabel(Resources res, SpannableStringBuilder builder, long value) { argument
506 builder.replace(0, builder.length(), Long.toString(value));
507 return value;
536 public int shouldAdjustAxis(long value) { argument
576 public float convertToPoint(long value) { argument
579 final double normalized = ((double) value
604 buildLabel(Resources res, SpannableStringBuilder builder, long value) argument
652 shouldAdjustAxis(long value) argument
[all...]
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigController.java100 /* This value comes from "wifi_ip_settings" resource array */
288 private void addRow(ViewGroup group, int name, String value) { argument
291 ((TextView) row.findViewById(R.id.value)).setText(value);
843 private void setSelection(Spinner spinner, String value) { argument
844 if (value != null) {
848 if (value.equals(adapter.getItem(i))) {
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
H A DMimeMessage.java96 * @return a long, locally-generated message-ID value
103 int value = sRandom.nextInt() & 31;
104 char c = "0123456789abcdefghijklmnopqrstuv".charAt(value);
156 * Return the internal mHeader value, with very lazy initialization.
311 * Returns the unfolded, decoded value of the Subject header.
371 * @param messageId the new Message-ID value
380 * Get the mime "Message-ID" header. This value will be preloaded with a locally-generated
381 * random ID, if the value has not previously been set. Local generation can be inhibited/
426 public void addHeader(String name, String value) throws MessagingException { argument
427 getMimeHeaders().addHeader(name, value);
431 setHeader(String name, String value) argument
457 setExtendedHeader(String name, String value) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
H A DHtmlParser.java167 * value because they might be interpreted by the browser as HTML control
171 * part of an unquoted attribute value, but we leave them here for
436 private String value; field in class:HtmlParser.AttributeScanner
440 // around the attribute value, but quoting and escaping of the value itself.
461 value = null;
494 * Scans for a tag attribute value. Sets startValuePos_ and endValuePos_.
504 // Handle cases with no attribute value.
515 // Handle cases with no attribute value.
539 // End of tag or end of value
[all...]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlParser.java167 * value because they might be interpreted by the browser as HTML control
171 * part of an unquoted attribute value, but we leave them here for
436 private String value; field in class:HtmlParser.AttributeScanner
440 // around the attribute value, but quoting and escaping of the value itself.
461 value = null;
494 * Scans for a tag attribute value. Sets startValuePos_ and endValuePos_.
504 // Handle cases with no attribute value.
515 // Handle cases with no attribute value.
539 // End of tag or end of value
[all...]
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
H A DMediaItemView.java141 // Initialize the progress value
534 * Clamps the input value v to the range [low, high].
642 protected int sizeOf(ThumbnailKey key, Bitmap value) {
643 return value.getByteCount();
648 void put(ThumbnailKey key, Bitmap value) { argument
649 mCache.put(key, value);
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntityDelta.java174 * @param forceSelection if true, will try to return some value even if a super-primary
243 * Find entry with the given {@link BaseColumns#_ID} value.
435 * {@link RawContacts#AGGREGATION_MODE} to the given value.
496 * Next value to assign to {@link #mIdColumn} when building an insert
656 public void put(String key, String value) { argument
658 mAfter.put(key, value);
661 public void put(String key, byte[] value) { argument
663 mAfter.put(key, value);
666 public void put(String key, int value) { argument
668 mAfter.put(key, value);
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyboardBuilder.java722 private static boolean matchInteger(final TypedArray a, final int index, final int value) { argument
725 return !a.hasValue(index) || a.getInt(index, 0) == value;
728 private static boolean matchBoolean(final TypedArray a, final int index, final boolean value) { argument
731 return !a.hasValue(index) || a.getBoolean(index, false) == value;
734 private static boolean matchString(final TypedArray a, final int index, final String value) { argument
738 || StringUtils.containsInArray(value, a.getString(index).split("\\|"));
846 private static String textAttr(final String value, final String name) { argument
847 return value != null ? String.format(" %s=%s", name, value) : "";
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
H A DFusionDictionary.java52 // always hold the same value except between dictionary address compression, during which
54 // update the AfterUpdate value, and the code will move them to BeforeUpdate before
105 * value is the frequency of this terminal. A terminal may have non-null shortcuts and/or
119 // generation. Before and After always hold the same value except during dictionary
121 // same time. Updating will update the AfterUpdate value, and the code will move them
362 public void addOptionAttribute(final String key, final String value) { argument
363 mOptions.mAttributes.put(key, value);
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp68 HeaderReadWriteUtils::AttributeMap::mapped_type value; local
69 HeaderReadWriteUtils::insertCharactersIntoVector(valueChars, &value);
70 attributeMap[key] = value;
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DDefaultSoftKeyboardJAJP.java1377 * Finds the index of a value in a int[].
1379 * @param value the int[] to search in,
1380 * @param mode the value need to find index,
1381 * @return the index of the value.
1383 private int findIndexOfValue(int[] value, int mode) { argument
1384 for (int i = 0; i < value.length; i++) {
1385 if (value[i] == mode) {
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DNameSplitter.java184 private void putValueIfPresent(ContentValues values, String name, String value) { argument
185 if (value != null) {
186 values.put(name, value);
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadInfo.java138 private void addHeader(DownloadInfo info, String header, String value) { argument
139 info.mRequestHeaders.add(Pair.create(header, value));
604 // TODO: increase strictness of value returned for unknown
/packages/services/Telephony/src/com/android/phone/
H A DCellBroadcastSms.java605 // This means, that we have to ignore the first value and check every
606 // 3rd value starting with the 2nd of all. This value indicates, where we
607 // will store the appropriate bSelected value, which is 2 values behind it.
616 private static void setCbSmsBSelectedValue(boolean value, int pos) { argument
618 mBSelected[pos] = (value == true ? 1 : 0);
620 Log.e(LOG_TAG,"Error! Invalid value position.");
628 // TODO: Change the return value to a RIL_BroadcastSMSConfig
633 private static void setCbSmsNoOfStructs(int value) { argument
636 mConfigDataComplete[0] = value;
639 setConfigDataCompleteBSelected(boolean value, int serviceCategory) argument
[all...]
/packages/services/Telephony/src/com/android/phone/sip/
H A DSipEditor.java98 * @param initValue The initial value of the preference.
99 * @param defaultSummary The default summary value of the preference
100 * when the preference value is empty.
117 void setValue(String value) { argument
120 ((EditTextPreference) preference).setText(value);
122 Log.v(TAG, this + ": setValue() " + value + ": " + oldValue
126 ((ListPreference) preference).setValue(value);
129 if (TextUtils.isEmpty(value)) {
132 preference.setSummary(scramble(value));
134 && value
[all...]
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_btservice_AdapterService.cpp490 char value[PROPERTY_VALUE_MAX]; local
491 property_get("bluetooth.mock_stack", value, "");
493 const char *id = (strcmp(value, "1")? BT_STACK_MODULE_ID : BT_STACK_TEST_MODULE_ID);
708 static jboolean setAdapterPropertyNative(JNIEnv *env, jobject obj, jint type, jbyteArray value) { argument
715 val = env->GetByteArrayElements(value, NULL);
718 prop.len = env->GetArrayLength(value);
722 env->ReleaseByteArrayElements(value, val, 0);
774 jint type, jbyteArray value) {
781 val = env->GetByteArrayElements(value, NULL);
789 env->ReleaseByteArrayElements(value, va
773 setDevicePropertyNative(JNIEnv *env, jobject obj, jbyteArray address, jint type, jbyteArray value) argument
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBrowserSettings.java94 // The initial value in the text zoom range
99 // The initial value in the double tap zoom range
414 public void setDebugEnabled(boolean value) { argument
416 edit.putBoolean(PREF_DEBUG_MENU, value);
417 if (!value) {
418 // Reset to "safe" value
665 public void setHomePage(String value) { argument
666 mPrefs.edit().putString(PREF_HOMEPAGE, value).apply();
673 public void setAutofillEnabled(boolean value) { argument
674 mPrefs.edit().putBoolean(PREF_AUTOFILL_ENABLED, value)
[all...]
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/
H A DRecurrencePickerDialog.java233 int value;
235 value = Integer.parseInt(s.toString());
237 value = mDefault;
240 if (value < mMin) {
241 value = mMin;
243 } else if (value > mMax) {
245 value = mMax;
251 s.append(Integer.toString(value));
255 onChange(value);
259 void onChange(int value) { argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DUtil.java90 public static boolean isSupported(String value, List<String> supported) { argument
91 return supported == null ? false : supported.indexOf(value) >= 0;
645 // This is the value for android.hardware.Camera.setDisplayOrientation.

Completed in 810 milliseconds

<<11121314