/frameworks/base/libs/androidfw/ |
D | BigBuffer.cpp | 29 Block& block = blocks_.back(); in NextBlockImpl() local 30 if (block.block_size_ - block.size >= size) { in NextBlockImpl() 31 void* out_buffer = block.buffer.get() + block.size; in NextBlockImpl() 32 block.size += size; in NextBlockImpl() 40 Block block = {}; in NextBlockImpl() local 43 block.buffer = std::unique_ptr<uint8_t[]>(new uint8_t[actual_size]()); in NextBlockImpl() 44 CHECK(block.buffer); in NextBlockImpl() 46 block.size = size; in NextBlockImpl() 47 block.block_size_ = actual_size; in NextBlockImpl() 49 blocks_.push_back(std::move(block)); in NextBlockImpl() [all …]
|
/frameworks/libs/systemui/tracinglib/core/common/src/ |
D | TraceUtils.kt | 86 inline fun <T> traceSection(tag: String, block: () -> T): T { in traceSection() 92 block() in traceSection() 102 inline fun <T> traceSection(tag: () -> String, block: () -> T): T { in traceSection() 106 block() in traceSection() 117 inline fun <T> trace(tag: () -> String, block: () -> T): T { in trace() 118 return traceSection(tag) { block() } in trace() 122 inline fun <T> trace(tag: String, crossinline block: () -> T): T { in trace() 123 return traceSection(tag) { block() } in trace() 127 inline fun traceRunnable(tag: String, crossinline block: () -> Unit): Runnable { in traceRunnable() 128 return Runnable { traceSection(tag) { block() } } in traceRunnable() [all …]
|
/frameworks/libs/systemui/tracinglib/core/common/src/coroutines/ |
D | CoroutineTracing.kt | 49 crossinline block: suspend CoroutineScope.() -> Unit in launch() 50 ): Job = launch(context) { traceCoroutine(spanName) { block() } } in launch() 61 crossinline block: suspend CoroutineScope.() -> Unit in launch() 62 ): Job = launch(context) { traceCoroutine(spanName) { block() } } in launch() 73 crossinline block: suspend CoroutineScope.() -> T in async() 74 ): Deferred<T> = async(context) { traceCoroutine(spanName) { block() } } in async() 85 crossinline block: suspend CoroutineScope.() -> T in async() 86 ): Deferred<T> = async(context) { traceCoroutine(spanName) { block() } } in async() 96 crossinline block: suspend () -> T in runBlocking() 97 ): T = runBlocking(context) { traceCoroutine(spanName) { block() } } in runBlocking() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/ |
D | RepeatWhenAttachedTest.kt | 62 private lateinit var block: Block variable 82 block = Block() in setUp() 112 assertThat(block.invocationCount).isEqualTo(0) in repeatWhenAttached_viewStartsDetached_runsBlockWhenAttached() 118 assertThat(block.invocationCount).isEqualTo(1) in repeatWhenAttached_viewStartsDetached_runsBlockWhenAttached() 119 assertThat(block.latestLifecycleState).isEqualTo(Lifecycle.State.CREATED) in repeatWhenAttached_viewStartsDetached_runsBlockWhenAttached() 130 assertThat(block.invocationCount).isEqualTo(1) in repeatWhenAttached_viewAlreadyAttached_immediatelyRunsBlock() 131 assertThat(block.latestLifecycleState).isEqualTo(Lifecycle.State.CREATED) in repeatWhenAttached_viewAlreadyAttached_immediatelyRunsBlock() 143 assertThat(block.invocationCount).isEqualTo(1) in repeatWhenAttached_startsVisibleWithoutFocus_STARTED() 144 assertThat(block.latestLifecycleState).isEqualTo(Lifecycle.State.STARTED) in repeatWhenAttached_startsVisibleWithoutFocus_STARTED() 156 assertThat(block.invocationCount).isEqualTo(1) in repeatWhenAttached_startsWithFocusButInvisible_CREATED() [all …]
|
/frameworks/av/media/libnbaio/ |
D | NBAIO.cpp | 63 ssize_t NBAIO_Sink::writeVia(writeVia_t via, size_t total, void *user, size_t block) in writeVia() argument 72 if (block == 0 || block > maxBlock) { in writeVia() 73 block = maxBlock; in writeVia() 75 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in writeVia() 79 if (count > block) { in writeVia() 80 count = block; in writeVia() 99 ssize_t NBAIO_Source::readVia(readVia_t via, size_t total, void *user, size_t block) in readVia() argument 108 if (block == 0 || block > maxBlock) { in readVia() 109 block = maxBlock; in readVia() 111 double buffer[((frameSize * block) + sizeof(double) - 1) / sizeof(double)]; in readVia() [all …]
|
/frameworks/av/media/codec2/hal/common/ |
D | BufferTypes.cpp | 37 const std::shared_ptr<C2LinearBlock>& block, in CreateLinearBuffer() argument 54 *buffer = C2Buffer::CreateLinearBuffer(block->share( in CreateLinearBuffer() 67 const std::shared_ptr<C2GraphicBlock>& block, in CreateGraphicBuffer() argument 84 *buffer = C2Buffer::CreateGraphicBuffer(block->share( in CreateGraphicBuffer() 102 for (const C2ConstGraphicBlock& block : in forEachBlock() local 104 process(block); in forEachBlock() 134 bool BeginTransferBufferQueueBlock(const C2ConstGraphicBlock& block) { in BeginTransferBufferQueueBlock() argument 136 _C2BlockFactory::GetGraphicBlockPoolData(block); in BeginTransferBufferQueueBlock() 152 const C2ConstGraphicBlock& block, in EndTransferBufferQueueBlock() argument 155 _C2BlockFactory::GetGraphicBlockPoolData(block); in EndTransferBufferQueueBlock() [all …]
|
/frameworks/av/media/module/mpeg2ts/ |
D | HlsSampleDecryptor.cpp | 326 AString HlsSampleDecryptor::aesBlockToStr(uint8_t block[AES_BLOCK_SIZE]) { in aesBlockToStr() 329 if (block == NULL) { in aesBlockToStr() 333 block[0], block[1], block[2], block[3], block[4], block[5], block[6], block[7], in aesBlockToStr() 334 block[8], block[9], block[10], block[11], block[12], block[13], block[14], block[15]); in aesBlockToStr()
|
/frameworks/av/media/tests/benchmark/src/native/common/ |
D | BenchmarkC2Common.h | 41 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block) in LinearBuffer() argument 42 : C2Buffer({block->share(block->offset(), block->size(), ::C2Fence())}) {} in LinearBuffer() 44 explicit LinearBuffer(const std::shared_ptr<C2LinearBlock> &block, size_t size) in LinearBuffer() argument 45 : C2Buffer({block->share(block->offset(), size, ::C2Fence())}) {} in LinearBuffer() 50 explicit GraphicBuffer(const std::shared_ptr<C2GraphicBlock> &block) in GraphicBuffer() argument 51 : C2Buffer({block->share(C2Rect(block->width(), block->height()), ::C2Fence())}) {} in GraphicBuffer()
|
/frameworks/base/services/tests/servicestests/utils-mockito/com/android/server/testutils/ |
D | MockitoUtils.kt | 62 inline fun <reified T> mock(block: T.() -> Unit = {}) = Mockito.mock(T::class.java).apply(block) in <lambda>() 64 fun <T> spy(value: T, block: T.() -> Unit = {}) = Mockito.spy(value).apply(block) in <lambda>() 70 fun <Type> whenever(mock: Type, block: InvocationOnMock.() -> Type) = in whenever() 71 Mockito.`when`(mock).thenAnswer { block(it) } in whenever() 75 inline fun <reified T> spyThrowOnUnmocked(value: T?, block: T.() -> Unit = {}): T { in <lambda>() 85 .defaultAnswer(swappingAnswer)).apply(block) 92 inline fun <reified T> mockThrowOnUnmocked(block: T.() -> Unit = {}) = in <lambda>() 93 spyThrowOnUnmocked<T>(null, block)
|
/frameworks/libs/binary_translation/base/include/berberis/base/ |
D | mmap_pool.h | 45 void* block = node->block; in Alloc() local 47 return block; in Alloc() 50 static void Free(void* block) { in Free() argument 53 return MunmapOrDie(block, kBlockSize); in Free() 55 node->block = block; in Free() 62 void* block; member
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/ |
D | UiThreadContext.kt | 38 fun <T> runWithScissors(block: () -> T): T { in runWithScissors() 39 return handler.runWithScissors(block) in runWithScissors() 42 fun runWithScissors(block: Runnable) { in runWithScissors() 43 handler.runWithScissors(block, DEFAULT_TIMEOUT) in runWithScissors() 47 fun <T> Handler.runWithScissors(block: () -> T): T { in runWithScissors() 49 runWithScissors({ returnedValue.set(block()) }, DEFAULT_TIMEOUT) in runWithScissors()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/util/ |
D | AtomicFileExtensions.kt | 30 inline fun AtomicFile.readWithReserveCopy(block: (FileInputStream) -> Unit) { in <lambda>() 32 openRead().use(block) in <lambda>() 39 AtomicFile(reserveFile).openRead().use(block) in <lambda>() 49 inline fun AtomicFile.writeWithReserveCopy(block: (FileOutputStream) -> Unit) { in writeWithReserveCopy() 50 writeInlined(block) in writeWithReserveCopy() 67 inline fun AtomicFile.writeInlined(block: (FileOutputStream) -> Unit) { in writeInlined() 70 block(it) in writeInlined()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | VisualInterruptionDecisionProviderTestBase.kt | 488 block: (NotificationEntry) -> Unit in <lambda>() 491 block(buildPeekEntry(extendEntry)) in <lambda>() 494 block(buildPulseEntry(extendEntry)) in <lambda>() 971 protected fun ensureState(block: State.() -> Unit) = in <lambda>() 975 apply(block) in <lambda>() 979 protected fun ensurePeekState(block: State.() -> Unit = {}) = ensureState { in <lambda>() 985 run(block) in <lambda>() 988 protected fun ensurePulseState(block: State.() -> Unit = {}) = ensureState { in <lambda>() 992 run(block) in <lambda>() 995 protected fun ensureBubbleState(block: State.() -> Unit = {}) = ensureState(block) in <lambda>() [all …]
|
/frameworks/base/tools/aapt/ |
D | ResourceTable.cpp | 304 ResXMLTree& block, bool _appendComment) in PendingAttribute() 306 , sourcePos(in->getPrintableSource(), block.getLineNumber()) in PendingAttribute() 330 ResXMLTree& block, in compileAttribute() argument 336 PendingAttribute attr(myPackage, in, block, inStyleable); in compileAttribute() 349 ssize_t identIdx = block.indexOfAttribute(NULL, "name"); in compileAttribute() 351 attr.ident = String16(block.getAttributeStringValue(identIdx, &len)); in compileAttribute() 361 block.getComment(&len) ? block.getComment(&len) : nulStr); in compileAttribute() 363 ssize_t typeIdx = block.indexOfAttribute(NULL, "format"); in compileAttribute() 365 String16 typeStr = String16(block.getAttributeStringValue(typeIdx, &len)); in compileAttribute() 381 ssize_t minIdx = block.indexOfAttribute(NULL, "min"); in compileAttribute() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ui/ |
D | AnimatedValue.kt | 103 block: (A, B) -> Z, in zip() 105 val zippedValue = block(valueA.value, valueB.value) in zip() 139 inline fun <A, B> AnimatedValue<A>.map(block: (A) -> B): AnimatedValue<B> = in map() 141 is Animating -> Animating(block(value), ::stopAnimating) in map() 142 is NotAnimating -> NotAnimating(block(value)) in map() 153 inline fun <A, B> AnimatedValue<A>.flatMap(block: (A) -> AnimatedValue<B>): AnimatedValue<B> = in flatMap() 155 is NotAnimating -> block(value) in flatMap() 157 when (val inner = block(value)) { in flatMap()
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/ |
D | LaunchableView.kt | 41 fun setShouldBlockVisibilityChanges(block: Boolean) in setShouldBlockVisibilityChanges() 64 override fun setShouldBlockVisibilityChanges(block: Boolean) { in getPaddingForLaunchAnimation() 65 if (block == blockVisibilityChanges) { in getPaddingForLaunchAnimation() 69 blockVisibilityChanges = block in getPaddingForLaunchAnimation() 70 if (block) { in getPaddingForLaunchAnimation()
|
/frameworks/base/libs/androidfw/tests/ |
D | AppAsLib_test.cpp | 38 ssize_t block = table.getResource(app::R::integer::number1, &val); in TEST() local 39 ASSERT_GE(block, 0); in TEST() 57 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local 58 ASSERT_GE(block, 0); in TEST() 76 ssize_t block = table.getResource(lib::R::integer::number1, &val); in TEST() local 77 ASSERT_GE(block, 0); in TEST()
|
D | ResTable_test.cpp | 154 ssize_t block = in TEST() local 156 ASSERT_GE(block, 0); in TEST() 160 ssize_t newBlock = table.resolveReference(&val, block); in TEST() 161 EXPECT_EQ(block, newBlock); in TEST() 175 ssize_t block = in TEST() local 177 ASSERT_GE(block, 0); in TEST() 190 block = table.getResource(basic::R::integer::number1, &val, MAY_NOT_BE_BAG); in TEST() 191 ASSERT_GE(block, 0); in TEST() 208 ssize_t block = in TEST() local 210 ASSERT_GE(block, 0); in TEST() [all …]
|
D | Split_test.cpp | 87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 92 EXPECT_GE(block, 0); in TEST_F() 115 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 118 EXPECT_GE(block, 0); in TEST_F() 164 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() local 166 EXPECT_GE(block, 0); in TEST_F() 174 block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0, in TEST_F() 176 ASSERT_GE(block, 0); in TEST_F() 219 ssize_t block = table.getResource(R::string::test3, &val, MAY_NOT_BE_BAG); in TEST_F() local 220 EXPECT_LT(block, 0); in TEST_F() [all …]
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | Printer.kt | 136 operator fun String.invoke(block: SELF.() -> Unit) { in <lambda>() 144 indentedBy(2, block) in <lambda>() 149 indentedBy(1, block) in <lambda>() 161 else -> indentedBy(2, block) in <lambda>() 165 fun indentedBy(level: Int, block: SELF.() -> Unit) { in <lambda>() 171 (this as SELF).block() in <lambda>()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | fastcodemb.h | 32 Int(*DCT)(Int block[ ], Int coeff[ ], approxDCT *); 55 Int getBlockSAV(Int block[]); 60 Int AppVCA1_dct(Int block[], Int out[ ], approxDCT *function); 61 Int AppVCA2_dct(Int block[], Int out[ ], approxDCT *function); 62 Int AppVCA3_dct(Int block[], Int out[ ], approxDCT *function); 63 Int AppVCA4_dct(Int block[], Int out[ ], approxDCT *function); 64 Int AppVCA5_dct(Int block[], Int out[ ], approxDCT *function); 97 void BlockIDCTMotionComp(Int *block, UChar *bitmapcol, UChar bitmaprow,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/coroutine/ |
D | CoroutineResult.kt | 37 suspend inline fun <T> suspendRunCatching(crossinline block: suspend () -> T): Result<T> = in suspendRunCatching() 39 Result.success(block()) in suspendRunCatching() 60 suspend inline fun <T, R> T.suspendRunCatching(crossinline block: suspend T.() -> R): Result<R> = in suspendRunCatching() 63 com.android.systemui.common.coroutine.suspendRunCatching { block(this) } in suspendRunCatching()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | MapUtils.kt | 19 fun <K, V, R> Map<K, V>.mapValuesNotNull(block: (Map.Entry<K, V>) -> R?): Map<K, R> = buildMap { in <lambda>() 20 this@mapValuesNotNull.mapValuesNotNullTo(this, block) in <lambda>() 26 block: (Map.Entry<K, V>) -> R?, in mapValuesNotNullTo() 29 block(entry)?.also { destination.put(entry.key, it) } in mapValuesNotNullTo()
|
D | IpcSerializer.kt | 78 suspend fun <R> runSerialized(block: suspend () -> R): R { in runSerialized() 86 val result = block() in runSerialized() 97 fun <R> runSerializedBlocking(block: suspend () -> R): R = runBlocking { runSerialized(block) } in <lambda>()
|
/frameworks/base/packages/SystemUI/utils/src/com/android/systemui/utils/coroutines/flow/ |
D | FlowConflated.kt | 98 @BuilderInference block: suspend ProducerScope<T>.() -> Unit, 99 ): Flow<T> = callbackFlow(block).conflate() 148 @BuilderInference block: suspend ProducerScope<T>.() -> Unit, 149 ): Flow<T> = channelFlow(block).conflate()
|