Home
last modified time | relevance | path

Searched refs:controller (Results 1 – 25 of 172) sorted by relevance

1234567

/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/
DAmbientLuxTest.java127 DisplayWhiteBalanceController controller = in testNoSpline() local
130 setEstimatedColorTemperature(controller, ambientColorTemperature); in testNoSpline()
131 controller.mBrightnessFilter = spy(controller.mBrightnessFilter); in testNoSpline()
134 setEstimatedBrightnessAndUpdate(controller, luxOverride); in testNoSpline()
135 assertEquals(controller.mPendingAmbientColorTemperature, in testNoSpline()
147 DisplayWhiteBalanceController controller = in testSpline_OneSegment() local
150 setEstimatedColorTemperature(controller, ambientColorTemperature); in testSpline_OneSegment()
151 controller.mBrightnessFilter = spy(controller.mBrightnessFilter); in testSpline_OneSegment()
154 setEstimatedBrightnessAndUpdate(controller, in testSpline_OneSegment()
156 assertEquals(controller.mPendingAmbientColorTemperature, in testSpline_OneSegment()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerControllerTests.java45 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testCreation() local
48 container.setController(controller); in testCreation()
49 assertEquals(controller, container.getController()); in testCreation()
50 assertEquals(controller.mContainer, container); in testCreation()
55 final WindowContainerController controller = new WindowContainerController<>(null, mWm); in testSetContainer() local
58 controller.setContainer(container); in testSetContainer()
59 assertEquals(controller.mContainer, container); in testSetContainer()
64 controller.setContainer(new WindowContainer(mWm)); in testSetContainer()
71 controller.setContainer(null); in testSetContainer()
72 assertNull(controller.mContainer); in testSetContainer()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java220 final ConnectivityController controller = new ConnectivityController(mService); in testUpdates() local
241 controller.maybeStartTrackingJobLocked(red, null); in testUpdates()
242 controller.maybeStartTrackingJobLocked(blue, null); in testUpdates()
299 final ConnectivityController controller = new ConnectivityController(mService); in testRequestStandbyExceptionLocked() local
309 controller.requestStandbyExceptionLocked(red); in testRequestStandbyExceptionLocked()
314 assertTrue(controller.isStandbyExceptionRequestedLocked(UID_RED)); in testRequestStandbyExceptionLocked()
315 assertFalse(controller.isStandbyExceptionRequestedLocked(UID_BLUE)); in testRequestStandbyExceptionLocked()
317 controller.requestStandbyExceptionLocked(red); in testRequestStandbyExceptionLocked()
322 assertTrue(controller.isStandbyExceptionRequestedLocked(UID_RED)); in testRequestStandbyExceptionLocked()
323 assertFalse(controller.isStandbyExceptionRequestedLocked(UID_BLUE)); in testRequestStandbyExceptionLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/inputmethod/
DInputMethodSubtypeSwitchingControllerTest.java165 private void assertNextInputMethod(final ControllerImpl controller, in assertNextInputMethod() argument
172 final ImeSubtypeListItem nextIme = controller.getNextInputMethod(onlyCurrentIme, in assertNextInputMethod()
177 private void assertRotationOrder(final ControllerImpl controller, in assertRotationOrder() argument
187 assertNextInputMethod(controller, onlyCurrentIme, currentItem, nextItem); in assertRotationOrder()
191 private void onUserAction(final ControllerImpl controller, in onUserAction() argument
197 controller.onUserActionLocked(subtypeListItem.mImi, subtype); in onUserAction()
217 final ControllerImpl controller = ControllerImpl.createFrom( in testControllerImpl() local
221 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl()
225 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl()
230 assertRotationOrder(controller, true /* onlyCurrentIme */, in testControllerImpl()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DChannelEditorDialogControllerTest.kt52 private lateinit var controller: ChannelEditorDialogController variable in com.android.systemui.statusbar.notification.row.ChannelEditorDialogControllerTest
66 controller = ChannelEditorDialogController(mContext, mockNoMan) in setup()
86 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noExtraChannels()
89 assertEquals(2, controller.providedChannels.size) in testPrepareDialogForApp_noExtraChannels()
96 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_onlyDefaultChannel()
100 0, controller.providedChannels.size) in testPrepareDialogForApp_onlyDefaultChannel()
107 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_noProvidedChannels_noException()
118 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testPrepareDialogForApp_retrievesUpTo4Channels()
122 4, controller.providedChannels.size) in testPrepareDialogForApp_retrievesUpTo4Channels()
128 controller.prepareDialogForApp(TEST_APP_NAME, TEST_PACKAGE_NAME, TEST_UID, in testApply_demoteChannel()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DDumpControllerTest.kt37 private lateinit var controller: DumpController variable in com.android.systemui.DumpControllerTest
48 controller = DumpController() in setUp()
54 controller.apply { in testListenerOnlyAddedOnce()
58 assertEquals(1, controller.numListeners) in testListenerOnlyAddedOnce()
60 controller.dump(fd, pw, args) in testListenerOnlyAddedOnce()
66 controller.apply { in testListenersCalledOnDump()
71 controller.dump(fd, pw, args) in testListenersCalledOnDump()
79 controller.apply { in testRemoveListener()
85 controller.dump(fd, pw, args) in testRemoveListener()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
DMediaSessions.java85 dump(++i, writer, r.controller); in dump()
126 r.controller.setVolumeTo(level, 0); in setVolume()
130 final MediaController controller = new MediaController(mContext, sessionToken); in onRemoteVolumeChangedH() local
132 Log.d(TAG, "remoteVolumeChangedH " + controller.getPackageName() + " " in onRemoteVolumeChangedH()
135 final Token token = controller.getSessionToken(); in onRemoteVolumeChangedH()
140 final MediaController controller = in onUpdateRemoteControllerH() local
142 final String pkg = controller != null ? controller.getPackageName() : null; in onUpdateRemoteControllerH()
151 for (MediaController controller : controllers) { in onActiveSessionsUpdatedH()
152 final Token token = controller.getSessionToken(); in onActiveSessionsUpdatedH()
153 final PlaybackInfo pi = controller.getPlaybackInfo(); in onActiveSessionsUpdatedH()
[all …]
/frameworks/base/media/apex/java/android/media/
DMediaSession2.java181 for (ControllerInfo controller : controllerInfos) { in broadcastSessionCommand()
182 controller.sendSessionCommand(command, args, null); in broadcastSessionCommand()
196 public Object sendSessionCommand(@NonNull ControllerInfo controller, in sendSessionCommand() argument
198 if (controller == null) { in sendSessionCommand()
206 controller.receiveCommandResult(this); in sendSessionCommand()
208 mCallback.onCommandResult(MediaSession2.this, controller, this, in sendSessionCommand()
213 controller.sendSessionCommand(command, args, resultReceiver); in sendSessionCommand()
223 public void cancelSessionCommand(@NonNull ControllerInfo controller, @NonNull Object token) { in cancelSessionCommand() argument
224 if (controller == null) { in cancelSessionCommand()
230 controller.cancelSessionCommand(token); in cancelSessionCommand()
[all …]
/frameworks/ml/nn/runtime/
DExecutionPlan.cpp981 int ExecutionPlan::fallback(std::shared_ptr<Controller> controller, in fallback() argument
985 VLOG(EXECUTION) << "ExecutionPlan::fallback(" << SHOW_IF_DEBUG(controller << ", " << executor) in fallback()
986 << "): mFallbackNextStepIndex = " << controller->mFallbackNextStepIndex; in fallback()
988 if (controller->mFallbackNextStepIndex == Controller::kBadStepIndex) { in fallback()
993 if (controller->mNextStepIndex == Controller::kBadStepIndex) { in fallback()
998 controller->mNextStepIndex = controller->mFallbackNextStepIndex; in fallback()
999 return next(controller, executor); in fallback()
1048 std::shared_ptr<Controller> controller, SourceOperandIndex operandIndex) const { in getBuffer() argument
1049 const auto& sourceOperandToOffsetOfTemporary = controller->mSourceOperandToOffsetOfTemporary; in getBuffer()
1050 const auto& sourceOperandToInputIndex = controller->mSourceOperandToInputIndex; in getBuffer()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkControllerImpl.java411 MobileSignalController controller = getDataController(); in getMobileDataNetworkName() local
412 return controller != null ? controller.getState().networkNameData : ""; in getMobileDataNetworkName()
543 MobileSignalController controller = mMobileSignalControllers.valueAt(i); in onReceive() local
544 controller.handleBroadcast(intent); in onReceive()
591 MobileSignalController controller = mMobileSignalControllers.valueAt(i); in handleConfigurationChanged() local
592 controller.setConfiguration(mConfig); in handleConfigurationChanged()
703 MobileSignalController controller = new MobileSignalController(mContext, mConfig, in setCurrentSubscriptionsLocked() local
707 controller.setUserSetupComplete(mUserSetup); in setCurrentSubscriptionsLocked()
708 mMobileSignalControllers.put(subId, controller); in setCurrentSubscriptionsLocked()
710 mDefaultSignalController = controller; in setCurrentSubscriptionsLocked()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaController.java1086 CallbackStub(MediaController controller) { in CallbackStub() argument
1087 mController = new WeakReference<MediaController>(controller); in CallbackStub()
1092 MediaController controller = mController.get(); in onSessionDestroyed() local
1093 if (controller != null) { in onSessionDestroyed()
1094 controller.postMessage(MSG_DESTROYED, null, null); in onSessionDestroyed()
1100 MediaController controller = mController.get(); in onEvent() local
1101 if (controller != null) { in onEvent()
1102 controller.postMessage(MSG_EVENT, event, extras); in onEvent()
1108 MediaController controller = mController.get(); in onPlaybackStateChanged() local
1109 if (controller != null) { in onPlaybackStateChanged()
[all …]
/frameworks/base/core/java/android/view/
DInsetsController.java317 final InsetsAnimationControlImpl controller = new InsetsAnimationControlImpl(consumers, in controlAnimationUnchecked() local
320 mAnimationControls.add(controller); in controlAnimationUnchecked()
391 public void notifyFinished(InsetsAnimationControlImpl controller, int shownTypes) { in notifyFinished() argument
392 mAnimationControls.remove(controller); in notifyFinished()
393 hideDirectly(controller.getTypes() & ~shownTypes); in notifyFinished()
394 showDirectly(controller.getTypes() & shownTypes); in notifyFinished()
413 final InsetsSourceConsumer controller = mSourceConsumers.valueAt(i); in applyLocalVisibilityOverride() local
414 controller.applyLocalVisibilityOverride(); in applyLocalVisibilityOverride()
420 InsetsSourceConsumer controller = mSourceConsumers.get(type); in getSourceConsumer() local
421 if (controller != null) { in getSourceConsumer()
[all …]
/frameworks/base/services/core/java/com/android/server/display/color/
DAppSaturationController.java53 WeakReference<ColorTransformController> controller) { in addColorTransformController() argument
56 .addColorTransformController(controller); in addColorTransformController()
165 WeakReference<ColorTransformController> controller) { in addColorTransformController() argument
166 mControllerRefs.add(controller); in addColorTransformController()
183 final ColorTransformController controller = controllerRef.get(); in updateState() local
184 if (controller != null) { in updateState()
185 controller.applyAppSaturation(mTransformMatrix, TRANSLATION_VECTOR); in updateState()
201 final ColorTransformController controller = controllerRef.get(); in clearExpiredReferences() local
202 if (controller == null) { in clearExpiredReferences()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAutomaticBrightnessControllerTest.java77 AutomaticBrightnessController controller = new AutomaticBrightnessController( in setupController() local
90 controller.setLoggingEnabled(true); in setupController()
94 controller.configure(true /* enable */, null /* configuration */, in setupController()
98 return controller; in setupController()
104 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMinBrightness() local
129 assertEquals(5, controller.getAutomaticScreenBrightness()); in testNoHysteresisAtMinBrightness()
144 assertEquals(1, controller.getAutomaticScreenBrightness()); in testNoHysteresisAtMinBrightness()
150 AutomaticBrightnessController controller = setupController(lightSensor); in testNoHysteresisAtMaxBrightness() local
175 assertEquals(250, controller.getAutomaticScreenBrightness()); in testNoHysteresisAtMaxBrightness()
190 assertEquals(255, controller.getAutomaticScreenBrightness()); in testNoHysteresisAtMaxBrightness()
/frameworks/base/services/core/java/com/android/server/am/
DHealthStatsBatteryStatsWriter.java55 BatteryStats.ControllerActivityCounter controller; in writeUid() local
160 controller = uid.getWifiControllerActivity(); in writeUid()
161 if (controller != null) { in writeUid()
164 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
167 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
170 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) { in writeUid()
176 controller.getPowerCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
179 controller = uid.getBluetoothControllerActivity(); in writeUid()
180 if (controller != null) { in writeUid()
183 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_CHARGED)); in writeUid()
[all …]
DPendingIntentRecord.java56 final PendingIntentController controller; field in PendingIntentRecord
203 controller = _controller; in PendingIntentRecord()
291 synchronized (controller.mLock) { in sendInner()
298 controller.cancelIntentSender(this, true); in sendInner()
364 int procState = controller.mAmInternal.getUidProcessState(callingUid); in sendInner()
377 controller.mAmInternal.tempWhitelistForPendingIntent(callingPid, callingUid, in sendInner()
387 userId = controller.mUserController.getCurrentOrTargetUserId(); in sendInner()
392 && controller.mAtmInternal.isUidForeground(callingUid); in sendInner()
405 res = controller.mAtmInternal.startActivitiesInPackage( in sendInner()
412 res = controller.mAtmInternal.startActivityInPackage( in sendInner()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java48 Controller controller = mock(Controller.class); in testAddCallback() local
53 controller.observe(owner, callback); in testAddCallback()
58 verify(controller).addCallback(eq(callback)); in testAddCallback()
66 Controller controller = mock(Controller.class); in testRemoveCallback() local
71 controller.observe(owner, callback); in testRemoveCallback()
76 verify(controller).removeCallback(eq(callback)); in testRemoveCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DChannelEditorListView.kt43 lateinit var controller: ChannelEditorDialogController in <lambda>() variable
62 val enabled = controller.appNotificationsEnabled in <lambda>()
106 row.controller = controller in <lambda>()
117 controller.appNotificationsEnabled = b in <lambda>()
137 lateinit var controller: ChannelEditorDialogController variable
156 controller.proposeEditForChannel(it, if (b) it.importance else IMPORTANCE_NONE) in onFinishInflate()
167 channelDescription.text = controller.groupNameForId(groupId) in updateViews()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsResolver.java684 ImsServiceController controller = getImsServiceControllerAndListen(slotId, in getMmTelFeatureAndListen() local
686 return (controller != null) ? controller.getMmTelFeature(slotId) : null; in getMmTelFeatureAndListen()
700 ImsServiceController controller = getImsServiceControllerAndListen(slotId, in getRcsFeatureAndListen() local
702 return (controller != null) ? controller.getRcsFeature(slotId) : null; in getRcsFeatureAndListen()
710 ImsServiceController controller = getImsServiceController(slotId, feature); in getImsRegistration() local
711 if (controller != null) { in getImsRegistration()
712 return controller.getRegistration(slotId); in getImsRegistration()
722 ImsServiceController controller = getImsServiceController(slotId, feature); in getImsConfig() local
723 if (controller != null) { in getImsConfig()
724 return controller.getConfig(slotId); in getImsConfig()
[all …]
/frameworks/base/packages/SystemUI/docs/
Dphysics-animation-layout.md4 …ing the initial construction of the animations, the layout queries the controller for basic config…
6 Once the animations are built, the controller can access **PhysicsPropertyAnimator** instances to r…
8 The controller is notified whenever children are added or removed from the layout, so that it can a…
10 …ch uses a PhysicsAnimationLayout for its stack of bubbles. Bubbles has controller subclasses inclu…
16 ![Diagram of how animations are configured using the controller's configuration methods.](physics-a…
17 The controller must override the following methods:
29 … instance to use for animations of the given property. This allows the controller to configure sti…
32controller’s configuration properties to build the animations, the controller can use them to actu…
34 In either case, the controller can use `super.animationForChild` to retrieve a `PhysicsPropertyAnim…
50 …oat)`, for overriding the default physics param values returned by the controller’s getSpringForce…
[all …]
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java133 for (MediaController controller : controllers) { in runMonitor()
135 if (controller != null && id.equals(controller.getTag())) { in runMonitor()
136 ControllerMonitor monitor = new ControllerMonitor(controller); in runMonitor()
238 ControllerMonitor(MediaController controller) { in ControllerMonitor() argument
239 mController = controller; in ControllerMonitor()
328 for (MediaController controller : controllers) { in runListSessions()
329 if (controller != null) { in runListSessions()
331 System.out.println(" tag=" + controller.getTag() in runListSessions()
332 + ", package=" + controller.getPackageName()); in runListSessions()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUserDetailView.java48 public void createAndSetAdapter(UserSwitcherController controller) { in createAndSetAdapter() argument
49 mAdapter = new Adapter(mContext, controller); in createAndSetAdapter()
63 public Adapter(Context context, UserSwitcherController controller) { in Adapter() argument
64 super(controller); in Adapter()
66 mController = controller; in Adapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMediaController.java236 final MediaController controller = controllers.get(i); in resolveActiveMediaController() local
237 if (controller.getPackageName().equals(topActivity.getPackageName())) { in resolveActiveMediaController()
238 setActiveMediaController(controller); in resolveActiveMediaController()
250 private void setActiveMediaController(MediaController controller) { in setActiveMediaController() argument
251 if (controller != mMediaController) { in setActiveMediaController()
255 mMediaController = controller; in setActiveMediaController()
256 if (controller != null) { in setActiveMediaController()
257 controller.registerCallback(mPlaybackChangedListener); in setActiveMediaController()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java209 ImsServiceController controller = setupController(); in testCarrierPackageBind() local
216 verify(controller).bind(features); in testCarrierPackageBind()
217 verify(controller, never()).unbind(); in testCarrierPackageBind()
218 assertEquals(TEST_CARRIER_DEFAULT_NAME, controller.getComponentName()); in testCarrierPackageBind()
346 ImsServiceController controller = setupController(); in testCarrierPackageBindWithEmergencyCalling() local
351 verify(controller).bind(features); in testCarrierPackageBindWithEmergencyCalling()
352 verify(controller, never()).unbind(); in testCarrierPackageBindWithEmergencyCalling()
353 assertEquals(TEST_CARRIER_DEFAULT_NAME, controller.getComponentName()); in testCarrierPackageBindWithEmergencyCalling()
372 ImsServiceController controller = setupController(); in testCarrierPackageBindWithEmergencyButNotMmtel() local
380 verify(controller).bind(features); in testCarrierPackageBindWithEmergencyButNotMmtel()
[all …]
/frameworks/base/media/java/android/media/
DRemoteController.java485 MediaController controller = controllers.get(i); in onActiveSessionsChanged() local
486 long flags = controller.getFlags(); in onActiveSessionsChanged()
490 updateController(controller); in onActiveSessionsChanged()
593 private void updateController(MediaController controller) { in updateController() argument
595 Log.d(TAG, "Updating controller to " + controller + " previous controller is " in updateController()
599 if (controller == null) { in updateController()
607 || !controller.getSessionToken() in updateController()
614 mCurrentSession = controller; in updateController()
617 PlaybackState state = controller.getPlaybackState(); in updateController()
621 MediaMetadata metadata = controller.getMetadata(); in updateController()

1234567