Home
last modified time | relevance | path

Searched refs:mInputManager (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DGameControllerPreferenceControllerTest.java48 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 …]
DKeyboardLayoutPickerControllerTest.java58 private InputManager mInputManager; field in KeyboardLayoutPickerControllerTest
68 shadowContext.setSystemService(Context.INPUT_SERVICE, mInputManager); in setUp()
91 verify(mInputManager).registerInputDeviceListener(mController, null); in testLifecycle_onStart_shouldRegisterInputManager()
92 verify(mInputManager, never()).unregisterInputDeviceListener(mController); in testLifecycle_onStart_shouldRegisterInputManager()
98 when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(null); in testLifecycle_onStart_NoInputDevice_shouldFinish()
110 verify(mInputManager).unregisterInputDeviceListener(mController); in testLifecycle_onStop_shouldCancelRegisterInputManager()
111 verify(mInputManager, never()).registerInputDeviceListener(mController, null); in testLifecycle_onStop_shouldCancelRegisterInputManager()
146 when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(device); in testOnDeviceRemove_getSameDevice_shouldFinish()
147 when(mInputManager.getEnabledKeyboardLayoutsForInputDevice( in testOnDeviceRemove_getSameDevice_shouldFinish()
166 when(mInputManager.getInputDeviceByDescriptor(anyString())).thenReturn(device); in testOnDeviceRemove_getDifferentDevice_shouldNotFinish()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DComposeMessageView.java138 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/service/src/com/android/car/systeminterface/
DDisplayInterface.java81 private final InputManager mInputManager; field in DisplayInterface.DefaultImpl
123 mInputManager = (InputManager) mContext.getSystemService(Context.INPUT_SERVICE); in DefaultImpl()
217 for (int deviceId : mInputManager.getInputDeviceIds()) { in setDisplayState()
218 InputDevice inputDevice = mInputManager.getInputDevice(deviceId); in setDisplayState()
223 mInputManager.enableInputDevice(deviceId); in setDisplayState()
225 mInputManager.disableInputDevice(deviceId); in setDisplayState()
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/ime/
DInputTestFragment.java45 private InputMethodManager mInputManager; field in InputTestFragment
84 mInputManager = (InputMethodManager) getActivity() in setViewsFromFragment()
97 boolean activeState = mInputManager.isActive(); in setListners()
98 boolean acceptingState = mInputManager.isAcceptingText(); in setListners()
/packages/apps/TV/src/com/android/tv/data/
DTvInputNewComparator.java27 private final TvInputManagerHelper mInputManager; field in TvInputNewComparator
31 mInputManager = inputManager; in TvInputNewComparator()
51 return mInputManager.getDefaultTvInputInfoComparator().compare(lhs, rhs); in compare()
DChannelImpl.java726 private final TvInputManagerHelper mInputManager; field in ChannelImpl.DefaultComparator
732 mInputManager = inputManager; in DefaultComparator()
746 boolean lhsIsPartner = mInputManager.isPartnerInput(lhs.getInputId()); in compare()
747 boolean rhsIsPartner = mInputManager.isPartnerInput(rhs.getInputId()); in compare()
784 TvInputInfo info = mInputManager.getTvInputInfo(channel.getInputId()); in getInputLabelForChannel()
DChannelDataManager.java80 private final TvInputManagerHelper mInputManager; field in ChannelDataManager
158 mInputManager = inputManager; in ChannelDataManager()
197 mInputManager.addCallback(mTvInputCallback); in start()
213 mInputManager.removeCallback(mTvInputCallback); in stop()
559 mInputRemoved = !mInputManager.hasTvInputInfo(channel.getInputId()); in ChannelWrapper()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java123 @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()
DOnboardingActivity.java61 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/util/
DTvInputManagerHelper.java715 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/ui/sidepanel/
DCustomizeChannelListFragment.java55 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/
DChannelTuner.java59 private final TvInputManagerHelper mInputManager; field in ChannelTuner
89 mInputManager = inputManager; in ChannelTuner()
315 mCurrentChannelInputInfo = mInputManager.getTvInputInfo(mCurrentChannel.getInputId()); in setCurrentChannelAndNotify()
DInputSessionManager.java70 private final TvInputManagerHelper mInputManager; field in InputSessionManager
82 mInputManager = TvSingletons.getSingletons(context).getTvInputManagerHelper(); in InputSessionManager()
326 TvInputInfo input = mInputManager.getTvInputInfo(mInputId); in tune()
461 TvInputInfo input = mInputManager.getTvInputInfo(inputId); in tune()
DSetupPassthroughActivity.java68 @Inject TvInputManagerHelper mInputManager; field in SetupPassthroughActivity
80 mTvInputInfo = mInputManager.getTvInputInfo(inputId); in onCreate()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingScheduler.java80 private final TvInputManagerHelper mInputManager; field in RecordingScheduler
154 mInputManager = inputManager; in RecordingScheduler()
159 mInputManager.addCallback(this); in RecordingScheduler()
/packages/apps/TV/src/com/android/tv/setup/
DSystemSetupActivity.java55 @Inject TvInputManagerHelper mInputManager; field in SystemSetupActivity
99 TvInputInfo input = mInputManager.getTvInputInfo(inputId); in executeAction()
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/
DSchedulerTest.java67 @Mock TvInputManagerHelper mInputManager; field in SchedulerTest
84 mInputManager, in setUp()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManagerImpl.java96 private final TvInputManagerHelper mInputManager; field in DvrDataManagerImpl
162 for (TvInputInfo input : mInputManager.getTvInputInfos(true, true)) {
215 mInputManager = tvInputManagerHelper; in DvrDataManagerImpl()
225 mInputManager.addCallback(mInputCallback); in start()
374 mInputManager.removeCallback(mInputCallback); in stop()
894 return mInputManager.hasTvInputInfo(inputId) in isInputAvailable()
/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java207 private final TvInputManagerHelper mInputManager; field in TvOverlayManager
251 mInputManager = tvInputManager; in TvOverlayManager()
321 mInputManager, in TvOverlayManager()
349 mInputManager.getTvInputInfo(inputId); in TvOverlayManager()
DTunableTvView.java192 private final TvInputManagerHelper mInputManager; field in TunableTvView
440 mInputManager = tvSingletons.getTvInputManagerHelper(); in TunableTvView()
1168 TvInputInfo input = mInputManager.getTvInputInfo(mTagetInputId); in getTuneConflictMessage()