Home
last modified time | relevance | path

Searched refs:handles (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/
DDisposableHandles.kt23 private val handles = mutableListOf<DisposableHandle>() constant in com.android.systemui.util.kotlin.DisposableHandles
26 fun add(vararg handles: DisposableHandle) { in add()
27 this.handles.addAll(handles) in add()
32 this.handles.add(handle) in plusAssign()
36 operator fun plusAssign(handles: Iterable<DisposableHandle>) { in plusAssign()
37 this.handles.addAll(handles) in plusAssign()
41 fun replaceAll(vararg handles: DisposableHandle) { in replaceAll()
43 add(*handles) in replaceAll()
48 handles.forEach { it.dispose() } in dispose()
49 handles.clear() in dispose()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DHardwareKeyboardShortcutControllerTest.java31 final List<String> handles = Arrays.asList("0", "1", "2", "3"); in testForwardRotation() local
32 assertEquals("2", HardwareKeyboardShortcutController.getNeighborItem(handles, "1", true)); in testForwardRotation()
33 assertEquals("3", HardwareKeyboardShortcutController.getNeighborItem(handles, "2", true)); in testForwardRotation()
34 assertEquals("0", HardwareKeyboardShortcutController.getNeighborItem(handles, "3", true)); in testForwardRotation()
39 final List<String> handles = Arrays.asList("0", "1", "2", "3"); in testBackwardRotation() local
40 assertEquals("0", HardwareKeyboardShortcutController.getNeighborItem(handles, "1", false)); in testBackwardRotation()
41 assertEquals("3", HardwareKeyboardShortcutController.getNeighborItem(handles, "0", false)); in testBackwardRotation()
42 assertEquals("2", HardwareKeyboardShortcutController.getNeighborItem(handles, "3", false)); in testBackwardRotation()
47 final List<String> handles = Arrays.asList("0", "1", "2", "3"); in testNotMatching() local
48 assertNull(HardwareKeyboardShortcutController.getNeighborItem(handles, "X", true)); in testNotMatching()
[all …]
/frameworks/av/camera/
DICameraClient.cpp98 const std::vector<native_handle_t*>& handles) { in recordingFrameHandleCallbackTimestampBatch() argument
103 if (n != handles.size()) { in recordingFrameHandleCallbackTimestampBatch()
105 __FUNCTION__, timestamps.size(), handles.size()); in recordingFrameHandleCallbackTimestampBatch()
112 for (auto& handle : handles) { in recordingFrameHandleCallbackTimestampBatch()
195 std::vector<native_handle_t*> handles; in onTransact() local
197 handles.reserve(n); in onTransact()
215 handles.push_back(handle); in onTransact()
219 recordingFrameHandleCallbackTimestampBatch(timestamps, handles); in onTransact()
DICamera.cpp178 void releaseRecordingFrameHandleBatch(const std::vector<native_handle_t*>& handles) { in releaseRecordingFrameHandleBatch() argument
182 uint32_t n = handles.size(); in releaseRecordingFrameHandleBatch()
184 for (auto& handle : handles) { in releaseRecordingFrameHandleBatch()
190 for (auto& handle : handles) { in releaseRecordingFrameHandleBatch()
422 std::vector<native_handle_t*> handles; in onTransact() local
423 handles.reserve(n); in onTransact()
425 handles.push_back(data.readNativeHandle()); in onTransact()
427 releaseRecordingFrameHandleBatch(handles); in onTransact()
DCamera.cpp184 const std::vector<native_handle_t*> handles) { in releaseRecordingFrameHandleBatch() argument
188 c->releaseRecordingFrameHandleBatch(handles); in releaseRecordingFrameHandleBatch()
353 const std::vector<native_handle_t*>& handles) in recordingFrameHandleCallbackTimestampBatch() argument
362 listener->postRecordingFrameHandleTimestampBatch(timestamps, handles); in recordingFrameHandleCallbackTimestampBatch()
365 releaseRecordingFrameHandleBatch(handles); in recordingFrameHandleCallbackTimestampBatch()
/frameworks/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp62 const std::deque<sp<CallbackHandle>>& handles, in addOnCommitCallbackHandles() argument
64 if (handles.empty()) { in addOnCommitCallbackHandles()
68 for (const auto& handle : handles) { in addOnCommitCallbackHandles()
83 const std::deque<sp<CallbackHandle>>& handles, const std::vector<JankData>& jankData) { in addCallbackHandles() argument
84 if (handles.empty()) { in addCallbackHandles()
87 for (const auto& handle : handles) { in addCallbackHandles()
DTransactionCallbackInvoker.h66 status_t addCallbackHandles(const std::deque<sp<CallbackHandle>>& handles,
68 status_t addOnCommitCallbackHandles(const std::deque<sp<CallbackHandle>>& handles,
/frameworks/av/media/libstagefright/omx/1.0/
DWOmxObserver.cpp41 std::vector<native_handle_t*> handles(lMessages.size()); in onMessages() local
45 wrapAs(&tMessages[i], &handles[i], message); in onMessages()
52 for (auto& handle : handles) { in onMessages()
/frameworks/av/media/libmedia/omx/1.0/
DWOmxObserver.cpp41 std::vector<native_handle_t*> handles(lMessages.size()); in onMessages() local
45 wrapAs(&tMessages[i], &handles[i], message); in onMessages()
52 for (auto& handle : handles) { in onMessages()
/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/
DFrontendResource.java79 public void addExclusiveGroupMemberFeHandles(Collection<Integer> handles) { in addExclusiveGroupMemberFeHandles() argument
80 mExclusiveGroupMemberHandles.addAll(handles); in addExclusiveGroupMemberFeHandles()
/frameworks/av/camera/tests/fuzzer/
Dcamera_fuzzer.cpp316 std::vector<native_handle_t*> handles; in invokeCamera() local
321 handles.push_back(handle); in invokeCamera()
323 mCamera->releaseRecordingFrameHandleBatch(handles); in invokeCamera()
326 std::vector<native_handle_t*> handles; in invokeCamera() local
331 handles.push_back(handle); in invokeCamera()
339 mCamera->recordingFrameHandleCallbackTimestampBatch(timestamps, handles); in invokeCamera()
/frameworks/av/camera/include/camera/
DCamera.h49 const std::vector<native_handle_t*>& handles) = 0;
124 const std::vector<native_handle_t*> handles);
178 const std::vector<native_handle_t*>& handles);
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java350 int[] handles = device.getObjectHandles(storageId, 0, objectHandle); in getObjectList() local
351 if (handles == null) { in getObjectList()
355 int length = handles.length; in getObjectList()
358 MtpObjectInfo info = device.getObjectInfo(handles[i]); in getObjectList()
/frameworks/native/libs/binder/trusty/
DRpcTransportTipcTrusty.cpp68 .handles = nullptr, in interruptableWriteFully()
86 msg.handles = msgHandles; in interruptableWriteFully()
157 .handles = haveHandles ? msgHandles : 0, in interruptableReadFully()
/frameworks/av/camera/include/camera/android/hardware/
DICameraClient.h50 const std::vector<native_handle_t*>& handles) = 0;
DICamera.h107 const std::vector<native_handle_t*>& handles) = 0;
/frameworks/native/libs/binder/trusty/include_mock/
Dtrusty_ipc.h42 handle_t* handles; member
/frameworks/base/media/jni/
Dandroid_mtp_MtpDatabase.cpp341 jint* handles = env->GetIntArrayElements(array, 0); in getObjectList() local
344 list->push_back(handles[i]); in getObjectList()
345 env->ReleaseIntArrayElements(array, handles, 0); in getObjectList()
1168 jint* handles = env->GetIntArrayElements(array, 0); in getObjectReferences() local
1171 list->push_back(handles[i]); in getObjectReferences()
1172 env->ReleaseIntArrayElements(array, handles, 0); in getObjectReferences()
1188 jint* handles = env->GetIntArrayElements(array, 0); in setObjectReferences() local
1190 handles[i] = (*references)[i]; in setObjectReferences()
1191 env->ReleaseIntArrayElements(array, handles, 0); in setObjectReferences()
Dandroid_mtp_MtpDevice.cpp496 MtpObjectHandleList* handles = device->getObjectHandles(storageID, format, objectID); in android_mtp_MtpDevice_get_object_handles() local
497 if (!handles) in android_mtp_MtpDevice_get_object_handles()
500 int length = handles->size(); in android_mtp_MtpDevice_get_object_handles()
503 env->SetIntArrayRegion(array, 0, length, (const jint *)handles->data()); in android_mtp_MtpDevice_get_object_handles()
505 delete handles; in android_mtp_MtpDevice_get_object_handles()
/frameworks/av/media/mtp/
DMtpServer.cpp596 MtpObjectHandleList* handles = mDatabase->getObjectList(storageID, format, parent); in doGetObjectHandles() local
597 if (handles == NULL) in doGetObjectHandles()
599 mData.putAUInt32(handles); in doGetObjectHandles()
600 delete handles; in doGetObjectHandles()
636 MtpObjectHandleList* handles = mDatabase->getObjectReferences(handle); in doGetObjectReferences() local
637 if (handles) { in doGetObjectReferences()
638 mData.putAUInt32(handles); in doGetObjectReferences()
639 delete handles; in doGetObjectReferences()
/frameworks/base/native/webview/loader/
DAndroid.bp18 // Loader library which handles address space reservation and relro sharing.
/frameworks/av/services/mediacodec/
DAndroid.bp73 // media.codec -- the one that handles vendor & HW codecs
/frameworks/base/telecomm/java/android/telecom/
DPhoneAccount.java834 @NonNull Set<PhoneAccountHandle> handles) { in setSimultaneousCallingRestriction()
835 if (handles == null) { in setSimultaneousCallingRestriction()
839 mSimultaneousCallingRestriction = handles; in setSimultaneousCallingRestriction()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/keyguard/
DKeyguardTransitionHandler.java145 public static boolean handles(TransitionInfo info) { in handles() method in KeyguardTransitionHandler
173 if (!handles(info) || mIsLaunchingActivityOverLockscreen) { in startAnimation()
/frameworks/av/media/audio/aconfig/
Daudio.aconfig26 description: "AudioService handles device connection failures."

123