Home
last modified time | relevance | path

Searched refs:Handle (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/av/media/utils/include/mediautils/
DTimerThread.h41 using Handle = std::chrono::steady_clock::time_point;
47 static inline constexpr Handle INVALID_HANDLE =
81 static inline bool isNoTimeoutHandle(Handle handle) { in isNoTimeoutHandle()
86 static inline bool isTimeoutHandle(Handle handle) { in isTimeoutHandle()
93 static Handle getUniqueHandleForHandleType_l(C container, T timeout) { in getUniqueHandleForHandleType_l()
117 using TimerCallback = std::function<void(Handle)>;
132 Handle scheduleTask(
142 Handle trackTask(std::string_view tag);
152 bool cancelTask(Handle handle);
261 std::map<Handle, std::shared_ptr<const Request>> mMap GUARDED_BY(mNTMutex);
[all …]
DTimeCheck.h127 void onCancel(TimerThread::Handle handle) const;
128 void onTimeout(TimerThread::Handle handle) const;
143 const TimerThread::Handle mTimerHandle = TimerThread::INVALID_HANDLE;
/frameworks/libs/net/common/netd/libnetdutils/include/netdutils/
DHandle.h48 class Handle {
50 constexpr Handle() = default;
51 constexpr Handle(const T& value) : mValue(value) {} in Handle() function
55 bool operator==(const Handle& that) const { return get() == that.get(); }
56 bool operator!=(const Handle& that) const { return get() != that.get(); }
64 using name = ::android::netdutils::Handle<type, _##name##Tag>;
67 inline std::ostream& operator<<(std::ostream& os, const Handle<T, TagT>& handle) {
/frameworks/base/libs/hwui/
DWebViewFunctorManager.h39 class Handle : public LightRefBase<Handle> {
41 ~Handle() { in ~Handle()
66 Handle(WebViewFunctor& ref) : mReference(ref) {} in Handle() function
84 sp<Handle> createHandle() { in createHandle()
87 return sp<Handle>{new Handle(*this)}; in createHandle()
114 sp<WebViewFunctor::Handle> handleFor(int functor);
122 std::vector<sp<WebViewFunctor::Handle>> mActiveFunctors;
DWebViewFunctorManager.cpp304 sp<WebViewFunctor::Handle> toRelease; in releaseFunctor()
349 sp<WebViewFunctor::Handle> WebViewFunctorManager::handleFor(int functor) { in handleFor()
/frameworks/av/media/utils/
DTimerThread-test.cpp54 TimerThread::Handle handle = in testBasic()
55 thread.scheduleTask("Basic", [&taskRan](TimerThread::Handle handle __unused) { in testBasic()
70 TimerThread::Handle handle = in testCancel()
71 thread.scheduleTask("Cancel", [&taskRan](TimerThread::Handle handle __unused) { in testCancel()
87 TimerThread::Handle handle = in testCancelAfterRun()
89 [&taskRan](TimerThread::Handle handle __unused) { in testCancelAfterRun()
107 thread.scheduleTask("0", [&taskRan](TimerThread::Handle handle __unused) { in testMultipleTasks()
109 thread.scheduleTask("1", [&taskRan](TimerThread::Handle handle __unused) { in testMultipleTasks()
111 thread.scheduleTask("2", [&taskRan](TimerThread::Handle handle __unused) { in testMultipleTasks()
113 thread.scheduleTask("3", [&taskRan](TimerThread::Handle handle __unused) { in testMultipleTasks()
[all …]
DTimerThread.cpp36 TimerThread::Handle TimerThread::scheduleTask( in scheduleTask()
46 TimerThread::Handle TimerThread::trackTask(std::string_view tag) { in trackTask()
53 bool TimerThread::cancelTask(Handle handle) { in cancelTask()
251 TimerThread::Handle TimerThread::NoTimeoutMap::add(std::shared_ptr<const Request> request) { in add()
255 const Handle handle = getUniqueHandle_l(); in add()
260 std::shared_ptr<const TimerThread::Request> TimerThread::NoTimeoutMap::remove(Handle handle) { in remove()
296 Handle nextDeadline = INVALID_HANDLE; in threadFunc()
297 Handle now = INVALID_HANDLE; in threadFunc()
340 Handle secondDeadline = mSecondChanceRequests.begin()->first.first; in threadFunc()
348 const Handle originalHandle = node.key().second; in threadFunc()
[all …]
DTimeCheck.cpp155 [ timeCheckHandler = mTimeCheckHandler ](TimerThread::Handle timerHandle) { in __anon8f39a8ae0102()
208 void TimeCheck::TimeCheckHandler::onCancel(TimerThread::Handle timerHandle) const in onCancel()
222 void TimeCheck::TimeCheckHandler::onTimeout(TimerThread::Handle timerHandle) const in onTimeout()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java77 public static class Handle implements Closeable { class in NativeLibraryHelper
87 public static Handle create(File packageFile) throws IOException { in create()
98 public static Handle create(PackageLite lite) throws IOException { in create()
103 public static Handle create(List<String> codePaths, boolean multiArch, in create()
121 return new Handle(apkPaths, apkHandles, multiArch, extractNativeLibs, debuggable); in create()
124 public static Handle createFd(PackageLite lite, FileDescriptor fd) throws IOException { in createFd()
132 return new Handle(new String[]{path}, apkHandles, lite.isMultiArch(), in createFd()
136 Handle(String[] apkPaths, long[] apkHandles, boolean multiArch, in Handle() method in NativeLibraryHelper.Handle
180 private static long sumNativeBinaries(Handle handle, String abi) { in sumNativeBinaries()
196 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { in copyNativeBinaries()
[all …]
DInstallLocationUtils.java419 NativeLibraryHelper.Handle handle = null; in calculateInstalledSize()
421 handle = fd != null ? NativeLibraryHelper.Handle.createFd(pkg, fd) in calculateInstalledSize()
422 : NativeLibraryHelper.Handle.create(pkg); in calculateInstalledSize()
431 NativeLibraryHelper.Handle handle, String abiOverride) throws IOException { in calculateInstalledSize()
435 public static long calculateInstalledSize(PackageLite pkg, NativeLibraryHelper.Handle handle, in calculateInstalledSize()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewActivityTest.java23 import static android.widget.espresso.TextViewActions.Handle;
412 .perform(dragHandle(textView, Handle.SELECTION_START, 0)); in testToolbarMenuItemClickAfterSelectionChange()
552 .perform(dragHandle(textView, Handle.SELECTION_START, text.indexOf('a'))); in testToolbarAndSelectionHandle()
556 .perform(dragHandle(textView, Handle.SELECTION_END, text.length())); in testToolbarAndSelectionHandle()
578 .perform(dragHandle(textView, Handle.INSERTION, text.indexOf('a'))); in testInsertionHandle()
582 .perform(dragHandle(textView, Handle.INSERTION, text.indexOf('f'))); in testInsertionHandle()
597 .perform(dragHandle(textView, Handle.INSERTION, text.indexOf('f'))); in testInsertionHandle_multiLine()
601 .perform(dragHandle(textView, Handle.INSERTION, text.indexOf('i'))); in testInsertionHandle_multiLine()
647 .perform(longPressAndDragHandle(textView, Handle.INSERTION, text.indexOf('t'))); in testInsertionHandle_longPressAndDragToSelect()
678 .perform(doubleTapAndDragHandle(textView, Handle.INSERTION, text.indexOf('t'))); in testInsertionHandle_doubleTapAndDragToSelect()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
Dcec_key_handling.md16 | Volume keys | Handle on device or send to soundbar | Send to TV or soundbar …
17 …| Forward to active source | Handle on device | Handle on …
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DTextViewActions.java214 public static ViewAction longPressAndDragHandle(TextView textView, Handle handleType, in longPressAndDragHandle()
254 public static ViewAction doubleTapAndDragHandle(TextView textView, Handle handleType, in doubleTapAndDragHandle()
391 public enum Handle { enum in TextViewActions
410 public static ViewAction dragHandle(TextView textView, Handle handleType, int endIndex) { in dragHandle()
429 public static ViewAction dragHandle(TextView textView, Handle handleType, int endIndex, in dragHandle()
520 private final Handle mHandleType;
525 public HandleCoordinates(TextView textView, Handle handleType, int index, boolean primary) { in HandleCoordinates()
556 final int currentOffset = mHandleType == Handle.SELECTION_START ? in locateHandlePointsTextIndex()
/frameworks/base/libs/hwui/pipeline/skia/
DVkFunctorDrawable.h34 VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, const SkMatrix& matrix,
42 sp<WebViewFunctor::Handle> mFunctorHandle;
DFunctorDrawable.h59 sp<WebViewFunctor::Handle> mWebViewHandle;
DVkFunctorDrawable.cpp38 VkFunctorDrawHandler::VkFunctorDrawHandler(sp<WebViewFunctor::Handle> functor_handle, in VkFunctorDrawHandler()
/frameworks/rs/script_api/
Drs_object_types.spec44 summary: Handle to an element
53 summary: Handle to a Type
62 summary: Handle to an allocation
71 summary: Handle to a Sampler
80 summary: Handle to a Script
Drs_graphics.spec122 summary: Handle to a Font
134 summary: Handle to a Mesh
145 summary: Handle to a ProgramFragment
156 summary: Handle to a ProgramVertex
167 summary: Handle to a ProgramRaster
178 summary: Handle to a ProgramStore
/frameworks/base/core/java/android/os/
DSystemProperties.java336 @Nullable public static Handle find(@NonNull String name) { in find()
341 return new Handle(nativeHandle); in find()
349 public static final class Handle { class in SystemProperties
381 private Handle(long nativeHandle) { in Handle() method in SystemProperties.Handle
/frameworks/native/libs/binder/include/binder/
DBpBinder.h154 using Handle = std::variant<BinderHandle, RpcHandle>; variable
160 explicit BpBinder(Handle&& handle);
172 Handle mHandle;
/frameworks/rs/script_api/include/
Drs_object_types.rsh48 * rs_element: Handle to an element
57 * rs_type: Handle to a Type
66 * rs_allocation: Handle to an allocation
75 * rs_sampler: Handle to a Sampler
84 * rs_script: Handle to a Script
/frameworks/base/services/core/java/com/android/server/pm/
DFileInstallArgs.java124 NativeLibraryHelper.Handle handle = null; in doCopyApk()
126 handle = NativeLibraryHelper.Handle.create(mCodeFile); in doCopyApk()
/frameworks/compile/libbcc/tests/debuginfo/target-tests/driver-common/SRC/
DDriverView.java.template56 // Handle the system event and clean up
/frameworks/native/libs/binder/
DBpBinder.cpp169 BpBinder::BpBinder(Handle&& handle) in BpBinder()
179 BpBinder::BpBinder(BinderHandle&& handle, int32_t trackedUid) : BpBinder(Handle(handle)) { in BpBinder()
187 BpBinder::BpBinder(RpcHandle&& handle) : BpBinder(Handle(handle)) { in BpBinder()
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DAndroidPackageUtils.java153 public static NativeLibraryHelper.Handle createNativeLibraryHandle(AndroidPackage pkg) in createNativeLibraryHandle()
155 return NativeLibraryHelper.Handle.create( in createNativeLibraryHandle()

12