Home
last modified time | relevance | path

Searched refs:vibratorIds (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/hardware/input/
DInputDeviceVibratorManager.java63 final int[] vibratorIds = in initializeVibrators() local
65 for (int i = 0; i < vibratorIds.length; i++) { in initializeVibrators()
66 mVibrators.put(vibratorIds[i], in initializeVibrators()
67 new InputDeviceVibrator(mInputManager, mDeviceId, vibratorIds[i])); in initializeVibrators()
96 int[] vibratorIds = new int[mVibrators.size()]; in getVibratorIds() local
98 vibratorIds[idx++] = mVibrators.keyAt(idx); in getVibratorIds()
100 return vibratorIds; in getVibratorIds()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorManagerService.cpp117 std::vector<int32_t> vibratorIds = result.value(); in nativeGetVibratorIds() local
118 jintArray ids = env->NewIntArray(vibratorIds.size()); in nativeGetVibratorIds()
119 env->SetIntArrayRegion(ids, 0, vibratorIds.size(), reinterpret_cast<jint*>(vibratorIds.data())); in nativeGetVibratorIds()
124 jintArray vibratorIds) { in nativePrepareSynced() argument
131 jsize size = env->GetArrayLength(vibratorIds); in nativePrepareSynced()
133 env->GetIntArrayRegion(vibratorIds, 0, size, reinterpret_cast<jint*>(ids.data())); in nativePrepareSynced()
/frameworks/base/core/java/android/os/
DSystemVibrator.java73 int[] vibratorIds = mVibratorManager.getVibratorIds(); in getInfo() local
74 VibratorInfo[] vibratorInfos = new VibratorInfo[vibratorIds.length]; in getInfo()
75 for (int i = 0; i < vibratorIds.length; i++) { in getInfo()
76 vibratorInfos[i] = mVibratorManager.getVibrator(vibratorIds[i]).getInfo(); in getInfo()
354 int[] vibratorIds = vibratorManager.getVibratorIds(); in register() local
356 for (int i = 0; i < vibratorIds.length; i++) { in register()
357 int vibratorId = vibratorIds[i]; in register()
/frameworks/native/services/vibratorservice/test/
DVibratorManagerHalWrapperLegacyTest.cpp117 std::vector<int32_t> vibratorIds; in TEST_F() local
118 vibratorIds.push_back(0); in TEST_F()
120 ASSERT_TRUE(mWrapper->prepareSynced(vibratorIds).isUnsupported()); in TEST_F()
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
DVibrationThreadTest.java789 int[] vibratorIds = new int[]{1, 2}; in vibrate_multipleSyncedCallbackTriggered_finishSteps() local
791 mockVibrators(vibratorIds); in vibrate_multipleSyncedCallbackTriggered_finishSteps()
794 when(mThreadCallbacks.prepareSyncedVibration(anyLong(), eq(vibratorIds))).thenReturn(true); in vibrate_multipleSyncedCallbackTriggered_finishSteps()
810 verify(mThreadCallbacks).prepareSyncedVibration(eq(expectedCap), eq(vibratorIds)); in vibrate_multipleSyncedCallbackTriggered_finishSteps()
823 int[] vibratorIds = new int[]{1, 2, 3, 4}; in vibrate_multipleSynced_callsPrepareAndTriggerCallbacks() local
824 mockVibrators(vibratorIds); in vibrate_multipleSynced_callsPrepareAndTriggerCallbacks()
850 verify(mThreadCallbacks).prepareSyncedVibration(eq(expectedCap), eq(vibratorIds)); in vibrate_multipleSynced_callsPrepareAndTriggerCallbacks()
858 int[] vibratorIds = new int[]{1, 2}; in vibrate_multipleSyncedPrepareFailed_skipTriggerStepAndVibrates() local
859 mockVibrators(vibratorIds); in vibrate_multipleSyncedPrepareFailed_skipTriggerStepAndVibrates()
873 verify(mThreadCallbacks).prepareSyncedVibration(eq(expectedCap), eq(vibratorIds)); in vibrate_multipleSyncedPrepareFailed_skipTriggerStepAndVibrates()
[all …]
DVibratorManagerServiceTest.java1052 private void mockVibrators(int... vibratorIds) {
1053 for (int vibratorId : vibratorIds) {
1057 when(mNativeWrapperMock.getVibratorIds()).thenReturn(vibratorIds);
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java165 static native boolean nativePrepareSynced(long nativeServicePtr, int[] vibratorIds); in nativePrepareSynced() argument
202 int[] vibratorIds = mNativeWrapper.getVibratorIds(); in VibratorManagerService() local
203 if (vibratorIds == null) { in VibratorManagerService()
208 mVibratorIds = vibratorIds; in VibratorManagerService()
210 for (int vibratorId : vibratorIds) { in VibratorManagerService()
987 public boolean prepareSyncedVibration(long requiredCapabilities, int[] vibratorIds) { in prepareSyncedVibration() argument
992 return mNativeWrapper.prepareSynced(vibratorIds); in prepareSyncedVibration()
1156 public boolean prepareSynced(@NonNull int[] vibratorIds) { in prepareSynced() argument
1157 return nativePrepareSynced(mNativeServicePtr, vibratorIds); in prepareSynced()
DVibrationThread.java85 boolean prepareSyncedVibration(long requiredCapabilities, int[] vibratorIds); in prepareSyncedVibration() argument
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java1141 int[] vibratorIds = vibratorManager.getVibratorIds(); in updateVibratorInfos() local
1142 if (vibratorIds.length == 0) { in updateVibratorInfos()
1146 List<Vibrator> vibrators = new ArrayList<>(vibratorIds.length); in updateVibratorInfos()
1147 for (int id : vibratorIds) { in updateVibratorInfos()