/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
D | InputMethodSubtypeSwitchingControllerTest.java | 122 private void assertNextInputMethod(final ControllerImpl controller, in assertNextInputMethod() argument 129 final ImeSubtypeListItem nextIme = controller.getNextInputMethod(onlyCurrentIme, in assertNextInputMethod() 132 final ImeSubtypeListItem prevIme = controller.getNextInputMethod(onlyCurrentIme, in assertNextInputMethod() 137 private void assertRotationOrder(final ControllerImpl controller, in assertRotationOrder() argument 149 assertNextInputMethod(controller, onlyCurrentIme, currentItem, nextItem, prevItem); in assertRotationOrder() 153 private void onUserAction(final ControllerImpl controller, in onUserAction() argument 159 controller.onUserActionLocked(subtypeListItem.mImi, subtype); in onUserAction() 179 final ControllerImpl controller = ControllerImpl.createFrom( in testControllerImpl() local 183 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl() 187 assertRotationOrder(controller, false /* onlyCurrentIme */, in testControllerImpl() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hdmi_HdmiCecController.cpp | 123 HdmiCecEventHandler(HdmiCecController* controller, const sp<CecEventWrapper>& event) in HdmiCecEventHandler() argument 124 : mController(controller), in HdmiCecEventHandler() 274 HdmiCecController* controller = static_cast<HdmiCecController*>(arg); in onReceived() local 275 if (controller == NULL) { in onReceived() 280 sp<HdmiCecEventHandler> handler(new HdmiCecEventHandler(controller, spEvent)); in onReceived() 281 controller->mLooper->sendMessage(handler, event->type); in onReceived() 310 HdmiCecController* controller = new HdmiCecController( in nativeInit() local 314 controller->init(); in nativeInit() 321 return reinterpret_cast<jlong>(controller); in nativeInit() 335 HdmiCecController* controller = in nativeSendCecCommand() local [all …]
|
D | com_android_server_input_InputManagerService.cpp | 288 void updateInactivityTimeoutLocked(const sp<PointerController>& controller); 373 sp<PointerController> controller = mLocked.pointerController.promote(); in setDisplayViewport() local 374 if (controller != NULL) { in setDisplayViewport() 375 controller->setDisplayViewport( in setDisplayViewport() 471 sp<PointerController> controller = mLocked.pointerController.promote(); in obtainPointerController() local 472 if (controller == NULL) { in obtainPointerController() 475 controller = new PointerController(this, mLooper, mLocked.spriteController); in obtainPointerController() 476 mLocked.pointerController = controller; in obtainPointerController() 479 controller->setDisplayViewport( in obtainPointerController() 484 updateInactivityTimeoutLocked(controller); in obtainPointerController() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | MediaSessions.java | 82 dump(++i, writer, r.controller); in dump() 113 r.controller.setVolumeTo(level, 0); in setVolume() 117 final MediaController controller = new MediaController(mContext, session); in onRemoteVolumeChangedH() local 118 if (D.BUG) Log.d(TAG, "remoteVolumeChangedH " + controller.getPackageName() + " " in onRemoteVolumeChangedH() 120 final Token token = controller.getSessionToken(); in onRemoteVolumeChangedH() 125 final MediaController controller = session != null ? new MediaController(mContext, session) in onUpdateRemoteControllerH() local 127 final String pkg = controller != null ? controller.getPackageName() : null; in onUpdateRemoteControllerH() 136 for (MediaController controller : controllers) { in onActiveSessionsUpdatedH() 137 final Token token = controller.getSessionToken(); in onActiveSessionsUpdatedH() 138 final PlaybackInfo pi = controller.getPlaybackInfo(); in onActiveSessionsUpdatedH() [all …]
|
D | ZenFooter.java | 72 public void init(final ZenModeController controller) { in init() argument 76 controller.setZen(Global.ZEN_MODE_OFF, null, TAG); in init() 79 mZen = controller.getZen(); in init() 80 mConfig = controller.getConfig(); in init() 81 mController = controller; in init()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaController.java | 993 public CallbackStub(MediaController controller) { in CallbackStub() argument 994 mController = new WeakReference<MediaController>(controller); in CallbackStub() 999 MediaController controller = mController.get(); in onSessionDestroyed() local 1000 if (controller != null) { in onSessionDestroyed() 1001 controller.postMessage(MSG_DESTROYED, null, null); in onSessionDestroyed() 1007 MediaController controller = mController.get(); in onEvent() local 1008 if (controller != null) { in onEvent() 1009 controller.postMessage(MSG_EVENT, event, extras); in onEvent() 1015 MediaController controller = mController.get(); in onPlaybackStateChanged() local 1016 if (controller != null) { in onPlaybackStateChanged() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | HealthStatsBatteryStatsWriter.java | 54 BatteryStats.ControllerActivityCounter controller; in writeUid() local 159 controller = uid.getWifiControllerActivity(); in writeUid() 160 if (controller != null) { in writeUid() 163 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 166 controller.getRxTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 169 for (final BatteryStats.LongCounter counter: controller.getTxTimeCounters()) { in writeUid() 175 controller.getPowerCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() 178 controller = uid.getBluetoothControllerActivity(); in writeUid() 179 if (controller != null) { in writeUid() 182 controller.getIdleTimeCounter().getCountLocked(STATS_SINCE_UNPLUGGED)); in writeUid() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
D | MediaRouteProviderService.java | 237 MediaRouteProvider.RouteController controller = in onSelectRoute() local 239 if (controller != null) { in onSelectRoute() 240 controller.onSelect(); in onSelectRoute() 256 MediaRouteProvider.RouteController controller = in onUnselectRoute() local 258 if (controller != null) { in onUnselectRoute() 259 controller.onUnselect(reason); in onUnselectRoute() 275 MediaRouteProvider.RouteController controller = in onSetRouteVolume() local 277 if (controller != null) { in onSetRouteVolume() 278 controller.onSetVolume(volume); in onSetRouteVolume() 294 MediaRouteProvider.RouteController controller = in onUpdateRouteVolume() local [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerImpl.java | 282 MobileSignalController controller = getDataController(); in getMobileDataNetworkName() local 283 return controller != null ? controller.getState().networkNameData : ""; in getMobileDataNetworkName() 386 for (MobileSignalController controller : mMobileSignalControllers.values()) { in onReceive() 387 controller.handleBroadcast(intent); in onReceive() 491 MobileSignalController controller = new MobileSignalController(mContext, mConfig, in setCurrentSubscriptions() local 494 controller.setUserSetupComplete(mUserSetup); in setCurrentSubscriptions() 495 mMobileSignalControllers.put(subId, controller); in setCurrentSubscriptions() 497 mDefaultSignalController = controller; in setCurrentSubscriptions() 500 controller.registerListener(); in setCurrentSubscriptions() 533 for (MobileSignalController controller : mMobileSignalControllers.values()) { in handleSetUserSetupComplete() [all …]
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | SimpleDayPickerView.java | 31 public SimpleDayPickerView(Context context, DatePickerController controller) { in SimpleDayPickerView() argument 32 super(context, controller); in SimpleDayPickerView() 36 public MonthAdapter createMonthAdapter(Context context, DatePickerController controller) { in createMonthAdapter() argument 37 return new SimpleMonthAdapter(context, controller); in createMonthAdapter()
|
D | SimpleMonthAdapter.java | 26 public SimpleMonthAdapter(Context context, DatePickerController controller) { in SimpleMonthAdapter() argument 27 super(context, controller); in SimpleMonthAdapter()
|
D | DayPickerView.java | 100 public DayPickerView(Context context, DatePickerController controller) { in DayPickerView() argument 103 setController(controller); in DayPickerView() 106 public void setController(DatePickerController controller) { in setController() argument 107 mController = controller; in setController() 141 DatePickerController controller); in createMonthAdapter() argument
|
/frameworks/base/docs/html/training/game-controllers/ |
D | multiple-controllers.jd | 31 maintaining a mapping between player avatars and each controller device and 32 processing controller input events appropriately. 36 <p>When a game controller is connected to an Android device, the system 38 …evice#getDeviceIds() InputDevice.getDeviceIds()}, as shown in <a href="controller-input.html#input… 49 to associate a player's avatar with a specific controller. In this example, the 51 player avatar is created in-game when a new controller is attached by a user, 52 and removed when its associated controller is removed. 58 listener callbacks, your game can identify the game controller's device ID when a 59 controller is added or removed. This detection is compatible with Android 2.3 103 this to determine which controller the input event came from, and update the [all …]
|
D | compatibility.jd | 41 <li>The game can detect if a new game controller is added, changed, or removed.</li> 42 <li>The game can query the capabilities of a game controller.</li> 43 <li>The game can recognize incoming motion events from a game controller.</li> 56 <p>Suppose you want to be able to determine if a game controller's connection 63 older versions, table 1 lists the differences in game controller support 67 <p class="table-caption" id="game-controller-support-table"> 68 <strong>Table 1.</strong> APIs for game controller support across 182 <p>You can use abstraction to build version-aware game controller support that 186 the game controller features required by your game.</li> 239 object that represents the capabilities of a game controller.</dd> [all …]
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | Media.java | 117 ISessionController controller = ISessionController.Stub.asInterface(session); in runMonitor() local 119 if (controller != null && id.equals(controller.getTag())) { in runMonitor() 120 ControllerMonitor monitor = new ControllerMonitor(controller); in runMonitor() 177 public ControllerMonitor(ISessionController controller) { in ControllerMonitor() argument 178 mController = controller; in ControllerMonitor() 299 ISessionController controller = ISessionController.Stub.asInterface(session); in runListSessions() local 300 if (controller != null) { in runListSessions() 302 System.out.println(" tag=" + controller.getTag() in runListSessions() 303 + ", package=" + controller.getPackageName()); in runListSessions()
|
/frameworks/base/docs/html/training/tv/games/ |
D | index.jd | 2 page.tags=tv, games, controller 4 page.image=images/games/game-controller-buttons_2x_crop.png 91 How you shape the player's interaction with the controller can be key to achieving a great user 100 an ill-suited controller for a game is likely to have a subpar experience and penalize your 108 "http://developer.android.com/training/game-controllers/controller-input.html">Handling 112 <strong>Detect Controller Capabilities and Adjust Accordingly</strong>. Query the controller 113 about its capabilities in order to optimize the match between controller and game. For example, 114 you may intend for a player to steer an object by waving the controller in the air. If a 115 player's controller lacks accelerometer and gyroscope hardware, however, waving will not work. 116 So, your game should query the controller and if motion detection is not [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | UserDetailView.java | 48 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/media/java/android/media/ |
D | RemoteController.java | 484 MediaController controller = controllers.get(i); in onActiveSessionsChanged() local 485 long flags = controller.getFlags(); in onActiveSessionsChanged() 489 updateController(controller); in onActiveSessionsChanged() 592 private void updateController(MediaController controller) { in updateController() argument 594 Log.d(TAG, "Updating controller to " + controller + " previous controller is " in updateController() 598 if (controller == null) { in updateController() 606 || !controller.getSessionToken() in updateController() 613 mCurrentSession = controller; in updateController() 616 PlaybackState state = controller.getPlaybackState(); in updateController() 620 MediaMetadata metadata = controller.getMetadata(); in updateController()
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
D | TransportStateListener.java | 29 public void onPlayingChanged(TransportController controller) { in onPlayingChanged() argument 37 public void onTransportControlsChanged(TransportController controller) { in onTransportControlsChanged() argument
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaController.java | 65 public void onPlayingChanged(TransportController controller) { 69 public void onTransportControlsChanged(TransportController controller) { 94 public void setMediaPlayer(TransportController controller) { in setMediaPlayer() argument 99 if (controller != null) { in setMediaPlayer() 100 controller.registerStateListener(mStateListener); in setMediaPlayer() 103 mController = controller; in setMediaPlayer()
|
/frameworks/base/core/java/android/os/ |
D | ServiceManagerNative.java | 90 IPermissionController controller in onTransact() local 93 setPermissionController(controller); in onTransact() 184 public void setPermissionController(IPermissionController controller) in setPermissionController() argument 189 data.writeStrongBinder(controller.asBinder()); in setPermissionController()
|
/frameworks/base/docs/html/training/tv/start/ |
D | hardware.jd | 126 not the same as the microphone hardware feature described here. The controller microphone is fully 368 remote controller or game controller. This means that your app must support D-pad input. It also 370 type of controller. 377 The default controller for a TV device is a D-pad. In general, your app should be operable from a 378 remote controller that only has up, down, left, right, select, Back, and Home buttons. If your app 379 is a game that typically requires a game controller with additional controls, your app should 382 a controller is required and allow them to exit your game gracefully using the D-pad controller. 383 For more information about handling navigation with D-pad controller for TV devices, see 388 <h3 id="controller-disconnects">Handle controller disconnects</h3> 398 <li>While watching a video which is several minutes long, a D-Pad or game controller goes into [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | Watchdog.java | 270 public void setActivityController(IActivityController controller) { in setActivityController() argument 272 mController = controller; in setActivityController() 457 IActivityController controller; in run() local 459 controller = mController; in run() 461 if (controller != null) { in run() 466 int res = controller.systemNotResponding(subject); in run()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | MultiUserSwitch.java | 96 final UserSwitcherController controller = mUserSwitcherController; in registerListener() local 97 if (controller != null) { in registerListener() 98 mUserListener = new UserSwitcherController.BaseUserAdapter(controller) { in registerListener()
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
D | ListWithDisappearingItemBug.java | 74 LayoutAnimationController controller = in onCreate() local 77 listView.setLayoutAnimation(controller); in onCreate()
|