/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDeviceUpdaterTest.java | 70 private InputManager mInputManager; field in StylusDeviceUpdaterTest 79 doReturn(mInputManager).when(mContext).getSystemService(InputManager.class); in setUp() 80 doReturn(new int[]{}).when(mInputManager).getInputDeviceIds(); in setUp() 86 doReturn(new int[]{0, 1}).when(mInputManager).getInputDeviceIds(); in setUp() 89 doReturn(mOtherDevice).when(mInputManager).getInputDevice(0); in setUp() 93 doReturn(mStylusDevice).when(mInputManager).getInputDevice(1); in setUp() 100 verify(mInputManager, times(1)).addInputDeviceBatteryListener(eq(1), any(), in registerCallback_registersBatteryListener() 108 verify(mInputManager, times(1)).registerInputDeviceListener(eq(mStylusDeviceUpdater), in registerCallback_registersInputDeviceListener() 114 doReturn(null).when(mInputManager).getInputDevice(0); in onInputDeviceAdded_null_doesNothing() 117 verify(mInputManager).getInputDevice(0); in onInputDeviceAdded_null_doesNothing() [all …]
|
D | StylusUsiHeaderControllerTest.java | 58 private InputManager mInputManager; field in StylusUsiHeaderControllerTest 76 when(mContext.getSystemService(InputManager.class)).thenReturn(mInputManager); in setUp() 93 verify(mInputManager).addInputDeviceBatteryListener(mInputDevice.getId(), in onCreate_registersBatteryListener() 102 verify(mInputManager).removeInputDeviceBatteryListener(mInputDevice.getId(), in onDestroy_unregistersBatteryListener()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/ |
D | GameControllerPreferenceControllerTest.java | 48 private InputManager mInputManager; field in GameControllerPreferenceControllerTest 59 when(mContext.getSystemService(Context.INPUT_SERVICE)).thenReturn(mInputManager); in setUp() 68 verify(mInputManager).registerInputDeviceListener(mController, null); in testLifecycle_shouldRegisterInputManager() 69 verify(mInputManager, never()).unregisterInputDeviceListener(mController); in testLifecycle_shouldRegisterInputManager() 73 verify(mInputManager).registerInputDeviceListener(mController, null); in testLifecycle_shouldRegisterInputManager() 74 verify(mInputManager).unregisterInputDeviceListener(mController); in testLifecycle_shouldRegisterInputManager() 79 when(mInputManager.getInputDeviceIds()).thenReturn(new int[] {1}); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable() 80 when(mInputManager.getInputDevice(1)).thenReturn(mInputDevice); in getAvailabilityStatus_hasDeviceWithVibrator_shouldReturnAvailable() 89 when(mInputManager.getInputDeviceIds()).thenReturn(new int[] {1}); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled() 90 when(mInputManager.getInputDevice(1)).thenReturn(mInputDevice); in getAvailabilityStatus_hasNoVibratingDevice_shouldReturnDisabled() [all …]
|
D | KeyboardLayoutPickerControllerTest.java | 61 private InputManager mInputManager; field in KeyboardLayoutPickerControllerTest 71 shadowContext.setSystemService(Context.INPUT_SERVICE, mInputManager); in setUp() 94 verify(mInputManager).registerInputDeviceListener(mController, null); in testLifecycle_onStart_shouldRegisterInputManager() 95 verify(mInputManager, never()).unregisterInputDeviceListener(mController); in testLifecycle_onStart_shouldRegisterInputManager() 101 when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(null); in testLifecycle_onStart_NoInputDevice_shouldReturn() 105 verify(mInputManager, never()).getEnabledKeyboardLayoutsForInputDevice(any()); in testLifecycle_onStart_NoInputDevice_shouldReturn() 113 verify(mInputManager).unregisterInputDeviceListener(mController); in testLifecycle_onStop_shouldCancelRegisterInputManager() 114 verify(mInputManager, never()).registerInputDeviceListener(mController, null); in testLifecycle_onStop_shouldCancelRegisterInputManager() 149 when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(device); in testOnDeviceRemove_getSameDevice_shouldFinish() 150 when(mInputManager.getEnabledKeyboardLayoutsForInputDevice( in testOnDeviceRemove_getSameDevice_shouldFinish() [all …]
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDeviceUpdater.java | 56 private final InputManager mInputManager; field in StylusDeviceUpdater 76 mInputManager = context.getSystemService(InputManager.class); in StylusDeviceUpdater() 83 for (int deviceId : mInputManager.getInputDeviceIds()) { in registerCallback() 86 mInputManager.registerInputDeviceListener(this, new Handler(Looper.myLooper())); in registerCallback() 95 mInputManager.removeInputDeviceBatteryListener(deviceId, this); in unregisterCallback() 97 mInputManager.unregisterInputDeviceListener(this); in unregisterCallback() 102 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceAdded() 108 mInputManager.addInputDeviceBatteryListener(deviceId, in onInputDeviceAdded() 126 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in onInputDeviceChanged() 194 for (int deviceId : mInputManager.getInputDeviceIds()) { in hasConnectedBluetoothStylusDevice() [all …]
|
D | StylusUsiHeaderController.java | 52 private final InputManager mInputManager; field in StylusUsiHeaderController 61 mInputManager = context.getSystemService(InputManager.class); in StylusUsiHeaderController() 135 mInputManager.addInputDeviceBatteryListener(mInputDevice.getId(), in onCreate() 141 mInputManager.removeInputDeviceBatteryListener(mInputDevice.getId(), in onDestroy()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/inputverification/ |
D | ClickVerifierTest.java | 54 @Mock private InputManager mInputManager; field in ClickVerifierTest 70 mClickVerifier = new ClickVerifier(mInputManager, mFlags, mAdServicesLogger); in before() 77 when(mInputManager.verifyInputEvent(eventOutsideRange)).thenReturn(mVerifiedMotionEvent); in testInputEventOutsideTimeRangeReturnsFalse() 92 when(mInputManager.verifyInputEvent(eventInsideRange)).thenReturn(mVerifiedMotionEvent); in testVerifiedInputEventInsideTimeRangeReturnsTrue() 113 when(mInputManager.verifyInputEvent(inputEvent)).thenReturn(null); in testInputEventNotValidatedBySystem() 129 when(mInputManager.verifyInputEvent(inputEvent)).thenReturn(null); in testInputEvent_verifyByInputEventFlagDisabled_Verified() 146 when(mInputManager.verifyInputEvent(inputEvent)).thenReturn(mVerifiedMotionEvent); in testVerifiedInputEvent_underUseLimit_verified() 168 when(mInputManager.verifyInputEvent(inputEvent)).thenReturn(mVerifiedMotionEvent); in testVerifiedInputEvent_overUseLimit_notVerified() 193 when(mInputManager.verifyInputEvent(any())).thenReturn(null); in testMultipleUnverifiedInputEvents_allVerified() 222 when(mInputManager.verifyInputEvent(inputEvent)).thenReturn(null); in testUnverifiedInputEvent_motionEvent_underUseLimit_verified() [all …]
|
/packages/apps/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | InputManagerCompat.java | 22 private final InputManager mInputManager; field in InputManagerCompat 25 mInputManager = inputManager; in InputManagerCompat() 31 return mInputManager.injectInputEvent(event, mode); in injectInputEvent()
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | ComposeMessageView.java | 138 private ConversationInputManager mInputManager; field in ComposeMessageView 188 mInputManager.onDetach(); in unbind() 224 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate() 235 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate() 276 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate() 309 mInputManager.showHideMediaPicker(true /* show */, true /* animate */); in onFinishInflate() 335 mInputManager = inputManager; in setInputManager() 385 mInputManager.showHideSimSelector(false /* show */, true /* animate */); in sendMessageInternal() 576 mInputManager.showHideImeKeyboard(true, true); in resumeComposeMessage() 896 if (mInputManager.showHideSimSelector(false /* show */, true /* animate */)) { in hideSimSelector() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/builtin/input/ |
D | InputManagerHelperTest.java | 33 private InputManager mInputManager; field in InputManagerHelperTest 39 InputManagerHelper.injectInputEvent(mInputManager, someEvent); in injectInputEvent_delegateInjectionInAsyncMode() 41 verify(mInputManager).injectInputEvent(someEvent, in injectInputEvent_delegateInjectionInAsyncMode()
|
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/ime/ |
D | InputTestFragment.java | 44 private InputMethodManager mInputManager; field in InputTestFragment 82 mInputManager = (InputMethodManager) getActivity() in setViewsFromFragment() 95 boolean activeState = mInputManager.isActive(); in setListners() 96 boolean acceptingState = mInputManager.isAcceptingText(); in setListners()
|
/packages/apps/TV/src/com/android/tv/data/ |
D | TvInputNewComparator.java | 27 private final TvInputManagerHelper mInputManager; field in TvInputNewComparator 31 mInputManager = inputManager; in TvInputNewComparator() 51 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | RecentsButtonStateProviderTest.java | 78 private InputManager mInputManager; field in RecentsButtonStateProviderTest 112 when(mInputManager.injectInputEvent(any(InputEvent.class), anyInt())).thenReturn(true); in setUp() 113 doReturn(mInputManager).when(mContext).getSystemService(InputManager.class); in setUp() 199 verify(mInputManager, times(1)) in setUpIntents_onLongClick_recentsNotActive_keyEventSent() 230 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in setUpIntents_onLongClick_configSetToFalse_recentsNotActive_noKeyEventSent() 254 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in setUpIntents_onLongClick_recentsActive_noKeyEventSent() 287 verify(mInputManager, never()).injectInputEvent(argThat(this::isRecentsKeyEvent), anyInt()); in getButtonClickListener_onClick_recentsNotActive_noKeyEventSent() 298 verify(mInputManager, times(1)) in getButtonClickListener_onClick_recentsActive_keyEventSent()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | NewKeyboardLayoutPickerFragment.java | 49 private InputManager mInputManager; field in NewKeyboardLayoutPickerFragment 55 if (mInputManager != null 58 Drawable previewDrawable = mInputManager.getKeyboardLayoutPreview( 85 mInputManager = requireContext().getSystemService(InputManager.class); in onCreateView()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceDetailsFragmentTest.java | 101 private InputManager mInputManager; field in BluetoothDeviceDetailsFragmentTest 109 doReturn(mInputManager).when(mContext).getSystemService(InputManager.class); in setUp() 260 doReturn(new int[]{0}).when(mInputManager).getInputDeviceIds(); in createInputDeviceWithMatchingBluetoothAddress() 262 doReturn(TEST_ADDRESS).when(mInputManager).getInputDeviceBluetoothAddress(0); in createInputDeviceWithMatchingBluetoothAddress() 263 doReturn(device).when(mInputManager).getInputDevice(0); in createInputDeviceWithMatchingBluetoothAddress() 268 doReturn(new int[]{0}).when(mInputManager).getInputDeviceIds(); in removeInputDeviceWithMatchingBluetoothAddress() 269 doReturn(null).when(mInputManager).getInputDeviceBluetoothAddress(0); in removeInputDeviceWithMatchingBluetoothAddress()
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | CarTaskViewInputInterceptor.java | 64 private final InputManager mInputManager; field in CarTaskViewInputInterceptor 99 mInputManager = mContext.getSystemService(InputManager.class); in CarTaskViewInputInterceptor() 236 InputManagerHelper.pilferPointers(mInputManager, this); in dispatchTouchEvent() 254 InputManagerHelper.pilferPointers(mInputManager, this); in dispatchTouchEvent() 282 InputManagerHelper.pilferPointers(mInputManager, mSpyWindow); in onLongPress()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | ConnectedDeviceGroupControllerTest.java | 99 private InputManager mInputManager; field in ConnectedDeviceGroupControllerTest 131 when(mContext.getSystemService(InputManager.class)).thenReturn(mInputManager); in setUp() 132 when(mInputManager.getInputDeviceIds()).thenReturn(new int[]{}); in setUp() 267 when(mInputManager.getInputDeviceIds()).thenReturn(new int[]{0}); in getAvailabilityStatus_noUsiStylusFeature_returnUnSupported() 268 when(mInputManager.getInputDevice(0)).thenReturn(new InputDevice.Builder().setSources( in getAvailabilityStatus_noUsiStylusFeature_returnUnSupported() 283 when(mInputManager.getInputDeviceIds()).thenReturn(new int[]{0}); in getAvailabilityStatus_haveUsiStylusFeature_returnSupported() 284 when(mInputManager.getInputDevice(0)).thenReturn(new InputDevice.Builder().setSources( in getAvailabilityStatus_haveUsiStylusFeature_returnSupported()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/inputverification/ |
D | ClickVerifier.java | 44 @NonNull private final InputManager mInputManager; field in ClickVerifier 54 mInputManager = context.getSystemService(InputManager.class); in ClickVerifier() 105 mInputManager = inputManager; in ClickVerifier() 202 boolean isVerifiedBySystem = mInputManager.verifyInputEvent(event) != null; in isInputEventVerifiableBySystem() 242 VerifiedInputEvent verifiedInputEvent = mInputManager.verifyInputEvent(event); in isInputEventUnderUsageLimit()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | RecentsButtonStateProvider.java | 47 private final InputManager mInputManager; field in RecentsButtonStateProvider 56 mInputManager = context.getSystemService(InputManager.class); in RecentsButtonStateProvider() 183 return mIsRecentsEntryPointEnabled && mInputManager.injectInputEvent(
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | ConnectedDeviceGroupController.java | 72 private final InputManager mInputManager; field in ConnectedDeviceGroupController 78 mInputManager = context.getSystemService(InputManager.class); in ConnectedDeviceGroupController() 228 for (int deviceId : mInputManager.getInputDeviceIds()) { in hasUsiStylusFeature() 229 InputDevice device = mInputManager.getInputDevice(deviceId); in hasUsiStylusFeature()
|
/packages/apps/TV/src/com/android/tv/onboarding/ |
D | SetupSourcesFragment.java | 123 @Inject TvInputManagerHelper mInputManager; field in SetupSourcesFragment.ContentFragment 215 mInputManager.addCallback(mInputCallback); in onAttach() 229 mInputManager.removeCallback(mInputCallback); in onDetach() 254 mInputs = mInputManager.getTvInputInfos(true, true); in buildInputs() 267 Collections.sort(mInputs, new TvInputNewComparator(mSetupUtils, mInputManager)); in buildInputs()
|
D | OnboardingActivity.java | 61 private TvInputManagerHelper mInputManager; field in OnboardingActivity 97 mInputManager = singletons.getTvInputManagerHelper(); in onCreate() 195 TvInputInfo input = mInputManager.getTvInputInfo(inputId); in executeAction()
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/ |
D | CustomizeChannelListFragment.java | 55 private TvInputManagerHelper mInputManager; field in CustomizeChannelListFragment 64 mInputManager = getMainActivity().getTvInputManagerHelper(); in onCreate() 66 mChannelComparator = new ChannelImpl.DefaultComparator(getActivity(), mInputManager); in onCreate() 197 Utils.loadLabel(getActivity(), mInputManager.getTvInputInfo(inputId)); in addItemForGroupBySource()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvInputManagerHelper.java | 715 private final TvInputManagerHelper mInputManager; field in TvInputManagerHelper.InputComparatorInternal 720 mInputManager = inputManager; in InputComparatorInternal() 725 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { in compare() 726 return mInputManager.isPartnerInput(lhs) ? -1 : 1; in compare() 729 mInputManager.loadLabel(lhs), mInputManager.loadLabel(rhs)); in compare()
|
/packages/apps/TV/src/com/android/tv/ |
D | ChannelTuner.java | 59 private final TvInputManagerHelper mInputManager; field in ChannelTuner 89 mInputManager = inputManager; in ChannelTuner() 315 mCurrentChannelInputInfo = mInputManager.getTvInputInfo(mCurrentChannel.getInputId()); in setCurrentChannelAndNotify()
|