Searched defs:need (Results 1 - 7 of 7) 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/av/media/libnbaio/
H A DNBLog.cpp180 size_t need = entry->mLength + 3; // mEvent, mLength, data[length], mLength local
181 // need = number of bytes remaining to write
182 if (written > need) {
183 written = need;
191 if (rear + written == mSize && (need -= written) > 0) {
192 for (i = 0; i < need; ++i) {
195 written += need;
/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.cpp582 if ((err = need(8)) != OK) {
592 if ((err = need(16)) != OK) {
603 if ((err = need(offset + 16)) != OK) {
644 if ((err = need(offset + 4)) < OK) {
654 if ((err = need(offset + 8)) < OK) {
663 // We need at least some entries.
700 if ((err = need(offset + headerSize)) != OK) {
750 if ((err = need(size)) != OK) {
1022 status_t FragmentedMP4Parser::need(size_t size) { function in class:android::FragmentedMP4Parser
1035 // ALOGV("need(
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewCore.java162 // No need to assign this in the WebCore thread.
170 // We need to wait for the initial thread creation before sending
191 // time we need to check the value as all the other public methods on
236 * frame-related functions. We need to create a new view which
1350 // finished the first layout yet, we need to set
2409 /* Called by JNI. The coordinates are in doc coordinates, so they need to
2595 // for non-mobile site, we don't need minPrefWidth, set it as 0
2769 private void needTouchEvents(boolean need) { argument
2772 WebViewClassic.WEBCORE_NEED_TOUCH_EVENTS, need ? 1 : 0, 0)

Completed in 193 milliseconds