/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/ |
D | PhotoViewActivity.java | 34 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/ |
D | PhotoViewActivity.java | 34 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/src/com/android/systemui/qs/tiles/ |
D | BluetoothTile.java | 52 private final BluetoothController mController; field in BluetoothTile 58 mController = Dependency.get(BluetoothController.class); in BluetoothTile() 76 mController.addCallback(mCallback); in setListening() 78 mController.removeCallback(mCallback); in setListening() 86 mController.setBluetoothEnabled(!isEnabled); in handleClick() 96 if (!mController.canConfigBluetooth()) { in handleSecondaryClick() 111 final boolean enabled = mController.isBluetoothEnabled(); in handleUpdateState() 112 final boolean connected = mController.isBluetoothConnected(); in handleUpdateState() 113 state.isTransient = mController.isBluetoothConnecting() in handleUpdateState() 114 || mController.getBluetoothState() == BluetoothAdapter.STATE_TURNING_ON; in handleUpdateState() [all …]
|
D | NightDisplayTile.java | 36 private NightDisplayController mController; field in NightDisplayTile 41 mController = new NightDisplayController(mContext, ActivityManager.getCurrentUser()); in NightDisplayTile() 57 mController.setActivated(activated); in handleClick() 64 mController.setListener(null); in handleUserSwitch() 68 mController = new NightDisplayController(mContext, newUserId); in handleUserSwitch() 70 mController.setListener(this); in handleUserSwitch() 78 final boolean isActivated = mController.isActivated(); in handleUpdateState() 102 mController.setListener(this); in setListening() 105 mController.setListener(null); in setListening()
|
D | RotationLockTile.java | 53 private final RotationLockController mController; field in RotationLockTile 57 mController = Dependency.get(RotationLockController.class); in RotationLockTile() 66 if (mController == null) return; in setListening() 68 mController.addCallback(mCallback); in setListening() 70 mController.removeCallback(mCallback); in setListening() 81 if (mController == null) return; in handleClick() 83 mController.setRotationLocked(!newState); in handleClick() 94 if (mController == null) return; in handleUpdateState() 95 final boolean rotationLocked = mController.isRotationLocked(); in handleUpdateState() 99 final boolean portrait = isCurrentOrientationLockPortrait(mController, mContext); in handleUpdateState() [all …]
|
D | HotspotTile.java | 52 private final HotspotController mController; field in HotspotTile 59 mController = Dependency.get(HotspotController.class); in HotspotTile() 70 return mController.isHotspotSupported(); in isAvailable() 88 mController.addCallback(mCallback); in setListening() 93 mController.removeCallback(mCallback); in setListening() 109 mController.setHotspotEnabled(!isEnabled); in handleClick() 125 state.value = mController.isHotspotEnabled(); in handleUpdateState() 132 state.isTransient = mController.isHotspotTransient(); in handleUpdateState()
|
D | LocationTile.java | 46 private final LocationController mController; field in LocationTile 52 mController = Dependency.get(LocationController.class); in LocationTile() 64 mController.addCallback(mCallback); in setListening() 67 mController.removeCallback(mCallback); in setListening() 83 mController.setLocationEnabled(!wasEnabled); in handleClick() 88 mController.setLocationEnabled(!wasEnabled); in handleClick() 98 final boolean locationEnabled = mController.isLocationEnabled(); in handleUpdateState()
|
D | CastTile.java | 65 private final CastController mController; field in CastTile 75 mController = Dependency.get(CastController.class); in CastTile() 93 if (mController == null) return; in setListening() 96 mController.addCallback(mCallback); in setListening() 99 mController.setDiscovering(false); in setListening() 100 mController.removeCallback(mCallback); in setListening() 108 if (mController == null) return; in handleUserSwitch() 109 mController.setCurrentUserId(newUserId); in handleUserSwitch() 171 final Set<CastDevice> devices = mController.getCastDevices(); in handleUpdateState() 287 updateItems(mController.getCastDevices()); in createDetailView() [all …]
|
D | DndTile.java | 82 private final ZenModeController mController; field in DndTile 91 mController = Dependency.get(ZenModeController.class); in DndTile() 141 mController.setZen(ZEN_MODE_OFF, null, TAG); in handleClick() 144 mController.setZen(zen, null, TAG); in handleClick() 150 if (mController.isVolumeRestricted()) { in handleSecondaryClick() 168 final int zen = arg instanceof Integer ? (Integer) arg : mController.getZen(); in handleUpdateState() 228 mController.addCallback(mZenCallback); in setListening() 231 mController.removeCallback(mZenCallback); in setListening() 302 mController.setZen(ZEN_MODE_OFF, null, TAG); in setToggleState() 307 mController.setZen(zen, null, TAG); in setToggleState() [all …]
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | YearPickerView.java | 43 private final DatePickerController mController; field in YearPickerView 54 mController = controller; in YearPickerView() 55 mController.registerOnDateChangedListener(this); in YearPickerView() 73 for (int year = mController.getMinYear(); year <= mController.getMaxYear(); year++) { in init() 82 mController.tryVibrate(); in onItemClick() 94 mController.onYearSelected(getYearFromTextView(clickedView)); in onItemClick() 115 boolean selected = mController.getSelectedDay().year == year; in getView() 150 postSetSelectionCentered(mController.getSelectedDay().year - mController.getMinYear()); in onDateChanged()
|
D | MonthAdapter.java | 40 protected final DatePickerController mController; field in MonthAdapter 121 mController = controller; in MonthAdapter() 123 setSelectedDay(mController.getSelectedDay()); in MonthAdapter() 149 return ((mController.getMaxYear() - mController.getMinYear()) + 1) * MONTHS_IN_YEAR; in getCount() 192 final int year = position / MONTHS_IN_YEAR + mController.getMinYear(); in getView() 206 drawingParams.put(MonthView.VIEW_PARAMS_WEEK_START, mController.getFirstDayOfWeek()); in getView() 232 mController.tryVibrate(); in onDayTapped() 233 mController.onDayOfMonthSelected(day.year, day.month, day.day); in onDayTapped()
|
D | DayPickerView.java | 92 private DatePickerController mController; field in DayPickerView 107 mController = controller; in setController() 108 mController.registerOnDateChangedListener(this); in setController() 132 mAdapter = createMonthAdapter(getContext(), mController); in refreshAdapter() 186 final int position = (day.year - mController.getMinYear()) in goTo() 370 goTo(mController.getSelectedDay(), false, true, true); in onDateChanged() 476 int year = firstVisiblePosition / 12 + mController.getMinYear(); in performAccessibilityAction()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/ |
D | PlayerController.java | 44 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 …]
|
D | NotificationHelper.java | 37 private final MediaController mController; field in NotificationHelper 49 mController = session.getController(); in NotificationHelper() 50 mTransportControls = mController.getTransportControls(); in NotificationHelper() 79 mController.registerCallback(mCb); in onStart() 89 mMetadata = mController.getMetadata(); in onStart() 90 mPlaybackState = mController.getPlaybackState(); in onStart() 103 mController.unregisterCallback(mCb); in onStop()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 61 private KeyguardIndicationController mController; field in KeyguardIndicationControllerTest 85 mController = new KeyguardIndicationController(mContext, mIndicationArea, null, mWakeLock); in createController() 124 final KeyguardUpdateMonitorCallback monitor = mController.getKeyguardCallback(); in updateOnTheFly() 158 mController.setDozing(true); in transientIndication_holdsWakeLock_whenDozing() 159 mController.showTransientIndication("Test"); in transientIndication_holdsWakeLock_whenDozing() 168 mController.setDozing(true); in transientIndication_releasesWakeLock_afterHiding() 169 mController.showTransientIndication("Test"); in transientIndication_releasesWakeLock_afterHiding() 170 mController.hideTransientIndication(); in transientIndication_releasesWakeLock_afterHiding() 180 mController.setDozing(true); in transientIndication_releasesWakeLock_afterHidingDelayed() 181 mController.showTransientIndication("Test"); in transientIndication_releasesWakeLock_afterHidingDelayed() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | NightDisplayService.java | 102 } else if (mController != null && mController.isActivated()) { 103 setMatrix(mController.getColorTemperature(), mMatrixNight); 135 private NightDisplayController mController; field in NightDisplayService 244 mController = new NightDisplayController(getContext(), mCurrentUser); in setUp() 245 mController.setListener(this); in setUp() 248 setMatrix(mController.getColorTemperature(), mMatrixNight); in setUp() 251 onAutoModeChanged(mController.getAutoMode()); in setUp() 255 onActivated(mController.isActivated()); in setUp() 265 if (mController != null) { in tearDown() 266 mController.setListener(null); in tearDown() [all …]
|
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/ |
D | WakeUpController.java | 31 private static WakeUpController mController = null; field in WakeUpController 40 if (mController == null) { in getController() 41 mController = new WakeUpController(); in getController() 43 return mController; in getController()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumeDialogComponent.java | 61 private final VolumeDialogControllerImpl mController; field in VolumeDialogComponent 77 mController = (VolumeDialogControllerImpl) Dependency.get(VolumeDialogController.class); in VolumeDialogComponent() 78 mController.setUserActivityListener(this); in VolumeDialogComponent() 136 mController.setVolumePolicy(mVolumePolicy); in setVolumePolicy() 148 mController.setVolumePolicy(mVolumePolicy); in applyConfiguration() 149 mController.showDndTile(true); in applyConfiguration() 161 mController.dismiss(); in dismissNow() 171 mController.register(); in register()
|
D | ZenFooter.java | 56 private ZenModeController mController; field in ZenFooter 100 mController = controller; in init() 101 mController.addCallback(mZenCallback); in init() 107 mController.removeCallback(mZenCallback); in cleanup() 150 mController.getCurrentUser(), true /*shortVersion*/); in update()
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
D | Media.java | 181 private final ISessionController mController; field in Media.ControllerMonitor 184 mController = controller; in ControllerMonitor() 233 System.out.println("V2Monitoring session " + mController.getTag() in printUsageMessage() 247 mController.registerCallbackListener(ControllerMonitor.this); in run() 267 mController.play(); in run() 269 mController.pause(); in run() 271 mController.next(); in run() 273 mController.previous(); in run() 290 mController.unregisterCallbackListener(this); in run()
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaNotificationManager.java | 59 private MediaControllerCompat mController; field in MediaNotificationManager 107 mMetadata = mController.getMetadata(); in startNotification() 108 mPlaybackState = mController.getPlaybackState(); in startNotification() 113 mController.registerCallback(mCb); in startNotification() 134 mController.unregisterCallback(mCb); in stopNotification() 175 if (mController != null) { in updateSessionToken() 176 mController.unregisterCallback(mCb); in updateSessionToken() 180 mController = new MediaControllerCompat(mService, mSessionToken); in updateSessionToken() 184 mTransportControls = mController.getTransportControls(); in updateSessionToken() 186 mController.registerCallback(mCb); in updateSessionToken()
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/ |
D | MediaControllerCompatTest.java | 72 private MediaControllerCompat mController; field in MediaControllerCompatTest 82 mController = mSession.getController(); in setUp() 95 assertEquals(getContext().getPackageName(), mController.getPackageName()); in testGetPackageName() 102 RatingCompat.RATING_NONE, mController.getRatingType()); in testGetRatingType() 105 assertEquals(RatingCompat.RATING_5_STARS, mController.getRatingType()); in testGetRatingType() 111 assertEquals(mSession.getSessionToken(), mController.getSessionToken()); in testGetSessionToken() 122 mController.sendCommand(command, extras, new ResultReceiver(null)); in testSendCommand() 146 mController.addQueueItem(itemDescription1); in testAddRemoveQueueItems() 154 mController.addQueueItem(itemDescription2, 0); in testAddRemoveQueueItems() 162 mController.removeQueueItemAt(0); in testAddRemoveQueueItems() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hdmi_HdmiCecController.cpp | 92 HdmiCecCallback(HdmiCecController* controller) : mController(controller) {}; in HdmiCecCallback() 96 HdmiCecController* mController; member in android::HdmiCecController::HdmiCecCallback 116 : mController(controller), in HdmiCecEventHandler() 120 : mController(controller), in HdmiCecEventHandler() 148 env->CallVoidMethod(mController->getCallbacksObj(), in propagateCecCommand() 161 env->CallVoidMethod(mController->getCallbacksObj(), in propagateHotplugEvent() 176 HdmiCecController* mController; member in android::HdmiCecEventHandler 320 sp<HdmiCecEventHandler> handler(new HdmiCecEventHandler(mController, message)); in onCecMessage() 321 mController->mLooper->sendMessage(handler, HdmiCecEventHandler::EventType::CEC_MESSAGE); in onCecMessage() 326 sp<HdmiCecEventHandler> handler(new HdmiCecEventHandler(mController, event)); in onHotplugEvent() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputView.java | 81 private RemoteInputController mController; field in RemoteInputView 147 mController.addSpinning(mEntry.key, mToken); in sendRemoteInput() 148 mController.removeRemoteInput(mEntry, mToken); in sendRemoteInput() 150 mController.remoteInputSent(mEntry); in sendRemoteInput() 177 v.mController = controller; in inflate() 200 mController.removeRemoteInput(mEntry, mToken); in onDefocus() 248 mController.removeRemoteInput(mEntry, mToken); in onDetachedFromWindow() 249 mController.removeSpinning(mEntry.key, mToken); in onDetachedFromWindow() 281 mController.addRemoteInput(mEntry, mToken); in focus() 310 mController.removeSpinning(mEntry.key, mToken); in reset()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 389 mController(controller) { in SpriteImpl() 393 AutoMutex _m(mController->mLock); in ~SpriteImpl() 398 mController->disposeSurfaceLocked(mLocked.state.surfaceControl); in ~SpriteImpl() 404 AutoMutex _l(mController->mLock); in setIcon() 430 AutoMutex _l(mController->mLock); in setVisible() 439 AutoMutex _l(mController->mLock); in setPosition() 449 AutoMutex _l(mController->mLock); in setLayer() 458 AutoMutex _l(mController->mLock); in setAlpha() 468 AutoMutex _l(mController->mLock); in setTransformationMatrix() 481 mController->invalidateSpriteLocked(this); in invalidateLocked()
|