Home
last modified time | relevance | path

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

12345

/packages/apps/Music/src/com/android/music/
DMediaPlaybackActivity.java76 private IMediaPlaybackService mService = null; field in MediaPlaybackActivity
267 artist = mService.getArtistName(); in onLongClick()
268 album = mService.getAlbumName(); in onLongClick()
269 song = mService.getTrackName(); in onLongClick()
270 audioid = mService.getAudioId(); in onLongClick()
360 if (!fromuser || (mService == null)) return;
366 mService.seek(mPosOverride);
411 if (mService == null) return;
413 if (mService.position() < 2000) {
414 mService.prev();
[all …]
DMediaPlaybackService.java2072 WeakReference<MediaPlaybackService> mService; field in MediaPlaybackService.ServiceStub
2075 mService = new WeakReference<MediaPlaybackService>(service); in ServiceStub()
2079 mService.get().open(path); in openFile()
2082 mService.get().open(list, position); in open()
2085 return mService.get().getQueuePosition(); in getQueuePosition()
2088 mService.get().setQueuePosition(index); in setQueuePosition()
2091 return mService.get().isPlaying(); in isPlaying()
2094 mService.get().stop(); in stop()
2097 mService.get().pause(); in pause()
2100 mService.get().play(); in play()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPowerManagementServiceTest.java39 private CarPowerManagementService mService; field in CarPowerManagementServiceTest
54 if (mService != null) { in tearDown()
55 mService.release(); in tearDown()
60 mService = new CarPowerManagementService(mPowerHal, mSystemInterface); in testBootComplete()
61 mService.init(); in testBootComplete()
62 mService.registerPowerEventListener(mPowerEventListener); in testBootComplete()
64 mService.registerPowerEventProcessingHandler(mPowerEventProcessingHandler); in testBootComplete()
70 mService = new CarPowerManagementService(mPowerHal, mSystemInterface); in testDisplayOff()
71 mService.init(); in testDisplayOff()
72 mService.registerPowerEventListener(mPowerEventListener); in testDisplayOff()
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DExportProcessor.java53 private final VCardService mService; field in ExportProcessor
68 Toast.makeText(mService,
77 mService = service; in ExportProcessor()
80 (NotificationManager)mService.getSystemService(Context.NOTIFICATION_SERVICE); in ExportProcessor()
101 FeedbackHelper.sendFeedback(mService, LOG_TAG, "Failed to process vcard export", e); in run()
130 mService.getString(R.string.fail_reason_could_not_open_file, in runInternal()
140 mService.getString(R.string.config_export_vcard_type)); in runInternal()
145 composer = new VCardComposer(mService, vcardType, true); in runInternal()
163 mService.getString(R.string.fail_reason_could_not_initialize_exporter, in runInternal()
172 mService.getString(R.string.fail_reason_no_exportable_contact); in runInternal()
[all …]
/packages/services/Car/car-lib/src/android/car/media/
DCarAudioManager.java129 private final ICarAudio mService; field in CarAudioManager
144 return mService.getAudioAttributesForCarUsage(carUsage); in getAudioAttributesForCarUsage()
164 return mService.getAudioAttributesForRadio(radioType); in getAudioAttributesForRadio()
183 return mService.getAudioAttributesForExternalSource(externalSourceType); in getAudioAttributesForExternalSource()
198 return mService.getSupportedExternalSourceTypes(); in getSupportedExternalSourceTypes()
213 return mService.getSupportedRadioTypes(); in getSupportedRadioTypes()
259 mService.setStreamVolume(streamType, index, flags); in setStreamVolume()
277 mService.setVolumeController(controller); in setVolumeController()
295 return mService.getStreamMaxVolume(stream); in getStreamMaxVolume()
313 return mService.getStreamMinVolume(stream); in getStreamMinVolume()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DFileOperationServiceTest.java62 private FileOperationService mService; field in FileOperationServiceTest
91 mService = getService(); in setUp()
93 assertNull(mService.executor); in setUp()
94 mService.executor = mExecutor; in setUp()
96 assertNull(mService.deletionExecutor); in setUp()
97 mService.deletionExecutor = mDeletionExecutor; in setUp()
99 assertNull(mService.handler); in setUp()
100 mService.handler = mHandler; in setUp()
102 assertNull(mService.foregroundManager); in setUp()
103 mService.foregroundManager = mForegroundManager; in setUp()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DTetherServiceTest.java48 private TetherService mService; field in TetherServiceTest
55 mService = new TetherService(); in setUp()
56 ReflectionHelpers.setField(mService, "mBase", mAppContext); in setUp()
57 mService.setHotspotOffReceiver(new HotspotOffReceiver(mContext)); in setUp()
62 mService.setHotspotOffReceiver(new HotspotOffReceiver(mAppContext)); in scheduleAlarm_shouldRegisterReceiver()
64 mService.scheduleAlarm(); in scheduleAlarm_shouldRegisterReceiver()
72 mService.scheduleAlarm(); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
75 ReflectionHelpers.setField(mService, "mCurrentTethers", tethers); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
77 mService.cancelAlarmIfNecessary(); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
84 ReflectionHelpers.setField(mService, "mCurrentTethers", tethers); in cancelAlarmIfNecessary_noActiveTethers_shouldUnregisterReceiver()
[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/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/TV/src/com/android/tv/tuner/exoplayer/ffmpeg/
DFfmpegDecoderClient.java43 private IFfmpegDecoder mService; field in FfmpegDecoderClient
53 mService = IFfmpegDecoder.Stub.asInterface(service);
56 mIsAvailable = mService.isAvailable();
68 mService = null;
110 sInstance.mService = null; in disconnect()
156 mService.create(); in createDecoder()
166 mService.release(); in releaseLocked()
184 mService.decode(sampleHolder.timeUs, sampleBytes); in decode()
195 mService.resetDecoderState(mimeType); in resetDecoderState()
206 byte[] outputBytes = mService.getDecodedSample(); in getDecodedSample()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java50 private IPdfRender mService; field in PdfRender
69 mService = IPdfRender.Stub.asInterface(service);
74 mService = null;
88 mService = null; in close()
98 if (mService == null) return 0; in openDocument()
107 return mService.openDocument(pfd); in openDocument()
121 if (mService == null) return null; in getPageSize()
124 return mService.getPageSize(page - 1); in getPageSize()
147 if (mService == null) return false; in renderPageStripe()
151 ParcelFileDescriptor input = mService.renderPageStripe(page - 1, y, width, height, in renderPageStripe()
[all …]
/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()
/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/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java69 private final ICarDiagnostic mService; field in CarDiagnosticManager
81 mService = ICarDiagnostic.Stub.asInterface(service); in CarDiagnosticManager()
189 mService.unregisterDiagnosticListener(frameType, in doUnregisterListenerLocked()
208 return mService.registerOrUpdateDiagnosticListener(frameType, rate, mListenerToService); in registerOrUpdateDiagnosticListener()
228 return mService.getLatestLiveFrame(); in getLatestLiveFrame()
249 return mService.getFreezeFrameTimestamps(); in getFreezeFrameTimestamps()
272 return mService.getFreezeFrame(timestamp); in getFreezeFrame()
294 return mService.clearFreezeFrames(timestamps); in clearFreezeFrames()
310 return mService.isLiveFrameSupported(); in isLiveFrameSupported()
326 return mService.isFreezeFrameNotificationSupported(); in isFreezeFrameNotificationSupported()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java74 private AdapterService mService; field in AdapterProperties
155 mService = service; in AdapterProperties()
175 mService.registerReceiver(mReceiver, filter); in init()
183 mService.unregisterReceiver(mReceiver); in cleanup()
186 mService = null; in cleanup()
208 return mService.setAdapterPropertyNative( in setName()
234 return mService.setAdapterPropertyNative( in setScanMode()
420 return mService.setAdapterPropertyNative( in setDiscoverableTimeout()
490 mService.sendBroadcastAsUser(intent, UserHandle.ALL, AdapterService.BLUETOOTH_PERM); in sendConnectionStateChange()
643 mService.sendBroadcastAsUser( in adapterPropertyChangedCallback()
[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/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/services/Car/libvehiclenetwork/libvehiclenetwork-audio-helper/src/
DVehicleNetworkAudioHelper.cpp53 mService = VehicleNetwork::createVehicleNetwork(listener); in init()
65 sp<VehiclePropertiesHolder> holder = mService->listProperties(VEHICLE_PROPERTY_AUDIO_FOCUS); in updatePropertiesLocked()
68 mService->subscribe(VEHICLE_PROPERTY_AUDIO_FOCUS, 0); in updatePropertiesLocked()
69 mService->getProperty(&mScratchValueFocus); in updatePropertiesLocked()
84 if (mService.get() == NULL) { in release()
87 mService = NULL; in release()
122 mService->setProperty(mScratchValueStreamState); in notifyStreamStarted()
146 mService->setProperty(mScratchValueStreamState); in notifyStreamStopped()
209 if (mService.get() == NULL) { // already released in onEvents()
238 if (mService.get() == NULL) { // already released in onHalRestart()
/packages/services/Car/car-lib/src/android/car/
DCarAppFocusManager.java114 private final IAppFocus mService; field in CarAppFocusManager
125 mService = IAppFocus.Stub.asInterface(service); in CarAppFocusManager()
150 mService.registerFocusListener(binder, appType); in addFocusListener()
171 mService.unregisterFocusListener(binder, appType); in removeFocusListener()
199 mService.unregisterFocusListener(binder, appType); in removeFocusListener()
213 return mService.getActiveAppTypes(); in getActiveAppTypes()
235 return mService.isOwningFocus(binder, appType); in isOwningFocus()
269 return mService.requestAppFocus(binder, appType); in requestAppFocus()
295 mService.abandonAppFocus(binder, appType); in abandonAppFocus()
323 mService.abandonAppFocus(binder, appType); in abandonAppFocus()
/packages/services/Car/car-lib/src/android/car/navigation/
DCarNavigationStatusManager.java178 private final IInstrumentClusterNavigation mService; field in CarNavigationStatusManager
186 mService = IInstrumentClusterNavigation.Stub.asInterface(service); in CarNavigationStatusManager()
196 mService.onStartNavigation(); in sendNavigationStatus()
198 mService.onStopNavigation(); in sendNavigationStatus()
237 mService.onNextManeuverChanged(turnEvent, eventName, turnAngle, turnNumber, image, in sendNavigationTurnEvent()
265 mService.onNextManeuverDistanceChanged(distanceMeters, timeSeconds, in sendNavigationTurnDistanceEvent()
288 mService.onEvent(eventType, bundle); in sendEvent()
305 return mService.getInstrumentClusterInfo(); in getInstrumentClusterInfo()
/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/mapclient/
DMapClientService.java209 private MapClientService mService; field in MapClientService.Binder
213 mService = service; in Binder()
222 if (mService != null && mService.isAvailable()) { in getService()
223 mService.enforceCallingOrSelfPermission(BLUETOOTH_PERM, in getService()
225 return mService; in getService()
231 mService = null; in cleanup()
294 mService.enforceCallingOrSelfPermission(Manifest.permission.SEND_SMS, in sendMessage()
303 mService.enforceCallingOrSelfPermission(Manifest.permission.READ_SMS, in getUnreadMessages()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetPhoneState.java48 private int mService = HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; field in HeadsetPhoneState
167 return mService; in getService()
243 mIsSimStateLoaded ? mService : HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE; in sendDeviceStateChanged()
248 Log.d(TAG, "sendDeviceStateChanged. mService="+ mService + in sendDeviceStateChanged()
270 if (newService == mService && newRoam == mRoam) { in getPhoneStateListener()
274 mService = newService; in getPhoneStateListener()
307 if (mService == HeadsetHalConstants.NETWORK_STATE_NOT_AVAILABLE) { in getPhoneStateListener()
410 int mService; field in HeadsetDeviceState
416 mService = service; in HeadsetDeviceState()
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java37 private final CarPackageManagerService mService; field in AppBlockingPolicyProxy
62 mService.onPolicyConnectionFailure(AppBlockingPolicyProxy.this);
68 mService = service; in AppBlockingPolicyProxy()
72 mHandler = new Handler(mService.getLooper()); in AppBlockingPolicyProxy()
119 mService.onPolicyConnectionFailure(this); in onServiceConnected()
141 mService.onPolicyConnectionFailure(this); in onServiceDisconnected()
160 mService.onPolicyConnectionAndSet(AppBlockingPolicyProxy.this, policy); in setAppBlockingPolicy()

12345