Home
last modified time | relevance | path

Searched refs:mManager (Results 1 – 25 of 64) sorted by relevance

123

/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragAndDropManagerTests.java94 private DragAndDropManager mManager; field in DragAndDropManagerTests
126 mManager = new RuntimeDragAndDropManager(mActivity, mClipper, mShadowBuilder, in setUp()
150 mManager.startDrag( in testStartDrag_SetsCorrectClipData()
165 mManager.startDrag( in testStartDrag_SetsCorrectClipData_NullParent()
180 mManager.startDrag( in testStartDrag_BuildsCorrectShadow_SingleDoc()
195 mManager.startDrag( in testStartDrag_BuildsCorrectShadow_MultipleDocs()
212 mManager.startDrag( in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
222 assertFalse(mManager.canSpringOpen(TestProvidersAccess.HAMMY, TestEnv.FOLDER_2)); in testCanSpringOpen_ReturnsFalse_RootNotSupportCreate()
228 mManager.startDrag( in testInArchiveUris_HasCorrectFlagPermission()
242 mManager.startDrag( in testCanSpringOpen_ReturnsFalse_DocIsInvalidDestination()
[all …]
DFocusManagerTest.java42 private FocusManager mManager; field in FocusManagerTest
56 mManager = new FocusManager(mFeatures, mSelectionMgr, null, null, 0) in setUp()
61 mManager.focusDocument(Integer.toString(3)); in testFocus()
66 mManager.focusDocument(Integer.toString(10)); in testPendingFocus()
69 mManager.onLayoutCompleted(); in testPendingFocus()
76 mManager = new FocusManager( in testFocusDirectoryList_noItemsToFocus()
79 assertFalse(mManager.focusDirectoryList()); in testFocusDirectoryList_noItemsToFocus()
84 assertFalse(mManager.focusDirectoryList()); in testFocusDirectoryList_noVisibleItems()
89 assertFalse(mManager.focusDirectoryList()); in testFocusDirectoryList_hasSelection()
93 mManager = new FocusManager( in testFocusDirectoryList_invalidContentScope()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java80 private ContextualCardManager mManager; field in ContextualCardManagerTest
86 mManager = new ContextualCardManager(mContext, mLifecycle, null /* bundle */); in setUp()
91 assertThat(mManager.mIsFirstLaunch).isTrue(); in constructor_noSavedInstanceState_shouldSetFirstLaunch()
96 assertThat(mManager.mSavedCards).isNull(); in constructor_noSavedInstanceState_shouldNotHaveSavedCards()
107 mManager = new ContextualCardManager(mContext, mLifecycle, outState); in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards()
109 final List<String> actualCards = mManager.mSavedCards.stream().collect(Collectors.toList()); in constructor_hasSavedInstanceState_shouldContainExpectedSavedCards()
117 final ControllerRendererPool pool = mManager.getControllerRendererPool(); in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers()
132 mManager.setupController(ContextualCard.CardType.SLICE); in setupController_notLifecycleObserverInstance_shouldNotAttachToLifecycle()
148 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_shouldBeDescendingOrder()
159 final List<ContextualCard> sortedCards = mManager.sortCards(cards); in sortCards_hasConditionalAndSliceCards_conditionalShouldAlwaysBeTheLast()
[all …]
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java87 private CarHeadsUpNotificationManager mManager; field in CarHeadsUpNotificationManagerTest
194 mManager = null; in resetShadow()
209 mManager.maybeShowHeadsUp(mNotification2, mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_isNotImportant_returnsNull()
211 mManager.getActiveHeadsUpNotifications().get(mNotification2.getKey())); in maybeShowHeadsUp_isNotImportant_returnsNull()
218 mManager.maybeRemoveHeadsUp(mStatusBarNotificationSpy); in maybeRemoveHeadsUp_noCurrentNotifications_shouldNotCallClearView()
232 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
234 mManager.getActiveHeadsUpNotifications().get(mNotification1.getKey())); in maybeShowHeadsUp_isImportanceHigh_returnsNotNull()
245 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_shouldReturnOne()
247 assertThat(mManager.getActiveHeadsUpNotifications().size()).isEqualTo(1); in getActiveHeadsUpNotifications_shouldReturnOne()
257 mManager.maybeShowHeadsUp(mNotification1, mRankingMapMock, mActiveNotifications); in getActiveHeadsUpNotifications_diffNotifications_shouldReturnTwo()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionManagerTest.java48 private ConditionManager mManager; field in ConditionManagerTest
54 mManager = spy(new ConditionManager(mContext, mConditionListener)); in setUp()
60 mManager.mCardControllers.clear(); in setUp()
61 mManager.mCardControllers.add(mController); in setUp()
66 assertThat(mManager.getDisplayableCards()).isEmpty(); in getDisplayableCards_nothingDisplayable()
73 assertThat(mManager.getDisplayableCards()).hasSize(1); in getDisplayableCards_hasDisplayable()
78 mManager.onPrimaryClick(mContext, ID); in onPrimaryClick_shouldRelayToController()
85 mManager.onActionClick(ID); in onActionClick_shouldRelayToController()
94 mManager.startMonitoringStateChange(); in startMonitoringStateChange_multipleTimes_shouldRegisterOnce()
98 verify(mManager, times(loopCount)).onConditionChanged(); in startMonitoringStateChange_multipleTimes_shouldRegisterOnce()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java81 private ProvisioningManager mManager; field in ProvisioningManagerTest
94 mManager = new ProvisioningManager(mContext, mUiHandler, mFactory, mAnalyticsTracker, in setUp()
96 when(mFactory.createProvisioningController(mContext, TEST_PARAMS, mManager)) in setUp()
104 mManager.maybeStartProvisioning(TEST_PARAMS); in testMaybeStartProvisioning()
107 verify(mFactory).createProvisioningController(mContext, TEST_PARAMS, mManager); in testMaybeStartProvisioning()
115 mManager.maybeStartProvisioning(TEST_PARAMS); in testMaybeStartProvisioning()
125 mManager.maybeStartProvisioning(TEST_PARAMS); in testCancelProvisioning()
128 mManager.cancelProvisioning(); in testCancelProvisioning()
138 mManager.registerListener(mCallback); in testListener_error()
140 mManager.error(R.string.cant_set_up_device, TEST_ERROR_ID, TEST_FACTORY_RESET_REQUIRED); in testListener_error()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/queries/
DSearchHistoryManagerTest.java43 private SearchHistoryManager mManager; field in SearchHistoryManagerTest
51 mManager = SearchHistoryManager.getInstance(mContext); in setUp()
64 final List<String> list = mManager.getHistoryList(null); in clearData()
66 mManager.deleteHistory(list.get(i)); in clearData()
86 mManager.setDatabaseListener(mListener); in testAddHistory()
87 mManager.addHistory("testKeyword"); in testAddHistory()
111 mManager.setDatabaseListener(mListener); in testDeleteHistory()
113 mManager.addHistory("testDeleteKeyword"); in testDeleteHistory()
124 mManager.deleteHistory("testDeleteKeyword"); in testDeleteHistory()
143 mManager.setDatabaseListener(mListener); in testGetHistoryList()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarVendorExtensionManagerTest.java112 private CarVendorExtensionManager mManager; field in CarVendorExtensionManagerTest
118 mManager = (CarVendorExtensionManager) getCar().getCarManager(Car.VENDOR_EXTENSION_SERVICE); in setUp()
119 assertNotNull(mManager); in setUp()
124 List<CarPropertyConfig> configs = mManager.getProperties(); in testPropertyList()
142 mManager.setGlobalProperty(Integer.class, CUSTOM_GLOBAL_INT_PROP_ID, value); in testIntGlobalProperty()
143 int actualValue = mManager.getGlobalProperty(Integer.class, CUSTOM_GLOBAL_INT_PROP_ID); in testIntGlobalProperty()
150 mManager.setProperty( in testFloatZonedProperty()
156 float actualValue = mManager.getProperty( in testFloatZonedProperty()
166 mManager.setGlobalProperty( in testByteArrayProperty()
171 byte[] actualData = mManager.getGlobalProperty( in testByteArrayProperty()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java42 private NotificationManager mManager; field in NotificationFragment
51 mManager = in onCreate()
54 mManager.createNotificationChannel(new NotificationChannel( in onCreate()
60 mManager.createNotificationChannel(noSoundChannel); in onCreate()
62 mManager.createNotificationChannel(new NotificationChannel( in onCreate()
67 mManager.createNotificationChannel(new NotificationChannel( in onCreate()
70 mManager.createNotificationChannel(new NotificationChannel( in onCreate()
73 mManager.createNotificationChannel(new NotificationChannel( in onCreate()
115 mManager.cancelAll(); in initCancelAllButton()
128 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarProjectionManagerTest.java46 private CarProjectionManager mManager; field in CarProjectionManagerTest
74 mManager = (CarProjectionManager) getCar().getCarManager(Car.PROJECTION_SERVICE); in setUp()
75 assertNotNull(mManager); in setUp()
79 mManager.registerProjectionListener( in testSetUnsetListeners()
81 mManager.unregisterProjectionListener(); in testSetUnsetListeners()
86 mManager.registerProjectionListener(null, CarProjectionManager.PROJECTION_VOICE_SEARCH); in testRegisterListenersHandleBadInput()
96 mManager.registerProjectionRunner(intent); in testRegisterProjectionRunner()
105 mManager.unregisterProjectionRunner(intent); in testRegisterProjectionRunner()
114 mManager.startProjectionAccessPoint(new ProjectionAccessPointCallback() { in testAccessPoint()
123 mManager.stopProjectionAccessPoint(); in testAccessPoint()
DCarAppFocusManagerTest.java37 private CarAppFocusManager mManager; field in CarAppFocusManagerTest
44 mManager = (CarAppFocusManager) getCar().getCarManager(Car.APP_FOCUS_SERVICE); in setUp()
45 assertNotNull(mManager); in setUp()
49 int[] activeTypes = mManager.getActiveAppTypes(); in setUp()
52 mManager.requestAppFocus(activeTypes[i], owner); in setUp()
54 mManager.abandonAppFocus(owner, activeTypes[i]); in setUp()
64 mManager.requestAppFocus(APP_FOCUS_TYPE_NAVIGATION, null); in testSetActiveNullListener()
73 mManager.addFocusListener(null, 0); in testRegisterNull()
83 mManager.addFocusListener(listener, 1); in testRegisterUnregister()
84 mManager.addFocusListener(listener2, 1); in testRegisterUnregister()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingSelectionFragment.java52 private LocalBluetoothManager mManager; field in BluetoothPairingSelectionFragment
62 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
63 if (mManager == null) { in onAttach()
71 mManager.setForegroundActivity(requireActivity()); in onStart()
72 mManager.getEventManager().registerCallback(mCallback); in onStart()
79 mManager.setForegroundActivity(null); in onStop()
80 mManager.getEventManager().unregisterCallback(mCallback); in onStop()
DBluetoothDevicePickerFragment.java35 private LocalBluetoothManager mManager; field in BluetoothDevicePickerFragment
46 mManager = BluetoothUtils.getLocalBtManager(context); in onAttach()
47 if (mManager == null) { in onAttach()
64 mManager.setForegroundActivity(requireActivity()); in onStart()
71 mManager.setForegroundActivity(null); in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DColorModePreferenceFragmentTest.java61 private ColorDisplayManager mManager; field in ColorModePreferenceFragmentTest
68 ReflectionHelpers.setField(mFragment, "mColorDisplayManager", mManager); in setup()
154 when(mManager.getColorMode()) in getKey_natural()
163 when(mManager.getColorMode()) in getKey_boosted()
172 when(mManager.getColorMode()) in getKey_saturated()
181 when(mManager.getColorMode()) in getKey_automatic()
191 verify(mManager).setColorMode(ColorDisplayManager.COLOR_MODE_NATURAL); in setKey_natural()
197 verify(mManager).setColorMode(ColorDisplayManager.COLOR_MODE_BOOSTED); in setKey_boosted()
203 verify(mManager).setColorMode(ColorDisplayManager.COLOR_MODE_SATURATED); in setKey_saturated()
209 verify(mManager).setColorMode(ColorDisplayManager.COLOR_MODE_AUTOMATIC); in setKey_automatic()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarPropertyManagerTest.java47 private CarPropertyManager mManager; field in CarPropertyManagerTest
54 mManager = (CarPropertyManager) car.getCarManager(Car.PROPERTY_SERVICE); in setUp()
55 assertThat(mManager).isNotNull(); in setUp()
61 assertThat(mManager.getIntProperty(HVAC_FAN_SPEED, 0)).isEqualTo(FAN_SPEED_VALUE); in carPropertyManager_int()
68 mManager.getFloatProperty(HVAC_FAN_SPEED, 0); in carPropertyManager_intThrows()
77 assertThat(mManager.getFloatProperty(HVAC_TEMPERATURE_CURRENT, 0)) in carPropertyManager_float()
85 mManager.getIntProperty(HVAC_TEMPERATURE_CURRENT, 0); in carPropertyManager_floatThrows()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java63 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStatusIfExists()
79 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getStringField()
90 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in getLongField()
101 ParcelFileDescriptor downloadedFile = mManager.openDownloadedFile(mId); in getRawContents()
179 Cursor cursor = mManager.query(new DownloadManager.Query().setFilterById(mId)); in runUntilProgress()
214 protected DownloadManager mManager; field in AbstractPublicApiTest
223 mManager = new DownloadManager(new ContextWrapper(mContext) { in setUp()
234 mManager.setAccessFilename(true); in setUp()
254 return new Download(mManager.enqueue(request)); in enqueueRequest()
DPublicApiFunctionalTest.java265 Cursor cursor = mManager.query(new DownloadManager.Query()); in testFiltering()
268 cursor = mManager.query(new DownloadManager.Query().setFilterById(download2.mId)); in testFiltering()
271 cursor = mManager.query(new DownloadManager.Query() in testFiltering()
275 cursor = mManager.query(new DownloadManager.Query() in testFiltering()
280 cursor = mManager.query(new DownloadManager.Query() in testFiltering()
286 cursor = mManager.query(new DownloadManager.Query()); in testFiltering()
288 … cursor = mManager.query(new DownloadManager.Query().setOnlyIncludeVisibleInDownloadsUi(true)); in testFiltering()
309 Cursor cursor = mManager.query(new DownloadManager.Query()); in testOrdering()
312 cursor = mManager.query(new DownloadManager.Query() in testOrdering()
317 cursor = mManager.query(new DownloadManager.Query() in testOrdering()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DContactsContentObserver.java42 private final ContactsManager mManager; field in ContactsContentObserver
49 mManager = manager; in ContactsContentObserver()
108 final int contactCount = mManager.getContactCount(); in haveContentsChanged()
115 if (contactCount != mManager.getContactCountAtLastRebuild()) { in haveContentsChanged()
118 + mManager.getContactCountAtLastRebuild() + " to " + contactCount); in haveContentsChanged()
122 final ArrayList<String> names = mManager.getValidNames(Contacts.CONTENT_URI); in haveContentsChanged()
123 if (names.hashCode() != mManager.getHashCodeAtLastRebuild()) { in haveContentsChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DDarkUISettingsRadioButtonsController.java31 UiModeManager mManager; field in DarkUISettingsRadioButtonsController
36 mManager = context.getSystemService(UiModeManager.class); in DarkUISettingsRadioButtonsController()
41 final int mode = mManager.getNightMode(); in getDefaultKey()
49 mManager.setNightMode(UiModeManager.MODE_NIGHT_YES); in setDefaultKey()
52 mManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in setDefaultKey()
63 final int mode = mManager.getNightMode(); in updateFooter()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/model/clock/
DBaseClockManagerTest.java44 private TestClockManager mManager; field in BaseClockManagerTest
49 mManager = new TestClockManager(mProvider); in setUp()
57 assertTrue(mManager.isAvailable()); in testIsAvailable()
65 mManager.apply(clock, new Callback() { in testApply()
76 assertEquals(id, mManager.getClockId()); in testApply()
81 mManager.fetchOptions(null, false); in testFetch()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/inputmethod/
DInputMethodAndSubtypePreferenceController.java34 private InputMethodAndSubtypeEnablerManagerCompat mManager; field in InputMethodAndSubtypePreferenceController
44 mManager = new InputMethodAndSubtypeEnablerManagerCompat(mFragment); in initialize()
55 mManager.init(mFragment, mTargetImi, screen); in displayPreference()
60 mManager.refresh(mContext, mFragment); in onStart()
65 mManager.save(mContext, mFragment); in onStop()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DInputMethodAndSubtypePreferenceController.java34 private InputMethodAndSubtypeEnablerManagerCompat mManager; field in InputMethodAndSubtypePreferenceController
44 mManager = new InputMethodAndSubtypeEnablerManagerCompat(mFragment); in initialize()
55 mManager.init(mFragment, mTargetImi, screen); in displayPreference()
60 mManager.refresh(mContext, mFragment); in onStart()
65 mManager.save(mContext, mFragment); in onStop()
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSlicesIndexerTest.java61 private SlicesIndexer mManager; field in SlicesIndexerTest
67 mManager = spy(new SlicesIndexer(mContext)); in setUp()
83 mManager.run(); in testAlreadyIndexed_doesNotIndexAgain()
101 doReturn(new ArrayList<SliceData>()).when(mManager).getSliceData(); in testInsertSliceData_indexedStateSet()
103 mManager.run(); in testInsertSliceData_indexedStateSet()
111 doReturn(sliceData).when(mManager).getSliceData(); in testInsertSliceData_mockDataInserted()
113 mManager.run(); in testInsertSliceData_mockDataInserted()
/packages/services/Car/car-lib/src/android/car/
DCarAppFocusManager.java329 private final WeakReference<CarAppFocusManager> mManager; field in CarAppFocusManager.IAppFocusListenerImpl
335 mManager = new WeakReference<>(manager); in IAppFocusListenerImpl()
357 final CarAppFocusManager manager = mManager.get(); in onAppFocusChanged()
370 private final WeakReference<CarAppFocusManager> mManager; field in CarAppFocusManager.IAppFocusOwnershipCallbackImpl
376 mManager = new WeakReference<>(manager); in IAppFocusOwnershipCallbackImpl()
398 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipLost()
410 final CarAppFocusManager manager = mManager.get(); in onAppFocusOwnershipGranted()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DInputMethodAndSubtypeEnablerFragment.java35 private InputMethodAndSubtypeEnablerManager mManager; field in InputMethodAndSubtypeEnablerFragment
63 mManager = new InputMethodAndSubtypeEnablerManager(this); in onCreatePreferences()
64 mManager.init(this, targetImi, root); in onCreatePreferences()
92 mManager.refresh(getContext(), this); in onResume()
98 mManager.save(getContext(), this); in onPause()

123