Home
last modified time | relevance | path

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

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMediaNotificationManager.java54 private final MusicService mService; field in MediaNotificationManager
74 mService = service; in MediaNotificationManager()
77 mNotificationColor = ResourceHelper.getThemeColor(mService, in MediaNotificationManager()
80 mNotificationManager = (NotificationManager) mService in MediaNotificationManager()
83 String pkg = mService.getPackageName(); in MediaNotificationManager()
84 mPauseIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
86 mPlayIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
88 mPreviousIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
90 mNextIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
117 mService.registerReceiver(this, filter); in startNotification()
[all …]
DPlayback.java63 private final MusicService mService; field in Playback
90 mService.startService(i);
97 this.mService = service; in Playback()
417 mMediaPlayer.setWakeMode(mService.getApplicationContext(), in createMediaPlayerIfNeeded()
441 mService.stopForeground(true); in relaxResources()
458 mService.registerReceiver(mAudioNoisyReceiver, mAudioNoisyIntentFilter); in registerAudioNoisyReceiver()
465 mService.unregisterReceiver(mAudioNoisyReceiver); in unregisterAudioNoisyReceiver()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DMediaNotificationManager.java57 private final MediaBrowserServiceSupport mService; field in MediaNotificationManager
77 mService = service; in MediaNotificationManager()
80 mNotificationColor = ResourceHelper.getThemeColor(mService, in MediaNotificationManager()
83 mNotificationManager = NotificationManagerCompat.from(mService); in MediaNotificationManager()
85 String pkg = mService.getPackageName(); in MediaNotificationManager()
86 mPauseIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
88 mPlayIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
90 mPreviousIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
92 mNextIntent = PendingIntent.getBroadcast(mService, REQUEST_CODE, in MediaNotificationManager()
119 mService.registerReceiver(this, filter); in startNotification()
[all …]
DPlayback.java64 private final MediaBrowserServiceSupport mService; field in Playback
91 mService.startService(i);
98 this.mService = service; in Playback()
418 mMediaPlayer.setWakeMode(mService.getApplicationContext(), in createMediaPlayerIfNeeded()
442 mService.stopForeground(true); in relaxResources()
459 mService.registerReceiver(mAudioNoisyReceiver, mAudioNoisyIntentFilter); in registerAudioNoisyReceiver()
466 mService.unregisterReceiver(mAudioNoisyReceiver); in unregisterAudioNoisyReceiver()
/development/samples/Alarm/tests/src/com/example/android/newalarm/
DAlarmServiceTest.java32 AlarmService mService; field in AlarmServiceTest
74 mService = this.getService(); in testServiceCreate()
77 assertNotNull(mService.mNotificationManager); in testServiceCreate()
80 assertNotNull(mService.mContentIntent); in testServiceCreate()
83 assertNotNull(mService.mNotification); in testServiceCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DMessengerServiceActivities.java35 Messenger mService = null; field in MessengerServiceActivities.Binding
73 mService = new Messenger(service);
82 mService.send(msg);
87 mService.send(msg);
103 mService = null;
126 if (mService != null) { in doUnbindService()
131 mService.send(msg); in doUnbindService()
DIsolatedService.java111 IRemoteService mService; field in IsolatedService.Controller.ServiceInfo
167 mService = IRemoteService.Stub.asInterface(service);
176 mService = null;
DRemoteService.java271 IRemoteService mService = null; field in RemoteService.Binding
314 mService = IRemoteService.Stub.asInterface(service);
321 mService.registerCallback(mCallback);
337 mService = null;
386 if (mService != null) {
388 mService.unregisterCallback(mCallback);
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DNsdHelper.java38 NsdServiceInfo mService; field in NsdHelper
75 if (mService == service) { in initializeDiscoveryListener()
76 mService = null; in initializeDiscoveryListener()
113 mService = serviceInfo; in initializeResolveListener()
176 return mService; in getChosenServiceInfo()
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMessagingFragment.java51 private Messenger mService; field in MessagingFragment
57 mService = new Messenger(service);
64 mService = null;
157 mService.send(msg); in sendMsg()
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/
DCandidateView.java36 private SoftKeyboard mService; field in CandidateView
128 mService = listener; in setService()
282 mService.pickSuggestionManually(mSelectedIndex); in onTouchEvent()
291 mService.pickSuggestionManually(mSelectedIndex); in onTouchEvent()
312 mService.pickSuggestionManually(mSelectedIndex); in takeSuggestionAt()