Home
last modified time | relevance | path

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

123456

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java64 private HearingAidService mService; field in HearingAidServiceTest
98 mService.mHearingAidNativeInterface = mNativeInterface; in setUp()
99 mService.mAudioManager = mAudioManager; in setUp()
139 mService = HearingAidService.getHearingAidService(); in startService()
140 Assert.assertNotNull(mService); in startService()
145 mService = HearingAidService.getHearingAidService(); in stopService()
146 Assert.assertNull(mService); in stopService()
190 Assert.assertEquals(mService, HearingAidService.getHearingAidService()); in testGetHearingAidService()
203 Assert.assertTrue(mService.stop()); in testStopHearingAidService()
209 Assert.assertTrue(mService.start()); in testStopHearingAidService()
[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.java89 private final ICarAudio mService; field in CarAudioManager
115 return mService.isDynamicRoutingEnabled(); in isDynamicRoutingEnabled()
148 mService.setGroupVolume(zoneId, groupId, index, flags); in setGroupVolume()
178 return mService.getGroupMaxVolume(zoneId, groupId); in getGroupMaxVolume()
208 return mService.getGroupMinVolume(zoneId, groupId); in getGroupMinVolume()
241 return mService.getGroupVolume(zoneId, groupId); in getGroupVolume()
260 mService.setFadeTowardFront(value); in setFadeTowardFront()
279 mService.setBalanceTowardRight(value); in setBalanceTowardRight()
301 return mService.getExternalSources(); in getExternalSources()
331 return mService.createAudioPatch(sourceAddress, usage, gainInMillibels); in createAudioPatch()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientTest.java54 private MapClientService mService = null; field in MapClientTest
73 mService = MapClientService.getMapClientService(); in setUp()
74 Assert.assertNotNull(mService); in setUp()
86 mService = MapClientService.getMapClientService(); in tearDown()
87 Assert.assertNull(mService); in tearDown()
92 if (!mService.getInstanceMap().isEmpty()) { in cleanUpInstanceMap()
93 List<BluetoothDevice> deviceList = mService.getConnectedDevices(); in cleanUpInstanceMap()
95 mService.disconnect(d); in cleanUpInstanceMap()
98 Assert.assertTrue(mService.getInstanceMap().isEmpty()); in cleanUpInstanceMap()
124 Assert.assertNull(mService.getInstanceMap().get(device)); in testConnect()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/tether/
DTetherServiceTest.java52 private TetherService mService; field in TetherServiceTest
58 mService = new TetherService(); in setUp()
59 ReflectionHelpers.setField(mService, "mBase", mAppContext); in setUp()
60 mService.setHotspotOffReceiver(new HotspotOffReceiver(mContext)); in setUp()
65 mService.setHotspotOffReceiver(new HotspotOffReceiver(mAppContext)); in scheduleAlarm_shouldRegisterReceiver()
67 mService.scheduleAlarm(); in scheduleAlarm_shouldRegisterReceiver()
82 mService.scheduleAlarm(); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
85 ReflectionHelpers.setField(mService, "mCurrentTethers", tethers); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
87 mService.cancelAlarmIfNecessary(); in cancelAlarmIfNecessary_hasActiveTethers_shouldNotUnregisterReceiver()
94 ReflectionHelpers.setField(mService, "mCurrentTethers", tethers); in cancelAlarmIfNecessary_noActiveTethers_shouldUnregisterReceiver()
[all …]
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java99 private IpMemoryStoreService mService; field in IpMemoryStoreServiceTest
110 mService = new IpMemoryStoreService(mMockContext) { in setUp()
128 mService.shutdown(); in tearDown()
302 doLatched(timeoutMessage, latch -> mService.storeNetworkAttributes(l2Key, na.toParcelable(),
316 doLatched(timeoutMessage, latch -> mService.storeBlob(l2Key, TEST_CLIENT_ID, TEST_DATA_NAME,
334 mService.mDb,
342 mService.mDb, "fakeKey" + i, TEST_CLIENT_ID, TEST_DATA_NAME,
348 assertTrue(mService.isDbSizeOverThreshold());
373 mService.retrieveNetworkAttributes(l2Key, onNetworkAttributesRetrieved(
389 mService.retrieveNetworkAttributes(l2Key, onNetworkAttributesRetrieved(
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/services/
DFileOperationServiceTest.java64 private FileOperationService mService; field in FileOperationServiceTest
93 mService = getService(); in setUp()
95 assertNull(mService.executor); in setUp()
96 mService.executor = mExecutor; in setUp()
98 assertNull(mService.deletionExecutor); in setUp()
99 mService.deletionExecutor = mDeletionExecutor; in setUp()
101 assertNull(mService.handler); in setUp()
102 mService.handler = mHandler; in setUp()
104 assertNull(mService.foregroundManager); in setUp()
105 mService.foregroundManager = mForegroundManager; in setUp()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java78 private BluetoothPbapService mService; field in PbapStateMachine
97 mService = service; in PbapStateMachine()
157 mService.sendBroadcastAsUser(intent, UserHandle.ALL, in broadcastConnectionState()
221 mService.checkOrGetPhonebookPermission(PbapStateMachine.this); in processMessage()
243 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in rejectConnection()
312 mService.sendBroadcast(i); in processMessage()
337 new BluetoothPbapObexServer(mServiceHandler, mService, PbapStateMachine.this); in startObexServerSession()
358 (NotificationManager) mService.getSystemService(Context.NOTIFICATION_SERVICE); in createPbapNotification()
361 mService.getString(R.string.pbap_notification_group), in createPbapNotification()
367 clickIntent.setClass(mService, BluetoothPbapActivity.class); in createPbapNotification()
[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/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsManagerServiceTest.java69 private CarUxRestrictionsManagerService mService; field in CarUxRestrictionsManagerServiceTest
96 mService = new CarUxRestrictionsManagerService(mSpyContext, in setUp()
102 mService = null; in tearDown()
111 assertTrue(mService.saveUxRestrictionsConfigurationForNextBoot(Arrays.asList(config))); in testSaveConfig_WriteStagedFile()
122 assertFalse(mService.saveUxRestrictionsConfigurationForNextBoot(Arrays.asList(spyConfig))); in testSaveConfig_ReturnFalseOnException()
132 for (CarUxRestrictionsConfiguration config : mService.loadConfig()) { in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
133 assertTrue(config.equals(mService.createDefaultConfig(config.getPhysicalPort()))); in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
143 List<CarUxRestrictionsConfiguration> actual = mService.loadConfig(); in testLoadConfig_UseXml()
153 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_UseProdConfig()
166 CarUxRestrictionsConfiguration actual = mService.loadConfig().get(0); in testLoadConfig_PromoteStagedFileWhenParked()
[all …]
DSystemActivityMonitoringServiceTest.java55 private SystemActivityMonitoringService mService; field in SystemActivityMonitoringServiceTest
62 mService = new SystemActivityMonitoringService(getContext()); in setUp()
63 mService.registerActivityLaunchListener( in setUp()
69 mService.registerActivityLaunchListener(null); in tearDown()
70 mService = null; in tearDown()
76 mService.registerActivityLaunchListener(new FilteredLaunchListener(activityA)); in testActivityLaunch()
81 mService.registerActivityLaunchListener(new FilteredLaunchListener(activityB)); in testActivityLaunch()
94 mService.registerActivityLaunchListener(new FilteredLaunchListener(blackListedActivity)); in testActivityBlocking()
99 mService.registerActivityLaunchListener(new FilteredLaunchListener(blockingActivity)); in testActivityBlocking()
100 mService.blockActivity(mTopTaskInfo[0], blockingIntent); in testActivityBlocking()
[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 …]
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java51 private IPdfRender mService; field in PdfRender
71 mService = IPdfRender.Stub.asInterface(service);
76 mService = null;
90 mService = null; in close()
103 if (mService == null) { in openDocument()
114 return mService.openDocument(pfd); in openDocument()
128 if (mService == null) { in getPageSize()
133 return mService.getPageSize(page - 1); in getPageSize()
156 if (mService == null) { in renderPageStripe()
162 ParcelFileDescriptor input = mService.renderPageStripe(page - 1, y, width, height, in renderPageStripe()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/
DDevelopmentTilesTest.java51 private DevelopmentTiles mService; field in DevelopmentTilesTest
56 mService = spy(Robolectric.setupService(DevelopmentTiles.ShowLayout.class)); in setUp()
60 doReturn(mTile).when(mService).getQsTile(); in setUp()
66 mService.getPackageName(), mService.getClass().getName()); in refresh_devOptionIsDisabled_shouldResetTileValue()
67 doReturn(mPackageManager).when(mService).getPackageManager(); in refresh_devOptionIsDisabled_shouldResetTileValue()
69 DevelopmentSettingsEnabler.setDevelopmentSettingsEnabled(mService, false); in refresh_devOptionIsDisabled_shouldResetTileValue()
70 mService.setIsEnabled(true); in refresh_devOptionIsDisabled_shouldResetTileValue()
72 mService.refresh(); in refresh_devOptionIsDisabled_shouldResetTileValue()
77 assertThat(mService.isEnabled()).isFalse(); in refresh_devOptionIsDisabled_shouldResetTileValue()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java96 protected final AvrcpControllerService mService; field in AvrcpControllerStateMachine
123 mService = service; in AvrcpControllerStateMachine()
209 mService.sBrowseTree.mRootNode.addChild(mBrowseTree.mRootNode); in onBrowsingConnected()
210 BluetoothMediaBrowserService.notifyChanged(mService in onBrowsingConnected()
225 pbb.setErrorMessage(mService.getString(R.string.bluetooth_disconnected)); in onBrowsingDisconnected()
227 mService.sBrowseTree.mRootNode.removeChild( in onBrowsingDisconnected()
229 BluetoothMediaBrowserService.notifyChanged(mService in onBrowsingDisconnected()
268 mService.removeStateMachine(AvrcpControllerStateMachine.this); in processMessage()
379 mService.playItemNative( in playItem()
389 mService.sendPassThroughCommandNative( in passThru()
[all …]
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java67 private final ICarDiagnostic mService; field in CarDiagnosticManager
79 mService = ICarDiagnostic.Stub.asInterface(service); in CarDiagnosticManager()
184 mService.unregisterDiagnosticListener(frameType, in doUnregisterListenerLocked()
198 return mService.registerOrUpdateDiagnosticListener(frameType, rate, mListenerToService); in registerOrUpdateDiagnosticListener()
213 return mService.getLatestLiveFrame(); in getLatestLiveFrame()
230 return mService.getFreezeFrameTimestamps(); in getFreezeFrameTimestamps()
247 return mService.getFreezeFrame(timestamp); in getFreezeFrame()
265 return mService.clearFreezeFrames(timestamps); in clearFreezeFrames()
277 return mService.isLiveFrameSupported(); in isLiveFrameSupported()
289 return mService.isFreezeFrameNotificationSupported(); in isFreezeFrameNotificationSupported()
[all …]
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DCarStorageMonitoringManager.java44 private final ICarStorageMonitoring mService; field in CarStorageMonitoringManager
81 mService = ICarStorageMonitoring.Stub.asInterface(service); in CarStorageMonitoringManager()
113 return mService.getPreEolIndicatorStatus(); in getPreEolIndicatorStatus()
131 return mService.getWearEstimate(); in getWearEstimate()
151 return mService.getWearEstimateHistory(); in getWearEstimateHistory()
170 return mService.getBootIoStats(); in getBootIoStats()
200 return mService.getShutdownDiskWriteAmount(); in getShutdownDiskWriteAmount()
217 return mService.getAggregateIoStats(); in getAggregateIoStats()
237 return mService.getIoStatsDeltas(); in getIoStatsDeltas()
258 mService.registerListener(mListenerToService); in registerListener()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/gatt/
DGattServiceTest.java34 private GattService mService; field in GattServiceTest
48 mService = GattService.getGattService(); in setUp()
49 Assert.assertNotNull(mService); in setUp()
58 mService = GattService.getGattService(); in tearDown()
59 Assert.assertNull(mService); in tearDown()
73 mService = GattService.getGattService(); in testServiceUpAndDown()
74 Assert.assertNull(mService); in testServiceUpAndDown()
80 mService = GattService.getGattService(); in testServiceUpAndDown()
81 Assert.assertNotNull(mService); in testServiceUpAndDown()
87 long timestampNanos = mService.parseTimestampNanos(new byte[]{ in testParseBatchTimestamp()
/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/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java96 private AdapterService mService; field in AdapterProperties
183 mService = service; in AdapterProperties()
192 int configDefaultMaxConnectedAudioDevices = mService.getResources().getInteger( in init()
224 mService.registerReceiver(mReceiver, filter); in init()
232 mService.unregisterReceiver(mReceiver); in cleanup()
235 mService = null; in cleanup()
257 return mService.setAdapterPropertyNative(AbstractionLayer.BT_PROPERTY_BDNAME, in setName()
278 mService.setAdapterPropertyNative(AbstractionLayer.BT_PROPERTY_CLASS_OF_DEVICE, in setBluetoothClass()
300 boolean result = mService.setAdapterPropertyNative( in setIoCapability()
319 boolean result = mService.setAdapterPropertyNative( in setLeIoCapability()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionServiceTest.java90 private CarProjectionService mService; field in CarProjectionServiceTest
109 mService = new CarProjectionService(mContext, mHandler, mCarInputService, in setUp()
117 mService.registerProjectionStatusListener(new ICarProjectionStatusListener.Stub() { in updateProjectionStatus_defaultState()
135 mService.updateProjectionStatus(status, mToken); in updateProjectionStatus_subscribeAfterUpdate()
139 mService.registerProjectionStatusListener(new ICarProjectionStatusListener.Stub() { in updateProjectionStatus_subscribeAfterUpdate()
183 mService.registerProjectionStatusListener(new ICarProjectionStatusListener.Stub() { in updateProjectionStatus_subscribeBeforeUpdate()
198 mService.updateProjectionStatus(createProjectionStatus(), mToken); in updateProjectionStatus_subscribeBeforeUpdate()
217 Bundle bundle = mService.getProjectionOptions(); in getProjectionOptions_defaults()
242 Bundle bundle = mService.getProjectionOptions(); in getProjectionOptions_nonDefaults()
259 int[] wifiChannels = mService.getAvailableWifiChannels(WifiScanner.WIFI_BAND_BOTH_WITH_DFS); in getWifiChannels()
[all …]
/packages/services/Car/car-lib/src/android/car/content/pm/
DCarPackageManager.java72 private final ICarPackageManager mService; field in CarPackageManager
77 mService = ICarPackageManager.Stub.asInterface(service); in CarPackageManager()
116 mService.setAppBlockingPolicy(packageName, policy, flags); in setAppBlockingPolicy()
129 mService.restartTask(taskId); in restartTask()
152 return mService.isActivityBackedBySafeActivity(activityName); in isActivityBackedBySafeActivity()
166 mService.setEnableActivityBlocking(enable); in setEnableActivityBlocking()
182 return mService.isActivityDistractionOptimized(packageName, className); in isActivityDistractionOptimized()
198 return mService.isServiceDistractionOptimized(packageName, className); in isServiceDistractionOptimized()
/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/car-lib/src/android/car/
DCarProjectionManager.java196 private final ICarProjection mService; field in CarProjectionManager
245 mService = ICarProjection.Stub.asInterface(service); in CarProjectionManager()
445 mService.registerKeyEventHandler(mBinderHandler, eventMask); in updateHandledEventsLocked()
448 mService.unregisterKeyEventHandler(mBinderHandler); in updateHandledEventsLocked()
467 mService.registerProjectionRunner(serviceIntent); in registerProjectionRunner()
484 mService.unregisterProjectionRunner(serviceIntent); in unregisterProjectionRunner()
514 mService.startProjectionAccessPoint(proxy.getMessenger(), mAccessPointProxyToken); in startProjectionAccessPoint()
531 int[] channels = mService.getAvailableWifiChannels(band); in getAvailableWifiChannels()
557 mService.stopProjectionAccessPoint(mAccessPointProxyToken); in stopProjectionAccessPoint()
576 return mService.requestBluetoothProfileInhibit(device, profile, mToken); in requestBluetoothProfileInhibit()
[all …]
DCarAppFocusManager.java116 private final IAppFocus mService; field in CarAppFocusManager
127 mService = IAppFocus.Stub.asInterface(service); in CarAppFocusManager()
150 mService.registerFocusListener(binder, appType); in addFocusListener()
170 mService.unregisterFocusListener(binder, appType); in removeFocusListener()
197 mService.unregisterFocusListener(binder, appType); in removeFocusListener()
210 return mService.getActiveAppTypes(); in getActiveAppTypes()
230 return mService.isOwningFocus(binder, appType); in isOwningFocus()
262 return mService.requestAppFocus(binder, appType); in requestAppFocus()
287 mService.abandonAppFocus(binder, appType); in abandonAppFocus()
314 mService.abandonAppFocus(binder, appType); in abandonAppFocus()

123456