/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
D | BitmapPoolTest.java | 49 private Set<Bitmap> fillPoolAndGetPoolContents(final BitmapPool pool, final int width, in fillPoolAndGetPoolContents() argument 53 final Bitmap temp = pool.createOrReuseBitmap(width, height); in fillPoolAndGetPoolContents() 58 pool.reclaimBitmap(b); in fillPoolAndGetPoolContents() 60 assertTrue(pool.isFull(width, height)); in fillPoolAndGetPoolContents() 65 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateAndPutBackInPoolTest() local 66 final Bitmap bitmap = pool.createOrReuseBitmap(IMAGE_DIM, IMAGE_DIM); in testCreateAndPutBackInPoolTest() 68 assertFalse(pool.isFull(IMAGE_DIM, IMAGE_DIM)); in testCreateAndPutBackInPoolTest() 69 pool.reclaimBitmap(bitmap); in testCreateAndPutBackInPoolTest() 76 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateBeyondFullAndCheckReuseTest() local 78 fillPoolAndGetPoolContents(pool, IMAGE_DIM, IMAGE_DIM); in testCreateBeyondFullAndCheckReuseTest() [all …]
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
D | LruPool.java | 176 final Queue<TValue> pool; in add() local 180 pool = new LinkedList<>(); in add() 181 mValuePool.put(key, pool); in add() 183 pool = mValuePool.get(key); in add() 185 pool.add(value); in add() 233 Queue<TValue> pool = mValuePool.get(key); in unsafeTrimToSize() local 234 TValue value = pool.remove(); in unsafeTrimToSize() 236 if (pool.size() <= 0) { in unsafeTrimToSize()
|
D | SimpleLruResourcePool.java | 94 public SynchronizedResource(SimpleLruResourcePool<TKey, TValue> pool, in SynchronizedResource() argument 96 mPool = pool; in SynchronizedResource()
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
D | GalleryBitmapPool.java | 128 SparseArrayBitmapPool pool = getPoolForDimensions(width, height); in get() local 129 if (pool == null) { in get() 132 return pool.get(width, height); in get() 144 SparseArrayBitmapPool pool = getPoolForDimensions(b.getWidth(), b.getHeight()); in put() local 145 if (pool == null) { in put() 149 return pool.put(b); in put()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | StringUtil.java | 55 final String pool = "0123456789"; in generateRandomNumberString() local 57 .ints(length, 0, pool.length()) in generateRandomNumberString() 58 .mapToObj(i -> Character.toString(pool.charAt(i))) in generateRandomNumberString() 64 final String pool = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; in generateRandomString() local 66 .ints(length, 0, pool.length()) in generateRandomString() 67 .mapToObj(i -> Character.toString(pool.charAt(i))) in generateRandomString()
|
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalPreparedModel.cpp | 46 auto& pool = request.pools[i]; in createRunTimePoolInfos() local 47 if (const auto* maybeMemory = std::get_if<SharedMemory>(&pool)) { in createRunTimePoolInfos() 55 } else if (const auto* maybeToken = std::get_if<Request::MemoryDomainToken>(&pool)) { in createRunTimePoolInfos() 79 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 80 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 89 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 90 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 101 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 102 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 262 const auto& pool = request.pools[poolIndex]; in executeFenced() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/icons/ |
D | LauncherIcons.java | 63 ConcurrentLinkedQueue<LauncherIcons> pool) { in LauncherIcons() argument 67 mPool = pool; in LauncherIcons() 113 ConcurrentLinkedQueue<LauncherIcons> pool = mPool; in obtain() local 114 LauncherIcons m = pool.poll(); in obtain() 118 return new LauncherIcons(mContext, idp.fillResIconDpi, idp.iconBitmapSize, pool); in obtain()
|
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/ |
D | LauncherViewModelTest.java | 95 ExecutorService pool = Executors.newCachedThreadPool(); in test_concurrentExecution() local 97 pool.execute(() -> { in test_concurrentExecution() 100 pool.execute(() -> { in test_concurrentExecution() 104 pool.shutdown(); // Disable new tasks from being submitted in test_concurrentExecution() 105 if (!pool.awaitTermination(30, TimeUnit.SECONDS)) { in test_concurrentExecution() 106 pool.shutdownNow(); // Cancel currently executing tasks in test_concurrentExecution()
|
/packages/modules/NeuralNetworks/common/ |
D | UtilsTest.cpp | 135 V1_3::Request::MemoryPool pool; in TEST() local 136 pool.hidlMemory(allocateSharedMemory(2 * sizeof(float))); in TEST() 137 ASSERT_TRUE(pool.hidlMemory().valid()); in TEST() 171 .pools = {std::move(pool)}, in TEST() 177 V1_3::Request::MemoryPool pool; in TEST() local 178 pool.hidlMemory(allocateSharedMemory(sizeof(float) + sizeof(int32_t))); in TEST() 179 ASSERT_TRUE(pool.hidlMemory().valid()); in TEST() 215 .pools = {std::move(pool)}, in TEST()
|
D | LegacyHalUtils.cpp | 791 [version](const hardware::hidl_memory& pool) { return validatePool(pool, version); }); in compliantWith() argument 1430 return std::all_of(request.pools.begin(), request.pools.end(), [](const auto& pool) { in compliantWithV1_0() argument 1431 if (pool.getDiscriminator() != V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory) { in compliantWithV1_0() 1434 const auto& name = pool.hidlMemory().name(); in compliantWithV1_0() 1440 return std::all_of(request.pools.begin(), request.pools.end(), [](const auto& pool) { in compliantWithV1_2() argument 1441 if (pool.getDiscriminator() != V1_3::Request::MemoryPool::hidl_discriminator::hidlMemory) { in compliantWithV1_2() 1444 const auto& name = pool.hidlMemory().name(); in compliantWithV1_2() 1450 static hardware::hidl_memory convertToV1_0(const V1_3::Request::MemoryPool& pool) { in convertToV1_0() argument 1451 switch (pool.getDiscriminator()) { in convertToV1_0() 1453 return pool.hidlMemory(); in convertToV1_0() [all …]
|
D | ValidateHal.cpp | 524 bool validatePool(const hardware::hidl_memory& pool, HalVersion ver) { in validatePool() argument 525 const auto& name = pool.name(); in validatePool() 532 if (pool.handle() == nullptr) { in validatePool() 539 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver) { in validatePool() argument 540 switch (pool.getDiscriminator()) { in validatePool() 542 return validatePool(pool.hidlMemory(), ver); in validatePool() 544 return pool.token() > 0; in validatePool() 553 [ver](const auto& pool) { return validatePool(pool, ver); }); in validatePools() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardManagerTest.java | 144 final ControllerRendererPool pool = mManager.getControllerRendererPool(); in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers() local 146 final List<Integer> actual = pool.getControllers().stream() in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers() 409 final ControllerRendererPool pool = spy(mManager.mControllerRendererPool); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard() local 410 doReturn(pool).when(manager).getControllerRendererPool(); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard() 412 pool.getController(mContext, in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard() 415 doReturn(controller).when(pool).getController(mContext, in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard() 428 final ControllerRendererPool pool = spy(mManager.mControllerRendererPool); in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard() local 429 doReturn(pool).when(manager).getControllerRendererPool(); in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard() 431 pool.getController(mContext, in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard() 434 doReturn(controller).when(pool).getController(mContext, in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard() [all …]
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimConverter.cpp | 388 for (const auto& pool : model.pools) { in convertFromHAL() local 389 std::unique_ptr<::android::nn::sl_wrapper::Memory> memory = convertFromHAL(nnapi, pool); in convertFromHAL() 429 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool) { in convertFromHAL() argument 431 switch (pool.getTag()) { in convertFromHAL() 433 const auto& ashmem = pool.get<Tag::ashmem>(); in convertFromHAL() 445 const auto& mappableFile = pool.get<Tag::mappableFile>(); in convertFromHAL() 459 const auto& hardwareBuffer = pool.get<Tag::hardwareBuffer>(); in convertFromHAL() 507 << utils::underlyingType(pool.getTag()); in convertFromHAL()
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | SampleDriver.cpp | 378 auto& pool = request.pools[i]; in createRunTimePoolInfos() local 379 switch (pool.getDiscriminator()) { in createRunTimePoolInfos() 382 RunTimePoolInfo::createFromMemory(uncheckedConvert(pool.hidlMemory())); in createRunTimePoolInfos() 391 auto bufferWrapper = driver.getHalBufferTracker()->get(pool.token()); in createRunTimePoolInfos() 415 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 416 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories() 424 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 425 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories() 435 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 436 if (pool.getDiscriminator() == V1_3::Request::MemoryPool::hidl_discriminator::token) { in updateDeviceMemories() [all …]
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.cpp | 323 const auto& pool = request.pools[i]; in createRunTimePoolInfos() local 324 if (const auto* memory = std::get_if<SharedMemory>(&pool)) { in createRunTimePoolInfos() 332 } else if (const auto* token = std::get_if<Request::MemoryDomainToken>(&pool)) { in createRunTimePoolInfos() 362 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 363 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 372 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 373 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 383 const auto& pool = request.pools[poolIndex]; in updateDeviceMemories() local 384 if (std::holds_alternative<Request::MemoryDomainToken>(pool)) { in updateDeviceMemories() 578 const auto& pool = request.pools[poolIndex]; in executeFenced() local [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | SearchRecyclerView.java | 49 RecycledViewPool pool = getRecycledViewPool(); in updatePoolSize() local 50 pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_ICON, mNumAppsPerRow); in updatePoolSize()
|
D | AllAppsRecyclerView.java | 108 RecyclerView.RecycledViewPool pool = getRecycledViewPool(); in updatePoolSize() local 109 pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_EMPTY_SEARCH, 1); in updatePoolSize() 110 pool.setMaxRecycledViews(AllAppsGridAdapter.VIEW_TYPE_ALL_APPS_DIVIDER, 1); in updatePoolSize() 126 pool.setMaxRecycledViews( in updatePoolSize()
|
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/activity/window/ |
D | ActivityWindowModule.java | 64 static SyncTransactionQueue provideSyncTransactionQueue(TransactionPool pool, in provideSyncTransactionQueue() argument 66 return new SyncTransactionQueue(pool, mainExecutor); in provideSyncTransactionQueue()
|
/packages/modules/NeuralNetworks/common/include/ |
D | ValidateHal.h | 76 bool validatePool(const hardware::hidl_memory& pool, HalVersion ver = HalVersion::LATEST); 77 bool validatePool(const V1_3::Request::MemoryPool& pool, HalVersion ver = HalVersion::LATEST);
|
/packages/apps/Car/DebuggingRestrictionController/libs/ |
D | httpcore-4.4.13.jar | ... bootstrap/
org/apache/http/impl/pool/
org/apache/http/impl/io ... |
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/displayarea/ |
D | CarDisplayAreaModule.java | 67 static SyncTransactionQueue provideSyncTransactionQueue(TransactionPool pool, in provideSyncTransactionQueue() argument 69 return new SyncTransactionQueue(pool, mainExecutor); in provideSyncTransactionQueue()
|
/packages/modules/RemoteKeyProvisioning/app/tests/e2e/src/com/android/rkpdapp/e2etest/ |
D | RkpdHostTestHelperTests.java | 178 StatsProcessor.PoolStats pool = StatsProcessor.processPool(mKeyDao, mServiceName, in testPeriodicProvisionerNoop() local 190 .isEqualTo(pool.keysInUse + pool.keysUnassigned); in testPeriodicProvisionerNoop()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | JobLimiter.java | 131 public JobLimiter(ThreadPool pool, int limit) { in JobLimiter() argument 132 mPool = Utils.checkNotNull(pool); in JobLimiter()
|
/packages/modules/Bluetooth/system/audio/asrc/ |
D | asrc_resampler.cc | 486 for (auto& b : buffers.pool) b.resize(buffers_size_); 492 auto silence_buffer = &buffers_.pool[0]; 527 auto buffer = &buffers.pool[buffers.index]; in Resample() 554 buffers.index = (buffers.index + 1) % buffers.pool.size(); in Resample()
|
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | ShimConverter.h | 56 const NnApiSupportLibrary* nnapi, const neuralnetworks::Memory& pool);
|