Home
last modified time | relevance | path

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

12

/frameworks/opt/photoviewer/appcompat/src/com/android/ex/photo/
DPhotoViewActivity.java33 private PhotoViewController mController; field in PhotoViewActivity
39 mController = createController(); in onCreate()
40 mController.onCreate(savedInstanceState); in onCreate()
49 return mController; in getController()
55 mController.onStart(); in onStart()
61 mController.onResume(); in onResume()
66 mController.onPause(); in onPause()
72 mController.onStop(); in onStop()
78 mController.onDestroy(); in onDestroy()
84 if (!mController.onBackPressed()) { in onBackPressed()
[all …]
/frameworks/opt/photoviewer/activity/src/com/android/ex/photo/
DPhotoViewActivity.java33 private PhotoViewController mController; field in PhotoViewActivity
39 mController = createController(); in onCreate()
40 mController.onCreate(savedInstanceState); in onCreate()
49 return mController; in getController()
55 mController.onStart(); in onStart()
61 mController.onResume(); in onResume()
66 mController.onPause(); in onPause()
72 mController.onStop(); in onStop()
78 mController.onDestroy(); in onDestroy()
84 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.java38 private final RotationLockController mController; field in RotationLockTile
42 mController = host.getRotationLockController(); in RotationLockTile()
51 if (mController == null) return; in setListening()
53 mController.addRotationLockControllerCallback(mCallback); in setListening()
55 mController.removeRotationLockControllerCallback(mCallback); in setListening()
61 if (mController == null) return; in handleClick()
63 mController.setRotationLocked(newState); in handleClick()
69 if (mController == null) return; in handleUpdateState()
71 : mController.isRotationLocked(); in handleUpdateState()
73 state.visible = mController.isRotationLockAffordanceVisible(); in handleUpdateState()
DBluetoothTile.java39 private final BluetoothController mController; field in BluetoothTile
44 mController = host.getBluetoothController(); in BluetoothTile()
66 mController.addStateChangedCallback(mCallback); in setListening()
68 mController.removeStateChangedCallback(mCallback); in setListening()
75 mController.setBluetoothEnabled(!isEnabled); in handleClick()
82 mController.setBluetoothEnabled(true); in handleSecondaryClick()
89 final boolean supported = mController.isBluetoothSupported(); in handleUpdateState()
90 final boolean enabled = mController.isBluetoothEnabled(); in handleUpdateState()
91 final boolean connected = mController.isBluetoothConnected(); in handleUpdateState()
92 final boolean connecting = mController.isBluetoothConnecting(); in handleUpdateState()
[all …]
DCastTile.java43 private final CastController mController; field in CastTile
50 mController = host.getCastController(); in CastTile()
67 if (mController == null) return; in setListening()
70 mController.addCallback(mCallback); in setListening()
73 mController.setDiscovering(false); in setListening()
74 mController.removeCallback(mCallback); in setListening()
82 if (mController == null) return; in handleUserSwitch()
83 mController.setCurrentUserId(newUserId); in handleUserSwitch()
97 final Set<CastDevice> devices = mController.getCastDevices(); in handleUpdateState()
188 updateItems(mController.getCastDevices()); in createDetailView()
[all …]
DHotspotTile.java35 private final HotspotController mController; field in HotspotTile
42 mController = host.getHotspotController(); in HotspotTile()
62 mController.addCallback(mCallback); in setListening()
64 mController.removeCallback(mCallback); in setListening()
71 mController.setHotspotEnabled(!isEnabled); in handleClick()
91 state.visible = mController.isHotspotSupported() && mUsageTracker.isRecentlyUsed(); in handleUpdateState()
94 state.value = mController.isHotspotEnabled(); in handleUpdateState()
DLocationTile.java33 private final LocationController mController; field in LocationTile
39 mController = host.getLocationController(); in LocationTile()
51 mController.addSettingsChangedCallback(mCallback); in setListening()
54 mController.removeSettingsChangedCallback(mCallback); in setListening()
62 mController.setLocationEnabled(!wasEnabled); in handleClick()
69 final boolean locationEnabled = mController.isLocationEnabled(); in handleUpdateState()
DCellularTile.java41 private final NetworkController mController; field in CellularTile
47 mController = host.getNetworkController(); in CellularTile()
48 mDataController = mController.getMobileDataController(); in CellularTile()
65 mController.addNetworkSignalChangedCallback(mCallback); in setListening()
67 mController.removeNetworkSignalChangedCallback(mCallback); in setListening()
87 state.visible = mController.hasMobileDataFeature(); in handleUpdateState()
DWifiTile.java43 private final NetworkController mController; field in WifiTile
50 mController = host.getNetworkController(); in WifiTile()
51 mWifiController = mController.getAccessPointController(); in WifiTile()
68 mController.addNetworkSignalChangedCallback(mCallback); in setListening()
71 mController.removeNetworkSignalChangedCallback(mCallback); in setListening()
89 mController.setWifiEnabled(!mState.enabled); in handleClick()
99 mController.setWifiEnabled(true); in handleSecondaryClick()
264 mController.setWifiEnabled(state); in setToggleState()
/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()
DMonthView.java124 protected DatePickerController mController; field in MonthView
234 mController = controller; in setDatePickerController()
601 if (mController == null) { in isBeforeMin()
604 Calendar minDate = mController.getMinDate(); in isBeforeMin()
629 if (mController == null) { in isAfterMax()
632 Calendar maxDate = mController.getMaxDate(); in isAfterMax()
/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/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/core/java/android/widget/
DYearPickerView.java42 private DatePickerController mController; field in YearPickerView
92 mController = controller; in init()
93 mController.registerOnDateChangedListener(this); in init()
122 mController.tryVibrate(); in onItemClick()
127 mController.onYearSelected(mAdapter.getItem(position)); in onItemClick()
148 boolean selected = mController.getSelectedDay().get(Calendar.YEAR) == year; in getView()
189 mController.getSelectedDay().get(Calendar.YEAR) - mMinDate.get(Calendar.YEAR)); in onDateChanged()
/frameworks/base/cmds/media/src/com/android/commands/media/
DMedia.java176 private final ISessionController mController; field in Media.ControllerMonitor
179 mController = controller; in ControllerMonitor()
228 System.out.println("V2Monitoring session " + mController.getTag() in printUsageMessage()
242 mController.registerCallbackListener(ControllerMonitor.this); in run()
262 mController.play(); in run()
264 mController.pause(); in run()
266 mController.next(); in run()
268 mController.previous(); in run()
285 mController.unregisterCallbackListener(this); in run()
/frameworks/base/core/java/android/net/
DDhcpStateMachine.java57 private StateMachine mController; field in DhcpStateMachine
116 mController = controller; in DhcpStateMachine()
178 mController.sendMessage(CMD_ON_QUIT); in onQuitting()
217 mController.sendMessage(CMD_PRE_DHCP_ACTION); in processMessage()
289 mController.sendMessage(CMD_PRE_DHCP_ACTION); in processMessage()
386 mController.obtainMessage(CMD_POST_DHCP_ACTION, DHCP_SUCCESS, 0, dhcpResults) in runDhcp()
392 mController.obtainMessage(CMD_POST_DHCP_ACTION, DHCP_FAILURE, 0) in runDhcp()
/frameworks/base/libs/input/
DSpriteController.cpp386 mController(controller) { in SpriteImpl()
390 AutoMutex _m(mController->mLock); in ~SpriteImpl()
395 mController->disposeSurfaceLocked(mLocked.state.surfaceControl); in ~SpriteImpl()
401 AutoMutex _l(mController->mLock); in setIcon()
427 AutoMutex _l(mController->mLock); in setVisible()
436 AutoMutex _l(mController->mLock); in setPosition()
446 AutoMutex _l(mController->mLock); in setLayer()
455 AutoMutex _l(mController->mLock); in setAlpha()
465 AutoMutex _l(mController->mLock); in setTransformationMatrix()
478 mController->invalidateSpriteLocked(this); in invalidateLocked()
/frameworks/base/media/java/android/media/session/
DMediaController.java883 private final WeakReference<MediaController> mController; field in MediaController.CallbackStub
886 mController = new WeakReference<MediaController>(controller); in CallbackStub()
891 MediaController controller = mController.get(); in onSessionDestroyed()
899 MediaController controller = mController.get(); in onEvent()
907 MediaController controller = mController.get(); in onPlaybackStateChanged()
915 MediaController controller = mController.get(); in onMetadataChanged()
925 MediaController controller = mController.get(); in onQueueChanged()
933 MediaController controller = mController.get(); in onQueueTitleChanged()
941 MediaController controller = mController.get(); in onExtrasChanged()
949 MediaController controller = mController.get(); in onVolumeInfoChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java364 final UserSwitcherController mController; field in UserSwitcherController.BaseUserAdapter
367 mController = controller; in BaseUserAdapter()
373 boolean secureKeyguardShowing = mController.mKeyguardMonitor.isShowing() in getCount()
374 && mController.mKeyguardMonitor.isSecure(); in getCount()
376 return mController.mUsers.size(); in getCount()
379 final int N = mController.mUsers.size(); in getCount()
382 if (mController.mUsers.get(i).isRestricted) { in getCount()
393 return mController.mUsers.get(position); in getItem()
402 mController.switchTo(record); in switchTo()
429 mController.refreshUsers(UserHandle.USER_NULL); in refresh()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodSubtypeSwitchingController.java479 private ControllerImpl mController; field in InputMethodSubtypeSwitchingController
492 if (mController == null) { in onUserActionLocked()
498 mController.onUserActionLocked(imi, subtype); in onUserActionLocked()
503 mController = ControllerImpl.createFrom(mController, in resetCircularListLocked()
509 if (mController == null) { in getNextInputMethodLocked()
515 return mController.getNextInputMethod(onlyCurrentIme, imi, subtype); in getNextInputMethodLocked()
/frameworks/base/media/java/android/media/
DRemoteController.java548 private final WeakReference<RemoteController> mController; field in RemoteController.RcDisplay
551 mController = new WeakReference<RemoteController>(rc); in RcDisplay()
556 final RemoteController rc = mController.get(); in setCurrentClientId()
578 final RemoteController rc = mController.get(); in setEnabled()
588 final RemoteController rc = mController.get(); in setPlaybackState()
614 final RemoteController rc = mController.get(); in setTransportControlInfo()
629 final RemoteController rc = mController.get(); in setMetadata()
648 final RemoteController rc = mController.get(); in setArtwork()
666 final RemoteController rc = mController.get(); in setAllMetadata()

12