/frameworks/volley/tests/src/com/android/volley/toolbox/ |
D | ByteArrayPoolTest.java | 23 ByteArrayPool pool = new ByteArrayPool(32); in testReusesBuffer() local 25 byte[] buf1 = pool.getBuf(16); in testReusesBuffer() 26 byte[] buf2 = pool.getBuf(16); in testReusesBuffer() 28 pool.returnBuf(buf1); in testReusesBuffer() 29 pool.returnBuf(buf2); in testReusesBuffer() 31 byte[] buf3 = pool.getBuf(16); in testReusesBuffer() 32 byte[] buf4 = pool.getBuf(16); in testReusesBuffer() 39 ByteArrayPool pool = new ByteArrayPool(32); in testObeysSizeLimit() local 41 byte[] buf1 = pool.getBuf(16); in testObeysSizeLimit() 42 byte[] buf2 = pool.getBuf(16); in testObeysSizeLimit() [all …]
|
D | PoolingByteArrayOutputStreamTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32768); in testPooledOneBuffer() local 29 writeOneBuffer(pool); in testPooledOneBuffer() 30 writeOneBuffer(pool); in testPooledOneBuffer() 31 writeOneBuffer(pool); in testPooledOneBuffer() 35 ByteArrayPool pool = new ByteArrayPool(32768); in testPooledIndividualWrites() local 36 writeBytesIndividually(pool); in testPooledIndividualWrites() 37 writeBytesIndividually(pool); in testPooledIndividualWrites() 38 writeBytesIndividually(pool); in testPooledIndividualWrites() 42 ByteArrayPool pool = new ByteArrayPool(0); in testUnpooled() local 43 writeOneBuffer(pool); in testUnpooled() [all …]
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/ |
D | VideoEditorBuffer.c | 55 VIDEOEDITOR_BUFFER_Pool* pool; in VIDEOEDITOR_BUFFER_allocatePool() local 61 pool = M4OSA_NULL; in VIDEOEDITOR_BUFFER_allocatePool() 62 pool = (VIDEOEDITOR_BUFFER_Pool*)M4OSA_32bitAlignedMalloc( in VIDEOEDITOR_BUFFER_allocatePool() 65 if (M4OSA_NULL == pool) in VIDEOEDITOR_BUFFER_allocatePool() 72 pool->pNXPBuffer = M4OSA_NULL; in VIDEOEDITOR_BUFFER_allocatePool() 73 pool->pNXPBuffer = (VIDEOEDITOR_BUFFER_Buffer*)M4OSA_32bitAlignedMalloc( in VIDEOEDITOR_BUFFER_allocatePool() 77 if(M4OSA_NULL == pool->pNXPBuffer) in VIDEOEDITOR_BUFFER_allocatePool() 85 pool->pNXPBuffer[index].pData = M4OSA_NULL; in VIDEOEDITOR_BUFFER_allocatePool() 89 pool->poolName = M4OSA_NULL; in VIDEOEDITOR_BUFFER_allocatePool() 90 pool->poolName = (M4OSA_Char*)M4OSA_32bitAlignedMalloc( in VIDEOEDITOR_BUFFER_allocatePool() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
D | jni_util.h | 213 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in WrapObjectInJava() local 214 return pool ? pool->WrapObject(c_object, env, j_object, owns) : false; in WrapObjectInJava() 222 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in WrapNewObjectInJava() local 223 if (pool) { in WrapNewObjectInJava() 224 jobject result = pool->CreateJavaObject(env); in WrapNewObjectInJava() 236 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in ConvertFromJava() local 237 return pool && j_object in ConvertFromJava() 238 ? pool->ObjectWithID(pool->GetObjectID(env, j_object)) in ConvertFromJava() 246 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in DeleteNativeObject() local 247 return pool && j_object in DeleteNativeObject() [all …]
|
/frameworks/base/tools/aapt/ |
D | StringPool.cpp | 34 void printStringPool(const ResStringPool* pool) in printStringPool() argument 37 const size_t N = pool->size(); in printStringPool() 40 if (pool->isUTF8()) { in printStringPool() 41 uniqueStrings.add(pool->string8At(i, &len)); in printStringPool() 43 uniqueStrings.add(pool->stringAt(i, &len)); in printStringPool() 49 (ZD_TYPE)uniqueStrings.size(), pool->isUTF8() ? "UTF-8" : "UTF-16", in printStringPool() 50 pool->isSorted() ? "sorted" : "non-sorted", in printStringPool() 51 (ZD_TYPE)N, (ZD_TYPE)pool->styleCount(), (ZD_TYPE)pool->bytes()); in printStringPool() 53 const size_t NS = pool->size(); in printStringPool() 55 String8 str = pool->string8ObjectAt(s); in printStringPool() [all …]
|
D | StringPool.h | 32 void printStringPool(const ResStringPool* pool); 121 status_t writeStringBlock(const sp<AaptFile>& pool);
|
D | Resource.cpp | 460 const ResStringPool* pool = &parser.getStrings(); in validateAttr() local 472 pool = table.getTableStringBlock(strIdx); in validateAttr() 474 if (pool != NULL) { in validateAttr() 475 str = pool->stringAt(value.data, &len); in validateAttr() 489 if (pool == NULL) { in validateAttr() 495 if ((str=pool->stringAt(value.data, &len)) == NULL) { in validateAttr()
|
D | Command.cpp | 486 const ResStringPool* pool = res.getTableStringBlock(0); in doDump() local 487 printStringPool(pool); in doDump()
|
/frameworks/base/docs/html/training/multiple-threads/ |
D | create-threadpool.jd | 41 in its pool becomes free. To run a task, all you have to do is add it to the queue. 44 A thread pool can run multiple parallel instances of a task, so you should ensure that your 63 You may only want a single instance of a thread pool for your app, in order to have a 65 {@link java.lang.Runnable} types, you may want to have a thread pool for each one, but each 99 Start your tasks by calling methods in the thread pool class. 102 Define a method in the thread pool class that adds a task to a thread pool's queue. For 112 // Adds a download task to the thread pool for execution 150 Once you have the overall class structure, you can start defining the thread pool. To 156 Initial pool size and maximum pool size 159 The initial number of threads to allocate to the pool, and the maximum allowable number. [all …]
|
D | index.jd | 51 thread pool object. You'll also learn how to define code to run on a thread and how to 67 Learn how to create an object that manages a pool of {@link java.lang.Thread} objects and 75 Learn how to run a {@link java.lang.Runnable} on a thread from the thread pool. 81 Learn how to communicate from a thread in the thread pool to the UI thread.
|
D | run-code.jd | 33 that run on them. This lesson shows you how to run a task on a thread pool. To do this, 34 you add the task to the pool's work queue. When a thread becomes available, the 48 To start a task object on a thread in a particular thread pool, pass the 50 ThreadPoolExecutor.execute()}. This call adds the task to the thread pool's work queue. When an 104 * thread pool work queue
|
/frameworks/volley/src/com/android/volley/toolbox/ |
D | PoolingByteArrayOutputStream.java | 39 public PoolingByteArrayOutputStream(ByteArrayPool pool) { in PoolingByteArrayOutputStream() argument 40 this(pool, DEFAULT_SIZE); in PoolingByteArrayOutputStream() 51 public PoolingByteArrayOutputStream(ByteArrayPool pool, int size) { in PoolingByteArrayOutputStream() argument 52 mPool = pool; in PoolingByteArrayOutputStream()
|
D | BasicNetwork.java | 77 public BasicNetwork(HttpStack httpStack, ByteArrayPool pool) { in BasicNetwork() argument 79 mPool = pool; in BasicNetwork()
|
/frameworks/base/core/java/android/os/ |
D | Parcel.java | 288 final Parcel[] pool = sOwnedPool; in obtain() local 289 synchronized (pool) { in obtain() 292 p = pool[i]; in obtain() 294 pool[i] = null; in obtain() 313 final Parcel[] pool; in recycle() local 315 pool = sOwnedPool; in recycle() 318 pool = sHolderPool; in recycle() 321 synchronized (pool) { in recycle() 323 if (pool[i] == null) { in recycle() 324 pool[i] = this; in recycle() [all …]
|
/frameworks/av/libvideoeditor/vss/stagefrightshells/inc/ |
D | VideoEditorBuffer.h | 124 M4OSA_ERR VIDEOEDITOR_BUFFER_getOldestBuffer(VIDEOEDITOR_BUFFER_Pool *pool,
|
/frameworks/base/tests/CoreTests/android/core/ |
D | TestWebServer.java | 407 Vector pool = threads; in run() local 408 synchronized (pool) { in run() 409 if (pool.size() >= workers) { in run() 414 pool.addElement(this); in run()
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteDatabase.java | 276 final SQLiteConnectionPool pool; in dispose() local 285 pool = mConnectionPoolLocked; in dispose() 294 if (pool != null) { in dispose() 295 pool.close(); in dispose() 363 final SQLiteConnectionPool pool; in createSession() local 366 pool = mConnectionPoolLocked; in createSession() 368 return new SQLiteSession(pool); in createSession()
|
D | SQLiteConnectionPool.java | 176 SQLiteConnectionPool pool = new SQLiteConnectionPool(configuration); in open() local 177 pool.open(); // might throw in open() 178 return pool; in open()
|
D | SQLiteConnection.java | 160 private SQLiteConnection(SQLiteConnectionPool pool, in SQLiteConnection() argument 163 mPool = pool; in SQLiteConnection() 187 static SQLiteConnection open(SQLiteConnectionPool pool, in open() argument 190 SQLiteConnection connection = new SQLiteConnection(pool, configuration, in open()
|
/frameworks/compile/libbcc/ |
D | README.rst | 136 header, string pool, dependencies table, relocation table, exported 149 represents the index of such string in this string pool.
|
/frameworks/base/docs/html/guide/components/ |
D | processes-and-threads.jd | 312 android.os.AsyncTask#doInBackground doInBackground()} callback method, which runs in a pool of 383 a pool of threads that the system maintains in the same process as the {@link android.os.IBinder 388 in the pool. Because a service can have more than one client, more than one pool thread can engage 399 getType()}—are called from a pool of threads in the content provider's process, not the UI
|
/frameworks/base/docs/html/training/improving-layouts/ |
D | smooth-scrolling.jd | 45 own thread pool.</p>
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 1114 final ArrayList<StopwatchTimer> pool) { in refreshTimersLocked() argument 1117 final int N = pool.size(); in refreshTimersLocked() 1119 final StopwatchTimer t = pool.get(i); in refreshTimersLocked() 3242 private StopwatchTimer readTimerFromParcel(int type, ArrayList<StopwatchTimer> pool, in readTimerFromParcel() argument 3248 return new StopwatchTimer(Uid.this, type, pool, unpluggables, in); in readTimerFromParcel() 3319 ArrayList<StopwatchTimer> pool = mSensorTimers.get(mHandle); in readTimerFromParcel() local 3320 if (pool == null) { in readTimerFromParcel() 3321 pool = new ArrayList<StopwatchTimer>(); in readTimerFromParcel() 3322 mSensorTimers.put(mHandle, pool); in readTimerFromParcel() 3324 return new StopwatchTimer(Uid.this, 0, pool, unpluggables, in); in readTimerFromParcel()
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 1496 const ResStringPool* pool = res.getTableStringBlock(block); in android_content_AssetManager_getArrayStringResource() local 1497 const char* str8 = pool->string8At(value.data, &strLen); in android_content_AssetManager_getArrayStringResource() 1501 const char16_t* str16 = pool->stringAt(value.data, &strLen); in android_content_AssetManager_getArrayStringResource()
|
/frameworks/base/docs/html/guide/faq/ |
D | framework.jd | 44 separate pool of transaction threads in each process to dispatch all
|