Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/wilhelm/src/
DThreadPool.cpp25 ThreadPool *tp = (ThreadPool *) context; in ThreadPool_start() local
26 assert(NULL != tp); in ThreadPool_start()
28 Closure *pClosure = ThreadPool_remove(tp); in ThreadPool_start()
81 static void ThreadPool_deinit_internal(ThreadPool *tp, unsigned initialized, unsigned nThreads);
87 SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads) in ThreadPool_init() argument
89 assert(NULL != tp); in ThreadPool_init()
90 memset(tp, 0, sizeof(ThreadPool)); in ThreadPool_init()
91 tp->mShutdown = SL_BOOLEAN_FALSE; in ThreadPool_init()
98 err = pthread_mutex_init(&tp->mMutex, (const pthread_mutexattr_t *) NULL); in ThreadPool_init()
103 err = pthread_cond_init(&tp->mCondNotFull, (const pthread_condattr_t *) NULL); in ThreadPool_init()
[all …]
DThreadPool.h86 extern SLresult ThreadPool_init(ThreadPool *tp, unsigned maxClosures, unsigned maxThreads);
87 extern void ThreadPool_deinit(ThreadPool *tp);
88 extern SLresult ThreadPool_add(ThreadPool *tp, ClosureKind kind,
91 extern Closure *ThreadPool_remove(ThreadPool *tp);
92 extern SLresult ThreadPool_add_ppi(ThreadPool *tp, ClosureHandler_ppi handler,
94 extern SLresult ThreadPool_add_ppii(ThreadPool *tp, ClosureHandler_ppii handler,
96 extern SLresult ThreadPool_add_piipp(ThreadPool *tp, ClosureHandler_piipp handler,
/frameworks/base/core/java/android/text/
DTextPaint.java65 public void set(TextPaint tp) { in set() argument
66 super.set(tp); in set()
68 bgColor = tp.bgColor; in set()
69 baselineShift = tp.baselineShift; in set()
70 linkColor = tp.linkColor; in set()
71 drawableState = tp.drawableState; in set()
72 density = tp.density; in set()
73 underlineColor = tp.underlineColor; in set()
74 underlineThickness = tp.underlineThickness; in set()
/frameworks/base/core/java/android/text/style/
DMetricAffectingSpan.java70 public void updateDrawState(@NonNull TextPaint tp) { in updateDrawState() argument
71 mStyle.updateDrawState(tp); in updateDrawState()
78 public void updateMeasureState(@NonNull TextPaint tp) { in updateMeasureState() argument
79 mStyle.updateMeasureState(tp); in updateMeasureState()
DCharacterStyle.java27 public abstract void updateDrawState(TextPaint tp); in updateDrawState() argument
74 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
75 mStyle.updateDrawState(tp); in updateDrawState()
DSuggestionSpan.java389 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
396 tp.setUnderlineText(mEasyCorrectUnderlineColor, mEasyCorrectUnderlineThickness); in updateDrawState()
397 } else if (tp.underlineColor == 0) { in updateDrawState()
401 tp.setUnderlineText( in updateDrawState()
404 tp.setUnderlineText(mMisspelledUnderlineColor, mMisspelledUnderlineThickness); in updateDrawState()
408 tp.setUnderlineText(mAutoCorrectionUnderlineColor, mAutoCorrectionUnderlineThickness); in updateDrawState()
410 tp.setUnderlineText(mMisspelledUnderlineColor, mMisspelledUnderlineThickness); in updateDrawState()
412 tp.setUnderlineText(mGrammarErrorUnderlineColor, mGrammarErrorUnderlineThickness); in updateDrawState()
DSuggestionRangeSpan.java90 public void updateDrawState(@NonNull TextPaint tp) { in updateDrawState() argument
91 tp.bgColor = mBackgroundColor; in updateDrawState()
/frameworks/base/core/tests/coretests/src/android/text/style/
DUnderlineSpanTest.java59 final TextPaint tp = new TextPaint(); in textWidth() local
60 tp.setTextSize(100.0f); // Large enough so that the difference in kerning is visible. in textWidth()
63 text, 0, text.length(), tp, largeWidth).build(); in textWidth()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java149 try (TransferPipe tp = new TransferPipe()) { in go() argument
150 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); in go()
151 tp.go(out, timeout); in go()
171 try (TransferPipe tp = new TransferPipe()) { in goDump() argument
172 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); in goDump()
173 tp.go(out, timeout); in goDump()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/
DCommunicator.java324 Optional<TransportProtocol> tp = mTransportProtocols.stream() in setTransportActive() local
327 if (!tp.isPresent()) { in setTransportActive()
333 .filter(p -> p != tp.get()) in setTransportActive()
335 tp.get().forceNegotiated(); in setTransportActive()
336 mActiveTransport = tp.get(); in setTransportActive()
/frameworks/base/services/core/java/com/android/server/am/
DProviderMap.java447 TransferPipe tp = new TransferPipe(); in dumpToTransferPipe() local
450 tp.getWriteFd(), r.provider.asBinder(), args); in dumpToTransferPipe()
451 tp.setBufferPrefix(prefix); in dumpToTransferPipe()
454 tp.go(fd, 2000); in dumpToTransferPipe()
456 tp.kill(); in dumpToTransferPipe()
DActiveServices.java7888 TransferPipe tp = new TransferPipe(); in dumpServiceClient() local
7890 thread.dumpService(tp.getWriteFd(), r, args); in dumpServiceClient()
7891 tp.setBufferPrefix(" "); in dumpServiceClient()
7894 tp.go(fd, 2000); in dumpServiceClient()
7896 tp.kill(); in dumpServiceClient()
8224 TransferPipe tp = new TransferPipe(); in dumpService() local
8226 thread.dumpService(tp.getWriteFd(), r, args); in dumpService()
8227 tp.setBufferPrefix(prefix + " "); in dumpService()
8228 tp.go(fd); in dumpService()
8230 tp.kill(); in dumpService()
/frameworks/base/core/tests/coretests/src/android/widget/
DSuggestionsPopupWindowTest.java328 TextPaint tp = new TextPaint(); in testTextAppearanceInSuggestionsPopup() local
329 taSpan[0].updateDrawState(tp); in testTextAppearanceInSuggestionsPopup()
330 assertEquals(expectedHighlightTextColor, tp.getColor()); in testTextAppearanceInSuggestionsPopup()
331 assertEquals(expectedHighlightTextSize, tp.getTextSize(), 0f); in testTextAppearanceInSuggestionsPopup()
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/
DTextAppearanceInfoTest.java288 public void updateDrawState(@NonNull TextPaint tp) { in updateDrawState() argument
289 super.updateDrawState(tp); in updateDrawState()
292 tpCopy.set(tp); in updateDrawState()
/frameworks/base/tools/codegen/src/com/android/codegen/
DClassPrinter.kt227 val tp = (builderExtension as ClassOrInterfaceDeclaration).typeParameters in <lambda>() constant
228 BuilderType = if (tp.isEmpty()) BuilderClass in <lambda>()
/frameworks/native/services/surfaceflinger/tests/unittests/
DVSyncDispatchRealtimeTest.cpp33 constexpr nsecs_t toNs(std::chrono::duration<Rep, Per> const& tp) { in toNs() argument
34 return std::chrono::duration_cast<std::chrono::nanoseconds>(tp).count(); in toNs()
/frameworks/av/services/camera/libcameraservice/utils/
DExifUtils.cpp887 struct timespec tp; in setFromMetadata() local
889 bool time_available = clock_gettime(CLOCK_REALTIME, &tp) != -1; in setFromMetadata()
890 localtime_r(&tp.tv_sec, &time_info); in setFromMetadata()
1104 if (snprintf(str, sizeof(str), "%03ld", tp.tv_nsec / 1000000) < 0) { in setFromMetadata()
1105 ALOGE("%s: Subsec is invalid: %ld", __FUNCTION__, tp.tv_nsec); in setFromMetadata()
/frameworks/libs/binary_translation/guest_os_primitives/riscv64/
Dguest_context_arch.h68 uint64_t tp; member
/frameworks/base/services/translation/java/com/android/server/translation/
DTranslationManagerServiceImpl.java451 try (TransferPipe tp = new TransferPipe()) { in dumpLocked() argument
452 activityTokens.getApplicationThread().dumpActivity(tp.getWriteFd(), in dumpLocked()
458 tp.go(fd); in dumpLocked()
/frameworks/base/core/java/android/os/
DDebug.java2277 final TypedProperties tp = new TypedProperties();
2290 tp.load(r);
2302 debugProperties = tp.isEmpty() ? null : tp;
/frameworks/av/services/audioflinger/
DPlaybackTracks.h362 for (auto& tp : mTeePatches) { f(tp.patchTrack); } in forEachTeePatchTrack_l()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java2429 try (TransferPipe tp = new TransferPipe()) { in passThroughShellCommand() argument
2432 tp.setBufferPrefix(" "); in passThroughShellCommand()
2433 mBar.passThroughShellCommand(args, tp.getWriteFd()); in passThroughShellCommand()
2435 tp.go(fd); in passThroughShellCommand()
2527 try (TransferPipe tp = new TransferPipe()) { in dump() argument
2530 mBar.dumpProto(args, tp.getWriteFd()); in dump()
2532 tp.go(fd); in dump()
/frameworks/base/core/res/geoid_map_assets/
Dexpiration-distance-disk-tile-7.textpb2 …65\016\f\021K\000GRH_\204\256M\002\223\306)\004\b^\333*\025\205n\271DJ\001\tp%D\034\a\322\312\313n…
/frameworks/base/core/java/android/app/
DActivityManager.java5719 TransferPipe tp = null; in dumpService() local
5722 tp = new TransferPipe(); in dumpService()
5723 tp.setBufferPrefix(" "); in dumpService()
5724 service.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); in dumpService()
5725 tp.go(fd, 10000); in dumpService()
5727 if (tp != null) { in dumpService()
5728 tp.kill(); in dumpService()
/frameworks/ex/common/java/com/android/ex/editstyledtext/
DEditStyledText.java2596 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
2597 tp.bgColor = mMarqueeColor; in updateDrawState()

12