Home
last modified time | relevance | path

Searched refs:mService (Results 1 – 25 of 66) sorted by relevance

123

/packages/apps/Music/src/com/android/music/
DMediaPlaybackActivity.java78 private IMediaPlaybackService mService = null; field in MediaPlaybackActivity
274 artist = mService.getArtistName(); in onLongClick()
275 album = mService.getAlbumName(); in onLongClick()
276 song = mService.getTrackName(); in onLongClick()
277 audioid = mService.getAudioId(); in onLongClick()
371 if (!fromuser || (mService == null)) return;
377 mService.seek(mPosOverride);
424 if (mService == null) return;
426 if (mService.position() < 2000) {
427 mService.prev();
[all …]
DMediaPlaybackService.java2083 WeakReference<MediaPlaybackService> mService; field in MediaPlaybackService.ServiceStub
2086 mService = new WeakReference<MediaPlaybackService>(service); in ServiceStub()
2091 mService.get().open(path); in openFile()
2094 mService.get().open(list, position); in open()
2097 return mService.get().getQueuePosition(); in getQueuePosition()
2100 mService.get().setQueuePosition(index); in setQueuePosition()
2103 return mService.get().isPlaying(); in isPlaying()
2106 mService.get().stop(); in stop()
2109 mService.get().pause(); in pause()
2112 mService.get().play(); in play()
[all …]
/packages/apps/FMRadio/src/com/android/fmradio/
DFmMainActivity.java143 private FmService mService = null; field in FmMainActivity
201 if (mService.getPowerStatus() == FmService.POWER_UP) {
228 boolean isPowerup = (mService.getPowerStatus() == FmService.POWER_UP);
276 boolean isPowerUp = (mService.getPowerStatus() == FmService.POWER_UP);
328 if (mService != null) {
329 mService.updatePlayingNotification();
351 mService = ((FmService.ServiceBinder) service).getService();
352 if (null == mService) {
358 mService.registerFmRadioListener(mFmRadioListener);
359 mService.setFmMainActivityForeground(mIsActivityForeground);
[all …]
DFmRecordActivity.java74 private FmService mService = null; field in FmRecordActivity
103 mService.stopRecordingAsync(); in onCreate()
197 if (mService != null) { in updateRecordingNotification()
198 mService.showRecordingNotification(mNotificationBuilder.build()); in updateRecordingNotification()
208 if (mService != null && !isStopRecording()) { in onNewIntent()
209 mService.stopRecordingAsync(); in onNewIntent()
221 if (null != mService) { in onResume()
222 mService.setFmRecordActivityForeground(true); in onResume()
241 if (null != mService) { in onPause()
242 mService.setFmRecordActivityForeground(false); in onPause()
[all …]
DFmFavoriteActivity.java178 if (null != mService) { in onOptionsItemSelected()
198 mService.setDistanceExceed(exceed); in onOptionsItemSelected()
204 mService.startScanAsync(); in onOptionsItemSelected()
215 if (null == mService) { in onBackPressed()
218 boolean isScanning = mService.isScanning(); in onBackPressed()
220 mService.stopScan(); in onBackPressed()
245 if (null != mService) { in onPrepareOptionsMenu()
246 boolean isScan = mService.isScanning(); in onPrepareOptionsMenu()
398 if (null != mService) { in onResume()
399 mService.setFmMainActivityForeground(mIsActivityForeground); in onResume()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
DExportProcessor.java49 private final VCardService mService; field in ExportProcessor
62 mService = service; in ExportProcessor()
65 (NotificationManager)mService.getSystemService(Context.NOTIFICATION_SERVICE); in ExportProcessor()
118 mService.getString(R.string.fail_reason_could_not_open_file, in runInternal()
128 mService.getString(R.string.config_export_vcard_type)); in runInternal()
133 composer = new VCardComposer(mService, vcardType, true); in runInternal()
151 mService.getString(R.string.fail_reason_could_not_initialize_exporter, in runInternal()
160 mService.getString(R.string.fail_reason_no_exportable_contact); in runInternal()
179 mService.getString(R.string.fail_reason_error_occurred_during_export, in runInternal()
197 mService.updateMediaScanner(request.destUri.getPath()); in runInternal()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java57 private AdapterService mService; field in AdapterProperties
79 mService = service; in AdapterProperties()
97 mService = null; in cleanup()
122 return mService.setAdapterPropertyNative( in setName()
152 return mService.setAdapterPropertyNative( in setScanMode()
173 return mService.setAdapterPropertyNative( in setUuids()
332 return mService.setAdapterPropertyNative( in setDiscoverableTimeout()
377 mService.sendBroadcastAsUser(intent, UserHandle.ALL, in sendConnectionStateChange()
378 mService.BLUETOOTH_PERM); in sendConnectionStateChange()
510 mService.sendBroadcastAsUser(intent, UserHandle.ALL, in adapterPropertyChangedCallback()
[all …]
DAdapterService.java781 private AdapterService mService; field in AdapterService.AdapterServiceBinder
784 mService = svc; in AdapterServiceBinder()
787 mService = null; in cleanup()
792 if (mService != null && mService.isAvailable()) { in getService()
793 return mService; in getService()
848 (!Utils.checkCallerAllowManagedProfiles(mService))) { in getAddress()
893 if (!Utils.checkCallerAllowManagedProfiles(mService)) { in getScanMode()
958 if (!Utils.checkCallerAllowManagedProfiles(mService)) { in isDiscovering()
983 if (!Utils.checkCallerAllowManagedProfiles(mService)) { in getProfileConnectionState()
1040 if (!Utils.checkCallerAllowManagedProfiles(mService)) { in getRemoteName()
[all …]
/packages/apps/Terminal/src/com/android/terminal/
DTerminalActivity.java45 private TerminalService mService; field in TerminalActivity
53 mService = ((TerminalService.ServiceBinder) service).getService();
55 final int size = mService.getTerminals().size();
60 mService.createTerminal();
70 mService = null;
81 if (mService != null) {
82 return mService.getTerminals().size();
93 final Terminal term = mService.getTerminals().valueAt(position);
126 final int index = mService.getTerminals().indexOfKey(key);
141 return mService.getTerminals().valueAt(position).getTitle();
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
DEmailServiceProxy.java64 private IEmailService mService; field in EmailServiceProxy
97 mService = IEmailService.Stub.asInterface(binder); in onConnected()
124 mService.loadAttachment(cb, accountId, attachmentId, background); in loadAttachment()
154 mReturn = mService.validate(hostAuthCom); in validate()
186 mReturn = mService.autoDiscover(userName, password); in autoDiscover()
212 mService.updateFolderList(accountId); in updateFolderList()
228 mService.setLogging(flags); in setLogging()
245 mService.sendMeetingResponse(messageId, response); in sendMeetingResponse()
263 mService.deleteExternalAccountPIMData(emailAddress); in deleteExternalAccountPIMData()
292 mReturn = mService.searchMessages(accountId, searchParams, destMailboxId); in searchMessages()
[all …]
DPolicyServiceProxy.java31 private IPolicyService mService = null; field in PolicyServiceProxy
40 mService = IPolicyService.Stub.asInterface(binder); in onConnected()
53 mReturn = mService.isActive(arg0); in isActive()
82 mService.setAccountPolicy2(accountId, policy, securityKey, notify); in setAccountPolicy2()
92 mReturn = mService.canDisableCamera(); in canDisableCamera()
111 mService.remoteWipe(); in remoteWipe()
121 mService.setAccountHoldFlag(arg0, arg1); in setAccountHoldFlag()
/packages/apps/Calendar/src/com/android/calendar/
DDeleteEventHelper.java93 private AsyncQueryService mService; field in DeleteEventHelper
110 mService = new AsyncQueryService(mContext) { in DeleteEventHelper()
139 mService.startDelete(mService.getNextToken(), null, uri, null, null, Utils.UNDO_DELAY);
211 mService.startQuery(mService.getNextToken(), null, uri, EditEventHelper.EVENT_PROJECTION, in delete()
350 mService.startUpdate(mService.getNextToken(), null, uri, values, null, null, in deleteExceptionEvent()
391 mService.startInsert(mService.getNextToken(), null, Events.CONTENT_URI, values, in deleteRepeatingEvent()
397 mService.startDelete(mService.getNextToken(), null, uri, null, null, in deleteRepeatingEvent()
406 mService.startDelete(mService.getNextToken(), null, uri, null, null, in deleteRepeatingEvent()
431 mService.startUpdate(mService.getNextToken(), null, uri, values, null, null, in deleteRepeatingEvent()
DCalendarColorPickerDialog.java70 private QueryService mService; field in CalendarColorPickerDialog
145 if (color == mSelectedColor || mService == null) { in onColorSelected()
151 mService.startUpdate(mService.getNextToken(), null, ContentUris.withAppendedId( in onColorSelected()
226 mService = new QueryService(getActivity()); in onCreateDialog()
234 if (mService != null) { in startQuery()
236 mService.startQuery(TOKEN_QUERY_CALENDARS, null, in startQuery()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryPackInstallBroadcastReceiver.java47 final LatinIME mService; field in DictionaryPackInstallBroadcastReceiver
55 mService = null; in DictionaryPackInstallBroadcastReceiver()
59 mService = service; in DictionaryPackInstallBroadcastReceiver()
69 if (null == mService) { in onReceive()
92 mService.resetSuggestMainDict(); in onReceive()
101 if (null == mService) { in onReceive()
115 mService.resetSuggestMainDict(); in onReceive()
117 if (null == mService) { in onReceive()
122 mService.resetSuggestMainDict(); in onReceive()
124 if (null != mService) { in onReceive()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java57 private final AndroidSpellCheckerService mService; field in AndroidWordLevelSpellCheckerSession
102 mService = service; in AndroidWordLevelSpellCheckerSession()
124 final ContentResolver cres = mService.getContentResolver(); in onClose()
195 if (mService.isValidWord(mLocale, text)) return true; in isInDictForAnyCapitalization()
202 if (mService.isValidWord(mLocale, lowerCaseText)) return true; in isInDictForAnyCapitalization()
208 return mService.isValidWord(mLocale, in isInDictForAnyCapitalization()
232 if (!mService.hasMainDictionaryForLocale(mLocale)) { in onGetSuggestionsInternal()
244 if (!mService.isValidWord(mLocale, word)) { in onGetSuggestionsInternal()
256 return mService.isValidWord(mLocale, text) ? in onGetSuggestionsInternal()
275 final Keyboard keyboard = mService.getKeyboardForLocale(mLocale); in onGetSuggestionsInternal()
[all …]
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectVisibleCalendarsFragment.java70 private AsyncQueryService mService; field in SelectVisibleCalendarsFragment
86 mService = new AsyncQueryService(activity) { in onAttach()
150 mQueryToken = mService.getNextToken(); in onResume()
151 mService.startQuery(mQueryToken, null, Calendars.CONTENT_URI, PROJECTION, SELECTION, in onResume()
159 mUpdateToken = mService.getNextToken(); in toggleVisibility()
165 mService.startUpdate(mUpdateToken, null, uri, values, null, null, 0); in toggleVisibility()
171 if (mService != null) { in eventsChanged()
172 mService.cancelOperation(mQueryToken); in eventsChanged()
173 mQueryToken = mService.getNextToken(); in eventsChanged()
174 mService.startQuery(mQueryToken, null, Calendars.CONTENT_URI, PROJECTION, SELECTION, in eventsChanged()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DKeyChainServiceTest.java45 private IKeyChainService mService; field in KeyChainServiceTest
66 mService = IKeyChainService.Stub.asInterface(service);
73 mService = null;
198 if (mService == null) { in test_KeyChainService()
202 assertNotNull(mService); in test_KeyChainService()
208 mService.requestPrivateKey(alias1)); in test_KeyChainService()
210 byte[] certificate = mService.getCertificate(alias1); in test_KeyChainService()
218 mService.requestPrivateKey(alias2); in test_KeyChainService()
224 mService.getCertificate(alias2); in test_KeyChainService()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java42 private int mService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; field in HeadsetPhoneState
144 return mService; in getService()
221 int signal = mService == HeadsetHalConstants.NETWORK_STATE_AVAILABLE ? mSignal : 0; in sendDeviceStateChanged()
223 Log.d(TAG, "sendDeviceStateChanged. mService="+ mService + in sendDeviceStateChanged()
229 new HeadsetDeviceState(mService, mRoam, signal, mBatteryCharge)); in sendDeviceStateChanged()
239 mService = (serviceState.getState() == ServiceState.STATE_IN_SERVICE) ? in getPhoneStateListener()
252 if (mService == HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE) { in getPhoneStateListener()
354 int mService; field in HeadsetDeviceState
360 mService = service; in HeadsetDeviceState()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java79 private GattService mService; field in ScanManager
93 mService = service; in ScanManager()
198 Utils.enforceAdminPermission(mService); in handleStartScan()
224 Utils.enforceAdminPermission(mService); in handleStopScan()
236 mService.unregisterClient(client.clientIf); in handleStopScan()
241 Utils.enforceAdminPermission(mService); in handleFlushBatchResults()
365 mAlarmManager = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in ScanNative()
367 mBatchScanIntervalIntent = PendingIntent.getBroadcast(mService, 0, batchIntent, 0); in ScanNative()
385 mService.registerReceiver(mBatchAlarmReceiver, filter); in ScanNative()
611 mService.onScanManagerErrorCallback(client.clientIf, in stopRegularScan()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContext.java42 private final FakeContextHost mService; field in FakeContext
48 mService = service; in FakeContext()
68 if (mService == null) { in startService()
71 intent.getComponent().getClassName().equals(mService.getServiceClassName())) { in startService()
74 mService.startServiceForStub(intent); in startService()
77 mService.onStartCommandForStub(intent, 0, 0); in startService()
/packages/services/Telephony/src/com/android/phone/
DEmergencyCallbackModeExitDialog.java69 EmergencyCallbackModeService mService = null; field in EmergencyCallbackModeExitDialog
148 if (mService == null) {
159 if (mService != null) {
160 mEcmTimeout = mService.getEmergencyCallbackModeTimeout();
161 mInEmergencyCall = mService.getEmergencyCallbackModeCallState();
339 mService = ((EmergencyCallbackModeService.LocalBinder)service).getService();
347 mService = null;
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
DVpnTests.java95 private final IConnectivityManager mService = IConnectivityManager.Stub field in VpnTests
132 LegacyVpnInfo oldVpn = mService.getLegacyVpnInfo(UserHandle.myUserId()); in setUp()
139 mService.getLegacyVpnInfo(UserHandle.myUserId()) != null) { in setUp()
145 mService.getLegacyVpnInfo(UserHandle.myUserId())); in setUp()
209 mService.startLegacyVpn(profile); in connect()
220 mService.prepareVpn(VpnConfig.LEGACY_VPN, VpnConfig.LEGACY_VPN, UserHandle.myUserId()); in disconnect()
281 LegacyVpnInfo legacyVpnInfo = mService.getLegacyVpnInfo(UserHandle.myUserId()); in validateVpnConnection()
289 legacyVpnInfo = mService.getLegacyVpnInfo(UserHandle.myUserId()); in validateVpnConnection()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java113 private final HeadsetClientService mService; field in HeadsetClientStateMachine
319 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in sendCallChangedIntent()
1212 mService = context; in HeadsetClientStateMachine()
1228 mRingtone = RingtoneManager.getRingtone(mService, alert); in HeadsetClientStateMachine()
1389 Log.i(TAG, "Incoming AG rejected. priority=" + mService.getPriority(device) in processConnectionEvent()
1748 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1768 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1779 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1790 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
1801 mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM); in processMessage()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpSinkService.java154 private A2dpSinkService mService; field in A2dpSinkService.BluetoothA2dpSinkBinder
162 if (mService != null && mService.isAvailable()) { in getService()
163 return mService; in getService()
169 mService = svc; in BluetoothA2dpSinkBinder()
173 mService = null; in cleanup()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java298 private HealthService mService; field in HealthService.BluetoothHealthDeathRecipient
301 mService = service; in BluetoothHealthDeathRecipient()
307 mService.unregisterAppConfiguration(mConfig); in binderDied()
311 mService = null; in cleanup()
320 private HealthService mService; field in HealthService.BluetoothHealthBinder
323 mService = svc; in BluetoothHealthBinder()
327 mService = null; in cleanup()
337 if (mService != null && mService.isAvailable()) { in getService()
338 return mService; in getService()

123