/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/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/support/samples/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaController.java | 46 private TransportController mController; field in MediaController 96 if (mController != null) { in setMediaPlayer() 97 mController.unregisterStateListener(mStateListener); in setMediaPlayer() 103 mController = controller; in setMediaPlayer() 110 if (mController != null) { in onAttachedToWindow() 111 mController.registerStateListener(mStateListener); in onAttachedToWindow() 118 if (mController != null) { in onDetachedFromWindow() 119 mController.unregisterStateListener(mStateListener); in onDetachedFromWindow() 174 int flags = mController.getTransportControlFlags(); in updateButtons() 220 if (mController == null || mDragging) { in updateProgress() [all …]
|
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/java/android/support/v4/media/ |
D | TransportMediator.java | 53 final TransportMediatorJellybeanMR2 mController; field in TransportMediator 166 mController = new TransportMediatorJellybeanMR2(mContext, mAudioManager, in TransportMediator() 169 mController = null; in TransportMediator() 190 return mController != null ? mController.getRemoteControlClient() : null; in getRemoteControlClient() 241 if (mController != null) { in pushControllerState() 242 mController.refreshState(mCallbacks.onIsPlaying(), in pushControllerState() 260 if (mController != null) { in startPlaying() 261 mController.startPlaying(); in startPlaying() 274 if (mController != null) { in pausePlaying() 275 mController.pausePlaying(); in pausePlaying() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NightDisplayTile.java | 33 private NightDisplayController mController; field in NightDisplayTile 38 mController = new NightDisplayController(mContext, ActivityManager.getCurrentUser()); in NightDisplayTile() 55 mController.setActivated(activated); in handleClick() 62 mController.setListener(null); in handleUserSwitch() 66 mController = new NightDisplayController(mContext, newUserId); in handleUserSwitch() 68 mController.setListener(this); in handleUserSwitch() 76 final boolean isActivated = mController.isActivated(); in handleUpdateState() 102 mController.setListener(this); in setListening() 105 mController.setListener(null); in setListening()
|
D | RotationLockTile.java | 49 private final RotationLockController mController; field in RotationLockTile 53 mController = host.getRotationLockController(); in RotationLockTile() 62 if (mController == null) return; in setListening() 64 mController.addRotationLockControllerCallback(mCallback); in setListening() 66 mController.removeRotationLockControllerCallback(mCallback); in setListening() 77 if (mController == null) return; in handleClick() 80 mController.setRotationLocked(!newState); in handleClick() 91 if (mController == null) return; in handleUpdateState() 92 final boolean rotationLocked = mController.isRotationLocked(); in handleUpdateState() 96 final boolean portrait = isCurrentOrientationLockPortrait(mController, mContext); in handleUpdateState() [all …]
|
D | BluetoothTile.java | 47 private final BluetoothController mController; field in BluetoothTile 52 mController = host.getBluetoothController(); in BluetoothTile() 69 mController.addStateChangedCallback(mCallback); in setListening() 71 mController.removeStateChangedCallback(mCallback); in setListening() 80 mController.setBluetoothEnabled(!isEnabled); in handleSecondaryClick() 90 if (!mController.canConfigBluetooth()) { in handleClick() 97 mController.setBluetoothEnabled(true); in handleClick() 108 final boolean enabled = mController.isBluetoothEnabled(); in handleUpdateState() 109 final boolean connected = mController.isBluetoothConnected(); in handleUpdateState() 110 final boolean connecting = mController.isBluetoothConnecting(); in handleUpdateState() [all …]
|
D | CastTile.java | 46 private final CastController mController; field in CastTile 53 mController = host.getCastController(); in CastTile() 70 if (mController == null) return; in setListening() 73 mController.addCallback(mCallback); in setListening() 76 mController.setDiscovering(false); in setListening() 77 mController.removeCallback(mCallback); in setListening() 85 if (mController == null) return; in handleUserSwitch() 86 mController.setCurrentUserId(newUserId); in handleUserSwitch() 122 final Set<CastDevice> devices = mController.getCastDevices(); in handleUpdateState() 229 updateItems(mController.getCastDevices()); in createDetailView() [all …]
|
D | LocationTile.java | 43 private final LocationController mController; field in LocationTile 49 mController = host.getLocationController(); in LocationTile() 61 mController.addSettingsChangedCallback(mCallback); in setListening() 64 mController.removeSettingsChangedCallback(mCallback); in setListening() 83 mController.setLocationEnabled(!wasEnabled); in handleClick() 90 mController.setLocationEnabled(!wasEnabled); in handleClick() 100 final boolean locationEnabled = mController.isLocationEnabled(); in handleUpdateState()
|
D | HotspotTile.java | 49 private final HotspotController mController; field in HotspotTile 56 mController = host.getHotspotController(); in HotspotTile() 67 return mController.isHotspotSupported(); in isAvailable() 85 mController.addCallback(mCallback); in setListening() 90 mController.removeCallback(mCallback); in setListening() 107 mController.setHotspotEnabled(!isEnabled); in handleClick() 123 state.value = mController.isHotspotEnabled(); in handleUpdateState()
|
D | DndTile.java | 66 private final ZenModeController mController; field in DndTile 74 mController = host.getZenModeController(); in DndTile() 113 if (mController.isVolumeRestricted()) { in handleClick() 123 mController.setZen(Global.ZEN_MODE_OFF, null, TAG); in handleClick() 127 mController.setZen(zen, null, TAG); in handleClick() 138 final int zen = arg instanceof Integer ? (Integer) arg : mController.getZen(); in handleUpdateState() 198 mController.addCallback(mZenCallback); in setListening() 201 mController.removeCallback(mZenCallback); in setListening() 259 mController.setZen(Global.ZEN_MODE_OFF, null, TAG); in setToggleState() 275 zmp.init(mController); in createDetailView()
|
/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/src/com/android/systemui/volume/ |
D | VolumeDialogComponent.java | 54 private final VolumeDialogController mController; field in VolumeDialogComponent 68 mController = new VolumeDialogController(context, null) { in VolumeDialogComponent() 76 mController, zen, mVolumeDialogCallback); in VolumeDialogComponent() 112 mController.setVolumePolicy(mVolumePolicy); in setVolumePolicy() 127 mController.setVolumePolicy(mVolumePolicy); in applyConfiguration() 128 mController.showDndTile(true); in applyConfiguration() 143 mController.dismiss(); in dismissNow() 153 mController.register(); in register() 159 mController.dump(fd, pw, args); in dump()
|
D | ZenFooter.java | 49 private ZenModeController mController; field in ZenFooter 81 mController = controller; in init() 82 mController.addCallback(mZenCallback); in init() 87 mController.removeCallback(mZenCallback); in cleanup() 128 mController.getCurrentUser(), true /*shortVersion*/); in update()
|
/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/cmds/media/src/com/android/commands/media/ |
D | Media.java | 175 private final ISessionController mController; field in Media.ControllerMonitor 178 mController = controller; in ControllerMonitor() 227 System.out.println("V2Monitoring session " + mController.getTag() in printUsageMessage() 241 mController.registerCallbackListener(ControllerMonitor.this); in run() 261 mController.play(); in run() 263 mController.pause(); in run() 265 mController.next(); in run() 267 mController.previous(); in run() 284 mController.unregisterCallbackListener(this); in run()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | NightDisplayService.java | 91 private NightDisplayController mController; field in NightDisplayService 186 mController = new NightDisplayController(getContext(), mCurrentUser); in setUp() 187 mController.setListener(this); in setUp() 190 onAutoModeChanged(mController.getAutoMode()); in setUp() 194 onActivated(mController.isActivated()); in setUp() 199 if (mController != null) { in tearDown() 200 mController.setListener(null); in tearDown() 201 mController = null; in tearDown() 363 mController.setActivated(activated); in updateActivated() 382 mStartTime = mController.getCustomStartTime(); in onStart() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputView.java | 77 private RemoteInputController mController; field in RemoteInputView 140 mController.addSpinning(mEntry.key); in sendRemoteInput() 141 mController.removeRemoteInput(mEntry); in sendRemoteInput() 143 mController.remoteInputSent(mEntry); in sendRemoteInput() 170 v.mController = controller; in inflate() 193 mController.removeRemoteInput(mEntry); in onDefocus() 235 mController.removeRemoteInput(mEntry); in onDetachedFromWindow() 236 mController.removeSpinning(mEntry.key); in onDetachedFromWindow() 265 mController.addRemoteInput(mEntry); in focus() 288 mController.removeSpinning(mEntry.key); in reset()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | CarStatusBar.java | 50 private CarNavigationBarController mController; field in CarStatusBar 120 mController = new CarNavigationBarController(context, mCarNavigationBar, in createNavigationBarView() 151 if (intent.getData() == null || mController == null) { 155 mController.onPackageChange(packageName); 182 mController.taskChanged(runningTaskInfo.baseActivity.getPackageName()); in onTaskStackChanged()
|
/frameworks/base/libs/input/ |
D | SpriteController.cpp | 390 mController(controller) { in SpriteImpl() 394 AutoMutex _m(mController->mLock); in ~SpriteImpl() 399 mController->disposeSurfaceLocked(mLocked.state.surfaceControl); in ~SpriteImpl() 405 AutoMutex _l(mController->mLock); in setIcon() 431 AutoMutex _l(mController->mLock); in setVisible() 440 AutoMutex _l(mController->mLock); in setPosition() 450 AutoMutex _l(mController->mLock); in setLayer() 459 AutoMutex _l(mController->mLock); in setAlpha() 469 AutoMutex _l(mController->mLock); in setTransformationMatrix() 482 mController->invalidateSpriteLocked(this); in invalidateLocked()
|