Searched defs:value (Results 26 - 50 of 335) sorted by relevance

1234567891011>>

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DBarrierConsumer.java72 public boolean consume(A value) { argument
80 mValues.add(value);
H A DConsumers.java29 A value) {
32 accepted = consumer.consume(value);
34 if (!accepted && value != null) value.close();
39 final Consumer<A> consumer, final A value) {
41 consumer.consume(value);
45 consumer.consume(value);
52 final Consumer<A> consumer, final A value) {
54 consumeCloseable(consumer, value);
58 consumeCloseable(consumer, value);
28 consumeCloseable(Consumer<A> consumer, A value) argument
38 consumeAsync(Handler handler, final Consumer<A> consumer, final A value) argument
51 consumeCloseableAsync(Handler handler, final Consumer<A> consumer, final A value) argument
[all...]
H A DNow.java25 public Now(C value) { argument
26 mValue = value;
H A DNowOrLaterWrapper.java31 public boolean consume(A value) {
32 return consumer.consume(get(value));
49 public abstract B get(A value); argument
H A DCachedLater.java25 * Abstract base class for a one-place cache that holds a value that is produced
52 * Saves a new value to the cache.
54 protected void store(A value) { argument
58 mValue = value;
67 consumer.consume(value);
73 * Gets the value.
75 * @param consumer A consumer that will be given the cached value.
82 A value;
85 value = mValue;
95 consumer.consume(value);
[all...]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockSuggestionExtras.java33 public MockSuggestionExtras put(String name, Object value) { argument
34 mMap.put(name, value);
H A DIconLoaderTest.java46 public void assertNull(NowOrLater<?> value) { argument
47 if (value.haveNow()) {
48 assertNull(value.getNow());
51 value.getLater(consumer);
56 public void assertNotNull(NowOrLater<?> value) { argument
57 if (value.haveNow()) {
58 assertNotNull(value.getNow());
61 value.getLater(consumer);
69 public boolean consume(Object value) { argument
72 mValue = value;
[all...]
/packages/apps/UnifiedEmail/src/com/android/bitmap/
H A DAltBitmapCache.java55 protected int sizeOf(final ReusableBitmap value) { argument
56 return value.getByteCount();
90 public void offer(final ReusableBitmap value) { argument
92 super.offer(value);
H A DPooledCache.java22 V put(K key, V value); argument
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
H A DHexDump.java121 * Dump a long value into a StringBuffer.
123 * @param _lbuffer the StringBuffer to dump the value in
124 * @param value the long value to be dumped
125 * @return StringBuffer containing the dumped value.
127 private static StringBuffer dump(StringBuffer _lbuffer, long value) { argument
130 .append(_hexcodes[((int) (value >> _shifts[j])) & 15]);
136 * Dump a byte value into a StringBuffer.
138 * @param _cbuffer the StringBuffer to dump the value in
139 * @param value th
142 dump(StringBuffer _cbuffer, byte value) argument
[all...]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/
H A DUnstructuredField.java32 private String value; field in class:UnstructuredField
34 protected UnstructuredField(String name, String body, String raw, String value) { argument
36 this.value = value;
40 return value;
45 final String value = DecoderUtil.decodeEncodedWords(body);
46 return new UnstructuredField(name, body, raw, value);
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
H A DStringResource.java24 public StringResource(final String name, final String value, final String comment) { argument
26 mValue = value;
/packages/apps/CertInstaller/src/com/android/certinstaller/
H A DCertInstallerMain.java120 private void startInstallActivity(String mimeType, byte[] value) { argument
123 intent.putExtra(KeyChain.EXTRA_PKCS12, value);
129 intent.putExtra(KeyChain.EXTRA_CERTIFICATE, value);
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
H A DSpannedTestUtils.java30 * Utility class to check the value of spanned text in text views.
70 private static int getNumForegroundColorSpansBetween(Spanned value, int start, int end) { argument
71 return value.getSpans(start, end, ForegroundColorSpan.class).length;
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DSearchUtil.java85 * @param value The string to search.
88 * found in value.
91 static int contains(String value, String substring) { argument
92 if (value.length() < substring.length()) {
109 for (int i = 0; i < value.length(); i = findNextTokenStart(value, i)) {
111 for (int j = i; j < value.length() && numMatch < substringLength; ++numMatch) {
112 int valueCp = Character.toLowerCase(value.codePointAt(j));
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
H A DNoNullCursorAsyncQueryHandlerTest.java146 public static <E> ObjectHolder<E> newInstance(E value) { argument
148 holder.obj = value;
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/
H A DNameConverterTests.java85 * Checks that the given field and value are present in the structured name map (or not present
86 * if the given value is null). If the value is present and matches, the key is removed from
89 * @param value Expected value for the field (null if it is not expected to be populated).
92 private void checkNameComponent(String field, String value, argument
94 if (TextUtils.isEmpty(value)) {
97 assertEquals(value, structuredName.get(field));
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DSimpleIcsWriter.java61 * Write a tag with a value.
63 public void writeTag(String name, String value) { argument
64 // Belt and suspenders here; don't crash on null value; just return
65 if (TextUtils.isEmpty(value)) {
69 // The following properties take a TEXT value, which need to be escaped.
96 value = escapeTextValue(value);
98 writeLine(name + ":" + value);
121 * Quote a param-value string, according to RFC 5545, section 3.1
128 // The spec doesn't allow putting double-quotes in a param value, s
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DLruCache.java45 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
46 super(value, queue);
60 public synchronized V put(K key, V value) { argument
62 mLruMap.put(key, value);
64 key, new Entry<K, V>(key, value, mQueue));
70 V value = mLruMap.get(key);
71 if (value != null) return value;
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
H A DLruCache.java49 public Entry(K key, V value, ReferenceQueue<V> queue) { argument
50 super(value, queue);
69 public synchronized V put(K key, V value) { argument
71 mLruMap.put(key, value);
73 key, new Entry<K, V>(key, value, mQueue));
79 V value = mLruMap.get(key);
80 if (value != null) return value;
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
H A DParameterStyles.java32 void setSelected(int value); argument
/packages/apps/Settings/src/com/android/settings/
H A DNsdEnabler.java67 public boolean onPreferenceChange(Preference preference, Object value) { argument
69 final boolean desiredState = (Boolean) value;
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartAxis.java33 /** Convert raw value into screen point. */
34 public float convertToPoint(long value); argument
35 /** Convert screen point into raw value. */
39 * Build label that describes given raw value. If the label is rounded for
40 * display, return the rounded value.
42 public long buildLabel(Resources res, SpannableStringBuilder builder, long value); argument
48 * Test if given raw value should cause the axis to grow or shrink;
49 * returning positive value to grow and negative to shrink.
51 public int shouldAdjustAxis(long value); argument
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
H A DSimpleBackupSharedPreference.java35 private static final String VALUE = "value";
37 public SimpleBackupSharedPreference(final String key, final Object value) { argument
39 mValue = value;
52 public void setValue(Object value) { argument
53 mValue = value;
74 Object value = json.get(VALUE);
75 if (value instanceof JSONArray) {
77 final JSONArray array = (JSONArray) value;
81 value = set;
83 return new SimpleBackupSharedPreference(json.getString(KEY), value);
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DLruCache.java67 * @param value, a non-null value.
69 public synchronized void putElement(K key, V value) { argument
70 put(key, value);

Completed in 7099 milliseconds

1234567891011>>