Searched defs:need (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java37 public static int idealByteArraySize(int need) { argument
39 if (need <= (1 << i) - 12)
42 return need;
45 public static int idealBooleanArraySize(int need) { argument
46 return idealByteArraySize(need);
49 public static int idealShortArraySize(int need) { argument
50 return idealByteArraySize(need * 2) / 2;
53 public static int idealCharArraySize(int need) { argument
54 return idealByteArraySize(need * 2) / 2;
57 public static int idealIntArraySize(int need) { argument
61 idealFloatArraySize(int need) argument
65 idealObjectArraySize(int need) argument
69 idealLongArraySize(int need) argument
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DLongSparseArray.java354 public static int idealByteArraySize(int need) { argument
356 if (need <= (1 << i) - 12)
359 return need;
362 public static int idealLongArraySize(int need) { argument
363 return idealByteArraySize(need * 8) / 8;
H A DSparseArrayCompat.java345 static int idealByteArraySize(int need) { argument
347 if (need <= (1 << i) - 12)
350 return need;
353 static int idealIntArraySize(int need) { argument
354 return idealByteArraySize(need * 4) / 4;
/frameworks/ex/common/java/com/android/common/widget/
H A DGroupingListAdapter.java183 * Scans over the entire cursor looking for duplicate phone numbers that need
218 private int idealLongArraySize(int need) { argument
219 return idealByteArraySize(need * 8) / 8;
223 private int idealByteArraySize(int need) { argument
225 if (need <= (1 << i) - 12)
228 return need;
/frameworks/av/media/libstagefright/mp4/
H A DFragmentedMP4Parser.cpp577 if ((err = need(8)) != OK) {
587 if ((err = need(16)) != OK) {
598 if ((err = need(offset + 16)) != OK) {
639 if ((err = need(offset + 4)) < OK) {
649 if ((err = need(offset + 8)) < OK) {
658 // We need at least some entries.
695 if ((err = need(offset + headerSize)) != OK) {
745 if ((err = need(size)) != OK) {
1010 status_t FragmentedMP4Parser::need(size_t size) { function in class:android::FragmentedMP4Parser
1023 // ALOGV("need(
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewCore.java160 // No need to assign this in the WebCore thread.
168 // We need to wait for the initial thread creation before sending
189 // time we need to check the value as all the other public methods on
234 * frame-related functions. We need to create a new view which
1347 // finished the first layout yet, we need to set
2408 /* Called by JNI. The coordinates are in doc coordinates, so they need to
2594 // for non-mobile site, we don't need minPrefWidth, set it as 0
2768 private void needTouchEvents(boolean need) { argument
2771 WebViewClassic.WEBCORE_NEED_TOUCH_EVENTS, need ? 1 : 0, 0)

Completed in 86 milliseconds