Home
last modified time | relevance | path

Searched refs:mController (Results 1 – 25 of 84) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/view/
DInsetsControllerTest.java68 private InsetsController mController; field in InsetsControllerTest
86 mController = new InsetsController(viewRootImpl); in setup()
88 mController.calculateInsets( in setup()
94 mController.onFrameChanged(new Rect(0, 0, 100, 100)); in setup()
95 mController.getState().setDisplayFrame(new Rect(0, 0, 100, 100)); in setup()
103 mController.onControlsChanged(new InsetsSourceControl[] { control }); in testControlsChanged()
105 mController.getSourceConsumer(TYPE_TOP_BAR).getControl().getLeash()); in testControlsChanged()
111 mController.onControlsChanged(new InsetsSourceControl[] { control }); in testControlsRevoked()
112 mController.onControlsChanged(new InsetsSourceControl[0]); in testControlsRevoked()
113 assertNull(mController.getSourceConsumer(TYPE_TOP_BAR).getControl()); in testControlsRevoked()
[all …]
DInsetsAnimationControlImplTest.java70 private InsetsAnimationControlImpl mController; field in InsetsAnimationControlImplTest
118 mController = new InsetsAnimationControlImpl(consumers, in setup()
125 assertEquals(Insets.of(0, 100, 100, 0), mController.getShownStateInsets()); in testGetters()
126 assertEquals(Insets.of(0, 0, 0, 0), mController.getHiddenStateInsets()); in testGetters()
127 assertEquals(Insets.of(0, 100, 0, 0), mController.getCurrentInsets()); in testGetters()
128 assertEquals(systemBars(), mController.getTypes()); in testGetters()
133 mController.changeInsets(Insets.of(0, 30, 40, 0)); in testChangeInsets()
134 mController.applyChangeInsets(new InsetsState()); in testChangeInsets()
135 assertEquals(Insets.of(0, 30, 40, 0), mController.getCurrentInsets()); in testChangeInsets()
152 mController.finish(sideBars()); in testFinishing()
[all …]
DImeInsetsSourceConsumerTest.java55 InsetsController mController; field in ImeInsetsSourceConsumerTest
70 mController = new InsetsController(viewRootImpl); in setup()
72 mController.calculateInsets( in setup()
79 new InsetsState(), Transaction::new, mController); in setup()
86 mController.onControlsChanged(new InsetsSourceControl[] { ime }); in testImeVisibility()
92 mController.cancelExistingAnimation(); in testImeVisibility()
93 assertTrue(mController.getSourceConsumer(ime.getType()).isVisible()); in testImeVisibility()
97 mController.cancelExistingAnimation(); in testImeVisibility()
98 assertFalse(mController.getSourceConsumer(ime.getType()).isVisible()); in testImeVisibility()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java68 private AppOpsControllerImpl mController; field in AppOpsControllerTest
78 mController = new AppOpsControllerImpl(mContext, mTestableLooper.getLooper()); in setUp()
83 mController.setListening(true); in testOnlyListenForFewOps()
84 verify(mAppOpsManager, times(1)).startWatchingActive(AppOpsControllerImpl.OPS, mController); in testOnlyListenForFewOps()
89 mController.setListening(false); in testStopListening()
90 verify(mAppOpsManager, times(1)).stopWatchingActive(mController); in testStopListening()
95 mController.addCallback( in addCallback_includedCode()
98 mController.onOpActiveChanged( in addCallback_includedCode()
100 mController.onOpNoted(AppOpsManager.OP_FINE_LOCATION, TEST_UID, TEST_PACKAGE_NAME, in addCallback_includedCode()
109 mController.addCallback(new int[]{AppOpsManager.OP_FINE_LOCATION}, mCallback); in addCallback_notIncludedCode()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppStandbyControllerTests.java117 private AppStandbyController mController; field in AppStandbyControllerTests
318 mController = setupController(); in setUp()
319 setChargingState(mController, false); in setUp()
388 mController.addListener(paroleListener); in testCharging()
390 setChargingState(mController, true); in testCharging()
402 setChargingState(mController, false); in testCharging()
403 mController.checkIdleStates(USER_ID); in testCharging()
413 setChargingState(mController, true); in testCharging()
414 setChargingState(mController, false); in testCharging()
423 setChargingState(mController, true); in testCharging()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DEnableZenModeDialogTest.java50 private EnableZenModeDialog mController; field in EnableZenModeDialogTest
75 mController = spy(new EnableZenModeDialog(mContext)); in setup()
76 mController.mContext = mContext; in setup()
77 mController.mLayoutInflater = mLayoutInflater; in setup()
78 mController.mForeverId = Condition.newId(mContext).appendPath("forever").build(); in setup()
84 mController.mNotificationManager = mNotificationManager; in setup()
85 mController.getContentView(); in setup()
89 doNothing().when(mController).bindGenericCountdown(); in setup()
90 doReturn(null).when(mController).getTimeUntilNextAlarmCondition(); in setup()
91 doReturn(0L).when(mController).getNextAlarm(); in setup()
[all …]
DZenDurationDialogTest.java41 private ZenDurationDialog mController; field in ZenDurationDialogTest
54 mController = spy(new ZenDurationDialog(mContext)); in setup()
55 mController.mLayoutInflater = mLayoutInflater; in setup()
56 mController.getContentView(); in setup()
64 mController.setupDialog(mBuilder); in testAlwaysPrompt()
66 assertFalse(mController.getConditionTagAt(ZenDurationDialog.FOREVER_CONDITION_INDEX).rb in testAlwaysPrompt()
68 assertFalse(mController.getConditionTagAt(ZenDurationDialog.COUNTDOWN_CONDITION_INDEX).rb in testAlwaysPrompt()
70 assertTrue(mController.getConditionTagAt( in testAlwaysPrompt()
78 mController.setupDialog(mBuilder); in testForever()
80 assertTrue(mController.getConditionTagAt(ZenDurationDialog.FOREVER_CONDITION_INDEX).rb in testForever()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRecentsAnimationControllerTest.java76 private RecentsAnimationController mController; field in RecentsAnimationControllerTest
88 mController = new RecentsAnimationController(mWm, mMockRunner, mAnimationCallbacks, in setUp()
96 AnimationAdapter adapter = mController.addAnimation(appWindow.getTask(), in testRemovedBeforeStarted_expectCanceled()
102 mController.startAnimation(); in testRemovedBeforeStarted_expectCanceled()
115 AnimationAdapter adapter = mController.addAnimation(appWindow.getTask(), in testCancelAfterRemove_expectIgnored()
121 mController.startAnimation(); in testCancelAfterRemove_expectIgnored()
122 mController.cleanupAnimation(REORDER_KEEP_IN_PLACE); in testCancelAfterRemove_expectIgnored()
124 mController.cancelAnimation(REORDER_MOVE_TO_ORIGINAL_POSITION, "test"); in testCancelAfterRemove_expectIgnored()
132 mWm.setRecentsAnimationController(mController); in testIncludedApps_expectTargetAndVisible()
142 mController.initialize(ACTIVITY_TYPE_HOME, new SparseBooleanArray()); in testIncludedApps_expectTargetAndVisible()
[all …]
DLaunchParamsControllerTests.java69 private LaunchParamsController mController; field in LaunchParamsControllerTests
75 mController = new LaunchParamsController(mService, mPersister); in setUp()
85 mController.registerModifier(positioner); in testArgumentPropagation()
92 mController.calculate(record.getTaskRecord(), layout, record, source, options, PHASE_BOUNDS, in testArgumentPropagation()
104 mController.registerModifier(positioner); in testStoredParamsRecovery()
117 mController.calculate(activity.getTaskRecord(), null /*layout*/, activity, null /*source*/, in testStoredParamsRecovery()
134 mController.registerModifier(ignoredPositioner); in testEarlyExit()
135 mController.registerModifier(earlyExitPositioner); in testEarlyExit()
137 mController.calculate(null /*task*/, null /*layout*/, null /*activity*/, in testEarlyExit()
153 mController.registerModifier(firstPositioner); in testRegistration()
[all …]
DRemoteAnimationControllerTest.java72 private RemoteAnimationController mController; field in RemoteAnimationControllerTest
84 mController = new RemoteAnimationController(mWm, mAdapter, mHandler); in setUp()
92 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testRun()
95 mController.goodToGo(); in testRun()
125 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testCancel()
128 mController.goodToGo(); in testCancel()
138 final AnimationAdapter adapter = mController.createRemoteAnimationRecord(win.mAppToken, in testTimeout()
141 mController.goodToGo(); in testTimeout()
156 final AnimationAdapter adapter = mController.createRemoteAnimationRecord( in testTimeout_scaled()
159 mController.goodToGo(); in testTimeout_scaled()
[all …]
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
DPhotoViewActivity.java34 private PhotoViewController mController; field in PhotoViewActivity
40 mController = createController(); in onCreate()
41 mController.onCreate(savedInstanceState); in onCreate()
50 return mController; in getController()
56 mController.onStart(); in onStart()
62 mController.onResume(); in onResume()
67 mController.onPause(); in onPause()
73 mController.onStop(); in onStop()
79 mController.onDestroy(); in onDestroy()
85 if (!mController.onBackPressed()) { in onBackPressed()
[all …]
/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
DPhotoViewActivity.java34 private PhotoViewController mController; field in PhotoViewActivity
40 mController = createController(); in onCreate()
41 mController.onCreate(savedInstanceState); in onCreate()
50 return mController; in getController()
56 mController.onStart(); in onStart()
62 mController.onResume(); in onResume()
67 mController.onPause(); in onPause()
73 mController.onStop(); in onStop()
79 mController.onDestroy(); in onDestroy()
85 if (!mController.onBackPressed()) { in onBackPressed()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DZenModeControllerImplTest.java55 private ZenModeControllerImpl mController; field in ZenModeControllerImplTest
63 mController = new ZenModeControllerImpl(mContext, Handler.createAsync(Looper.myLooper())); in setUp()
71 mController.removeCallback(mCallback); in testRemoveDuringCallback()
74 mController.addCallback(mCallback); in testRemoveDuringCallback()
76 mController.addCallback(mockCallback); in testRemoveDuringCallback()
77 mController.fireConfigChanged(null); in testRemoveDuringCallback()
85 mController.updateZenMode(Settings.Global.ZEN_MODE_OFF); in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
86 mController.updateZenModeConfig(); in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
88 assertFalse(mController.areNotificationsHiddenInShade()); in testAreNotificationsHiddenInShade_zenOffShadeSuppressed()
96 mController.updateConsolidatedNotificationPolicy(); in testAreNotificationsHiddenInShade_zenOnShadeNotSuppressed()
[all …]
DHotspotControllerImplTest.java61 private HotspotControllerImpl mController; field in HotspotControllerImplTest
79 mController = new HotspotControllerImpl(mContext, new Handler(mLooper.getLooper())); in setUp()
84 mController.addCallback(mCallback1); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
85 mController.addCallback(mCallback2); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
87 verify(mWifiManager, times(1)).registerSoftApCallback(any(), eq(mController)); in testAddingTwoCallbacksRegistersToWifiManagerOnce()
92 mController.addCallback(mCallback1); in testAddingCallbacksDoesntUpdateAll()
93 mController.addCallback(mCallback2); in testAddingCallbacksDoesntUpdateAll()
103 mController.addCallback(mCallback1); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
104 mController.addCallback(mCallback2); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
106 mController.removeCallback(mCallback1); in testRemovingTwoCallbacksUnegistersToWifiManagerOnce()
[all …]
DCastControllerImplTest.java45 private CastControllerImpl mController; field in CastControllerImplTest
54 mController = new CastControllerImpl(mContext); in setUp()
61 mController.addCallback(mockCallback); in testAddCallback()
69 mController.addCallback(mockCallback); in testRemoveCallback()
72 mController.removeCallback(mockCallback); in testRemoveCallback()
80 mController.removeCallback(mockCallback); in testRemoveCallbackFromEmptyList()
91 mController.setDiscovering(true); in testAddCallbackRemoveCallback_concurrently()
108 mController.addCallback(mCallback); in testAddCallbackRemoveCallback_concurrently()
110 mController.removeCallback(mCallback); in testAddCallbackRemoveCallback_concurrently()
112 mController.fireOnCastDevicesChanged(); in testAddCallbackRemoveCallback_concurrently()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/development/
DEnableAdbPreferenceControllerTest.java55 private ConcreteEnableAdbPreferenceController mController; field in EnableAdbPreferenceControllerTest
64 mController = new ConcreteEnableAdbPreferenceController(mContext); in setUp()
66 mPreference.setKey(mController.getPreferenceKey()); in setUp()
74 mController.displayPreference(mScreen); in displayPreference_isNotAdmin_shouldRemovePreference()
83 mController.displayPreference(mScreen); in displayPreference_isAdmin_shouldNotRemovePreference()
91 mController.displayPreference(mScreen); in resetPreference_shouldUncheck()
94 mController.resetPreference(); in resetPreference_shouldUncheck()
105 mController.displayPreference(mScreen); in handlePreferenceTreeClick_shouldUpdateSettings()
107 mController.handlePreferenceTreeClick(mPreference); in handlePreferenceTreeClick_shouldUpdateSettings()
115 mController = spy(mController); in handlePreferenceTreeClick_isMonkeyUser_shouldBeFalse()
[all …]
DLogpersistPreferenceControllerTest.java53 private AbstractLogpersistPreferenceController mController; field in LogpersistPreferenceControllerTest
61 mController = new AbstractLogpersistPreferenceController(RuntimeEnvironment.application, in setUp()
76 .findPreference(mController.getPreferenceKey()); in setUp()
78 mController.displayPreference(mPreferenceScreen); in setUp()
84 assertThat(mController.isAvailable()).isFalse(); in testAvailable()
86 assertThat(mController.isAvailable()).isTrue(); in testAvailable()
88 assertThat(mController.isAvailable()).isFalse(); in testAvailable()
96 mController.updateLogpersistValues(); in testUpdateLogpersistValues_null()
108 mController.updateLogpersistValues(); in testUpdateLogpersistValues_all()
120 mController.updateLogpersistValues(); in testUpdateLogpersistValues_defaultSecurityKernel()
[all …]
DLogdSizePreferenceControllerTest.java78 private AbstractLogdSizePreferenceController mController; field in LogdSizePreferenceControllerTest
84 mController = new AbstractLogdSizePreferenceController(RuntimeEnvironment.application) { in setUp()
89 .findPreference(mController.getPreferenceKey()); in setUp()
91 mController.displayPreference(mPreferenceScreen); in setUp()
97 mController.updateLogdSizeValues(); in testUpdateLogdSizeValues_lowRamEntries()
109 mController.updateLogdSizeValues(); in testUpdateLogdSizeValues_silence()
116 mController.onPreferenceChange(mListPreference, SELECT_LOGD_OFF_SIZE_MARKER_VALUE); in onPreferenceChange_noTagsSizeValueOff_shouldSetTagAndSnetTagAndSet64KSize()
129 mController.onPreferenceChange(mListPreference, SELECT_LOGD_MINIMUM_SIZE_VALUE); in onPreferenceChange_noTagsSizeValue64K_shouldNotSetTagAndSet64KSize()
142 mController.onPreferenceChange(mListPreference, mListValues[3]); in onPreferenceChange_set1M_shouldUpdateSettingLogSizeTo1M()
151 mController.onPreferenceChange(mListPreference, "" /* new value */); in onPreferenceChange_noValue_shouldUpdateSettingToEmpty()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerTest.java112 private KeyguardIndicationController mController; field in KeyguardIndicationControllerTest
143 mController = new KeyguardIndicationController(mContext, mIndicationArea, mLockIcon, in createController()
147 mController.setStatusBarKeyguardViewManager(mStatusBarKeyguardViewManager); in createController()
186 final KeyguardUpdateMonitorCallback monitor = mController.getKeyguardCallback(); in updateOnTheFly()
229 mController.setVisible(true); in onAlignmentStateChanged_showsSlowChargingIndication()
246 mController.setVisible(true); in onAlignmentStateChanged_showsNotChargingIndication()
263 mController.setVisible(true); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
264 mController.setDozing(true); in onAlignmentStateChanged_whileDozing_showsSlowChargingIndication()
281 mController.setVisible(true); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
282 mController.setDozing(true); in onAlignmentStateChanged_whileDozing_showsNotChargingIndication()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAppEntitiesHeaderControllerTest.java46 private AppEntitiesHeaderController mController; field in AppEntitiesHeaderControllerTest
54 mController = AppEntitiesHeaderController.newInstance(mContext, in setUp()
63 mController.setAppEntity(0, mAppEntityInfo); in setUp()
73 mController.setHeaderTitleRes(R.string.expand_button_title).apply(); in setHeaderTitleRes_setTextRes_shouldSetToTitleView()
81 mController.setHeaderDetailsRes(R.string.expand_button_title).apply(); in setHeaderDetailsRes_setTextRes_shouldSetToDetailsView()
89 mController.setHeaderDetails(TITLE).apply(); in setHeaderDetails_onlyDetailsTextSet_shouldSetToDetailsView()
97 mController.setHeaderDetailsRes(R.string.expand_button_title); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView()
98 mController.setHeaderDetails(TITLE).apply(); in setHeaderDetails_detailsTextAndResBothSet_shouldSetTextToDetailsView()
106 mController.setHeaderDetailsClickListener(v -> { in setHeaderDetailsClickListener_setClickListener_detailsViewAttachClickListener()
117 mController.setAppEntity(-1, mAppEntityInfo); in setAppEntity_indexLessThanZero_shouldThrowArrayIndexOutOfBoundsException()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/deviceinfo/
DSerialNumberPreferenceControllerTest.java44 private AbstractSerialNumberPreferenceController mController; field in SerialNumberPreferenceControllerTest
57 mController = new TestPreferenceController(mContext, null); in testIsAvaiable_noSerial_shouldReturnFalse()
59 assertThat(mController.isAvailable()).isFalse(); in testIsAvaiable_noSerial_shouldReturnFalse()
64 mController = new TestPreferenceController(mContext, "123"); in testIsAvailable_hasSerial_shouldReturnTrue()
66 assertThat(mController.isAvailable()).isTrue(); in testIsAvailable_hasSerial_shouldReturnTrue()
71 mController = new TestPreferenceController(mContext, null); in testDisplay_noSerial_shouldHidePreference()
73 mController.displayPreference(mScreen); in testDisplay_noSerial_shouldHidePreference()
82 mController = new TestPreferenceController(mContext, serial); in testDisplay_hasSerial_shouldSetSummary()
83 mController.displayPreference(mScreen); in testDisplay_hasSerial_shouldSetSummary()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DBluetoothTile.java59 private final BluetoothController mController; field in BluetoothTile
68 mController = bluetoothController; in BluetoothTile()
71 mController.observe(getLifecycle(), mCallback); in BluetoothTile()
94 mController.setBluetoothEnabled(!isEnabled); in handleClick()
104 if (!mController.canConfigBluetooth()) { in handleSecondaryClick()
111 mController.setBluetoothEnabled(true); in handleSecondaryClick()
123 final boolean enabled = transientEnabling || mController.isBluetoothEnabled(); in handleUpdateState()
124 final boolean connected = mController.isBluetoothConnected(); in handleUpdateState()
125 final boolean connecting = mController.isBluetoothConnecting(); in handleUpdateState()
127 mController.getBluetoothState() == BluetoothAdapter.STATE_TURNING_ON; in handleUpdateState()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerController.java44 protected MediaController mController; field in PlayerController
74 Log.d(TAG, "Listener set to " + listener + " session is " + mController); in setListener()
78 mController == null ? STATE_DISCONNECTED : STATE_CONNECTED); in setListener()
161 if (mController != null) {
162 mController.unregisterCallback(mControllerCb);
165 mController = null;
186 mController = new MediaController(mContext, token);
187 mContext.setMediaController(mController);
188 mController.registerCallback(mControllerCb, mHandler);
189 mTransportControls = mController.getTransportControls();
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogComponent.java59 private final VolumeDialogControllerImpl mController; field in VolumeDialogComponent
74 mController = (VolumeDialogControllerImpl) Dependency.get(VolumeDialogController.class); in VolumeDialogComponent()
75 mController.setUserActivityListener(this); in VolumeDialogComponent()
127 mController.setVolumePolicy(mVolumePolicy); in setVolumePolicy()
131 mController.setEnableDialogs(volumeUi, safetyWarning); in setEnableDialogs()
143 mController.setVolumePolicy(mVolumePolicy); in applyConfiguration()
144 mController.showDndTile(true); in applyConfiguration()
150 mController.mCallbacks.onConfigurationChanged(); in onConfigurationChanged()
156 mController.dismiss(); in dismissNow()
166 mController.register(); in register()
/frameworks/base/core/java/android/os/
DExternalVibration.java39 private IExternalVibrationController mController; field in ExternalVibration
50 mController = Preconditions.checkNotNull(controller); in ExternalVibration()
58 mController = IExternalVibrationController.Stub.asInterface(in.readStrongBinder()); in ExternalVibration()
94 mController.mute(); in mute()
109 mController.unmute(); in unmute()
150 + "controller=" + mController in toString()
151 + "token=" + mController in toString()
160 out.writeStrongBinder(mController.asBinder()); in writeToParcel()

1234