Home
last modified time | relevance | path

Searched refs:mInputManager (Results 1 – 18 of 18) 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.java134 private ConversationInputManager mInputManager; field in ComposeMessageView
184 mInputManager.onDetach(); in unbind()
220 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate()
231 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate()
272 boolean shown = mInputManager.toggleSimSelector(true /* animate */, in onFinishInflate()
305 mInputManager.showHideMediaPicker(true /* show */, true /* animate */); in onFinishInflate()
331 mInputManager = inputManager; in setInputManager()
381 mInputManager.showHideSimSelector(false /* show */, true /* animate */); in sendMessageInternal()
569 mInputManager.showHideImeKeyboard(true, true); in resumeComposeMessage()
839 if (mInputManager.showHideSimSelector(false /* show */, true /* animate */)) { in hideSimSelector()
[all …]
/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/onboarding/
DSetupSourcesFragment.java109 private TvInputManagerHelper mInputManager; field in SetupSourcesFragment.ContentFragment
192 mInputManager = singletons.getTvInputManagerHelper(); in onCreate()
196 mInputManager.addCallback(mInputCallback); in onCreate()
213 mInputManager.removeCallback(mInputCallback); in onDestroy()
237 mInputs = mInputManager.getTvInputInfos(true, true); in buildInputs()
250 Collections.sort(mInputs, new TvInputNewComparator(mSetupUtils, mInputManager)); in buildInputs()
DOnboardingActivity.java54 private TvInputManagerHelper mInputManager; field in OnboardingActivity
89 mInputManager = singletons.getTvInputManagerHelper(); in onCreate()
178 TvInputInfo input = mInputManager.getTvInputInfo(inputId); in executeAction()
/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.java74 private final TvInputManagerHelper mInputManager; field in ChannelDataManager
162 mInputManager = inputManager; in ChannelDataManager()
201 mInputManager.addCallback(mTvInputCallback); in start()
217 mInputManager.removeCallback(mTvInputCallback); in stop()
563 mInputRemoved = !mInputManager.hasTvInputInfo(channel.getInputId()); in ChannelWrapper()
/packages/apps/TV/src/com/android/tv/setup/
DSystemSetupActivity.java46 private TvInputManagerHelper mInputManager; field in SystemSetupActivity
57 mInputManager = singletons.getTvInputManagerHelper(); in onCreate()
83 TvInputInfo input = mInputManager.getTvInputInfo(inputId); in executeAction()
/packages/apps/TV/src/com/android/tv/util/
DTvInputManagerHelper.java705 private final TvInputManagerHelper mInputManager; field in TvInputManagerHelper.InputComparatorInternal
708 mInputManager = inputManager; in InputComparatorInternal()
713 if (mInputManager.isPartnerInput(lhs) != mInputManager.isPartnerInput(rhs)) { in compare()
714 return mInputManager.isPartnerInput(lhs) ? -1 : 1; in compare()
716 return mInputManager.loadLabel(lhs).compareTo(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()
/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/dvr/
DDvrDataManagerImpl.java86 private final TvInputManagerHelper mInputManager; field in DvrDataManagerImpl
149 for (TvInputInfo input : mInputManager.getTvInputInfos(true, true)) {
194 mInputManager = tvSingletons.getTvInputManagerHelper(); in DvrDataManagerImpl()
200 mInputManager.addCallback(mInputCallback); in start()
345 mInputManager.removeCallback(mInputCallback); in stop()
865 return mInputManager.hasTvInputInfo(inputId) in isInputAvailable()
/packages/apps/TV/src/com/android/tv/ui/
DTvOverlayManager.java199 private final TvInputManagerHelper mInputManager; field in TvOverlayManager
237 mInputManager = singletons.getTvInputManagerHelper(); in TvOverlayManager()
335 mInputManager.getTvInputInfo(inputId); in TvOverlayManager()
DTunableTvView.java187 private final TvInputManagerHelper mInputManager; field in TunableTvView
435 mInputManager = tvSingletons.getTvInputManagerHelper(); in TunableTvView()
1152 TvInputInfo input = mInputManager.getTvInputInfo(mTagetInputId); in getTuneConflictMessage()