Home
last modified time | relevance | path

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

12

/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/support/v4/java/android/support/v4/media/
DTransportMediator.java54 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()
239 if (mController != null) { in pushControllerState()
240 mController.refreshState(mCallbacks.onIsPlaying(), in pushControllerState()
258 if (mController != null) { in startPlaying()
259 mController.startPlaying(); in startPlaying()
272 if (mController != null) { in pausePlaying()
273 mController.pausePlaying(); in pausePlaying()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DRotationLockTile.java49 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 …]
DBluetoothTile.java46 private final BluetoothController mController; field in BluetoothTile
51 mController = host.getBluetoothController(); in BluetoothTile()
68 mController.addStateChangedCallback(mCallback); in setListening()
70 mController.removeStateChangedCallback(mCallback); in setListening()
79 mController.setBluetoothEnabled(!isEnabled); in handleSecondaryClick()
89 if (!mController.canConfigBluetooth()) { in handleClick()
95 mController.setBluetoothEnabled(true); in handleClick()
107 final boolean enabled = mController.isBluetoothEnabled(); in handleUpdateState()
108 final boolean connected = mController.isBluetoothConnected(); in handleUpdateState()
109 final boolean connecting = mController.isBluetoothConnecting(); in handleUpdateState()
[all …]
DCastTile.java46 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 …]
DLocationTile.java43 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()
DHotspotTile.java49 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()
DDndTile.java66 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()
126 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()
DWifiTile.java50 private final NetworkController mController; field in WifiTile
59 mController = host.getNetworkController(); in WifiTile()
60 mWifiController = mController.getAccessPointController(); in WifiTile()
72 mController.addSignalCallback(mSignalCallback); in setListening()
74 mController.removeSignalCallback(mSignalCallback); in setListening()
107 mController.setWifiEnabled(!mState.value); in handleSecondaryClick()
117 mController.setWifiEnabled(true); in handleClick()
290 mController.setWifiEnabled(state); in setToggleState()
DCellularTile.java45 private final NetworkController mController; field in CellularTile
53 mController = host.getNetworkController(); in CellularTile()
54 mDataController = mController.getMobileDataController(); in CellularTile()
71 mController.addSignalCallback(mSignalCallback); in setListening()
73 mController.removeSignalCallback(mSignalCallback); in setListening()
160 return mController.hasMobileDataFeature(); in isAvailable()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DYearPickerView.java43 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()
DMonthAdapter.java40 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()
DDayPickerView.java92 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/
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 …]
DNotificationHelper.java37 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/
DVolumeDialogComponent.java54 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()
128 mController.setVolumePolicy(mVolumePolicy); in applyConfiguration()
129 mController.showDndTile(true); in applyConfiguration()
144 mController.dismiss(); in dismissNow()
154 mController.register(); in register()
160 mController.dump(fd, pw, args); in dump()
DZenFooter.java49 private ZenModeController mController; field in ZenFooter
81 mController = controller; in init()
82 mController.addCallback(mZenCallback); in init()
87 mController.removeCallback(mZenCallback); in cleanup()
131 : ZenModeConfig.getConditionSummary(mContext, mConfig, mController.getCurrentUser(), in update()
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
DWakeUpController.java31 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/
DMedia.java175 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/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DRemoteInputView.java71 private RemoteInputController mController; field in RemoteInputView
130 mController.addSpinning(mEntry.key); in sendRemoteInput()
131 mController.removeRemoteInput(mEntry); in sendRemoteInput()
133 mController.remoteInputSent(mEntry); in sendRemoteInput()
151 v.mController = controller; in inflate()
174 mController.removeRemoteInput(mEntry); in onDefocus()
202 mController.removeRemoteInput(mEntry); in onDetachedFromWindow()
203 mController.removeSpinning(mEntry.key); in onDetachedFromWindow()
221 mController.addRemoteInput(mEntry); in focus()
244 mController.removeSpinning(mEntry.key); in reset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/
DCarStatusBar.java50 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/
DSpriteController.cpp390 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunerZenModePanel.java41 private ZenModeController mController; field in TunerZenModePanel
53 mController = zenModeController; in init()
89 mController.setZen(mZenMode, null, TAG); in onClick()
93 mController.setZen(Global.ZEN_MODE_OFF, null, TAG); in onClick()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java550 private ControllerImpl mController; field in InputMethodSubtypeSwitchingController
563 if (mController == null) { in onUserActionLocked()
569 mController.onUserActionLocked(imi, subtype); in onUserActionLocked()
574 mController = ControllerImpl.createFrom(mController, in resetCircularListLocked()
581 if (mController == null) { in getNextInputMethodLocked()
587 return mController.getNextInputMethod(onlyCurrentIme, imi, subtype, forward); in getNextInputMethodLocked()
597 if (mController != null) { in dump()
598 mController.dump(pw); in dump()

12