/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
SuggestionServiceTest.java | 17 package android.service.settings.suggestions; 61 // Do nothing after starting service. 67 MockSuggestionService service = new MockSuggestionService(); local 72 assertThat(service.sOnSuggestionDismissedCalled).isTrue(); 78 MockSuggestionService service = new MockSuggestionService(); local 83 assertThat(service.sOnSuggestionLaunchedCalled).isTrue();
|
/frameworks/base/services/core/java/com/android/server/am/ |
AppBindRecord.java | 25 * An association between a service and one of its client applications. 28 final ServiceRecord service; // The running service. field in class:AppBindRecord 30 final ProcessRecord client; // Who has started/bound the service. 36 pw.println(prefix + "service=" + service); 54 service = _service; 62 + " " + service.shortName + ":" + client.processName + "}"; 67 proto.write(AppBindRecordProto.SERVICE_NAME, service.shortName);
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
MainInteractionService.java | 22 import android.service.voice.AlwaysOnHotwordDetector; 23 import android.service.voice.AlwaysOnHotwordDetector.Callback; 24 import android.service.voice.AlwaysOnHotwordDetector.EventPayload; 25 import android.service.voice.VoiceInteractionService; 26 import android.service.voice.VoiceInteractionSession;
|
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/accessibility/ |
AccessibilityManagerSupportActivity.java | 21 import android.app.Service; 49 /** Handle to the accessibility manager service. */ 63 Service.ACCESSIBILITY_SERVICE); 106 AccessibilityServiceInfo service = enabledServices.get(i); local 108 // an accessibility service. Again accessed them via the support library. 109 ResolveInfo resolveInfo = service.getResolveInfo(); 113 AccessibilityServiceInfoCompat.feedbackTypeToString(service.feedbackType), 115 service, getPackageManager()), 116 service.getSettingsActivityName());
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetService.java | 61 * Provides Bluetooth Headset and Handsfree profile, as a service in the Bluetooth application. 69 * using the correct API or just {@link #disconnectAudio()} if user is a system service, before 140 // Step 1: Get adapter service, should never be null 167 // Step 7: Mark service as started 182 // Step 7: Mark service as stopped 236 * Checks if this service object is able to accept binder calls 398 * Handlers for incoming service calls 414 final HeadsetService service = mService; local 415 if (!Utils.checkCallerAllowManagedProfiles(service)) { 419 if (service == null) 432 HeadsetService service = getService(); local 441 HeadsetService service = getService(); local 450 HeadsetService service = getService(); local 459 HeadsetService service = getService(); local 468 HeadsetService service = getService(); local 477 HeadsetService service = getService(); local 486 HeadsetService service = getService(); local 495 HeadsetService service = getService(); local 504 HeadsetService service = getService(); local 513 HeadsetService service = getService(); local 522 HeadsetService service = getService(); local 531 HeadsetService service = getService(); local 540 HeadsetService service = getService(); local 549 HeadsetService service = getService(); local 558 HeadsetService service = getService(); local 567 HeadsetService service = getService(); local 576 HeadsetService service = getService(); local 585 HeadsetService service = getService(); local 594 HeadsetService service = getService(); local 604 HeadsetService service = getService(); local 614 HeadsetService service = getService(); local 624 HeadsetService service = getService(); local 633 HeadsetService service = getService(); local 642 HeadsetService service = getService(); local 651 HeadsetService service = getService(); local [all...] |
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/ |
ClusterInCallService.java | 91 private PhoneCallback(ClusterInCallService service) { 92 mServiceRef = new WeakReference<>(service); 98 ClusterInCallService service = mServiceRef.get(); local 99 if (service != null) { 100 service.doStateChanged(call, state);
|
/system/libhwbinder/vts/performance/ |
Benchmark_binder.cpp | 64 BenchmarkServiceAidl *service = new BenchmarkServiceAidl(); local 68 service); local 74 sp<IBenchmark> service; local 83 status_t status = getService(String16(kServiceName), &service); 85 state.SkipWithError("Failed to retrieve benchmark service."); 89 service->sendVec(data_vec, &data_return);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowApplicationTest.java | 135 // service. 172 TestService service = new TestService(); local 176 RuntimeEnvironment.application.bindService(new Intent(""), service, Context.BIND_AUTO_CREATE); 177 assertThat(service.name).isEqualTo(expectedComponentName); 178 assertThat(service.service).isEqualTo(expectedBinder); 179 assertThat(service.nameUnbound).isNull(); 180 RuntimeEnvironment.application.unbindService(service); 181 assertThat(service.nameUnbound).isEqualTo(expectedComponentName); 186 TestService service = new TestService() local 200 TestService service = new TestService(); local 214 TestService service = new TestService(); local 230 TestService service = new TestService(); local 245 TestService service = new TestService(); local 261 TestService service = new TestService(); local 281 TestService service = new TestService(); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/ |
HidDeviceService.java | 243 BluetoothHidDeviceDeathRecipient(HidDeviceService service) { 244 mService = service; 277 BluetoothHidDeviceBinder(HidDeviceService service) { 278 mService = service; 315 HidDeviceService service = getService(); local 316 if (service == null) { 320 return service.registerApp(sdp, inQos, outQos, callback); 329 HidDeviceService service = getService(); local 330 if (service == null) { 334 return service.unregisterApp() 343 HidDeviceService service = getService(); local 357 HidDeviceService service = getService(); local 371 HidDeviceService service = getService(); local 385 HidDeviceService service = getService(); local 399 HidDeviceService service = getService(); local 413 HidDeviceService service = getService(); local 427 HidDeviceService service = getService(); local 451 HidDeviceService service = getService(); local 461 HidDeviceService service = getService(); local [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpService.java | 54 * Provides Bluetooth A2DP profile, as a service in the Bluetooth application. 152 // Step 9: Mark service as started 177 // Step 8: Mark service as stopped 228 Log.w(TAG, "getA2dpService(): service is null"); 232 Log.w(TAG, "getA2dpService(): service is not available"); 361 // If priority is undefined, it is likely that service discovery has not completed and peer 372 // Otherwise, reject the connection if no service discovery is pending and priority is 538 // Inform the Audio Service about the codec configuration 539 // change, so the Audio Service can reset accordingly the audio 590 // service to the new AVRCP Profile and have the audio manager use that instead 1035 A2dpService service = getService(); local 1044 A2dpService service = getService(); local 1053 A2dpService service = getService(); local 1062 A2dpService service = getService(); local 1071 A2dpService service = getService(); local 1080 A2dpService service = getService(); local 1089 A2dpService service = getService(); local 1098 A2dpService service = getService(); local 1107 A2dpService service = getService(); local 1116 A2dpService service = getService(); local 1125 A2dpService service = getService(); local 1134 A2dpService service = getService(); local 1143 A2dpService service = getService(); local 1153 A2dpService service = getService(); local 1162 A2dpService service = getService(); local 1171 A2dpService service = getService(); local 1179 A2dpService service = getService(); local 1187 A2dpService service = getService(); local 1195 A2dpService service = getService(); local [all...] |
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/ |
AuthActivity.java | 16 package com.example.android.autofill.service; 24 import android.service.autofill.Dataset; 25 import android.service.autofill.FillResponse; 35 import com.example.android.autofill.service.datasource.SharedPrefsAutofillRepository; 36 import com.example.android.autofill.service.model.FilledAutofillFieldCollection; 37 import com.example.android.autofill.service.settings.MyPreferences; 43 import static com.example.android.autofill.service.CommonUtil.EXTRA_DATASET_NAME; 44 import static com.example.android.autofill.service.CommonUtil.EXTRA_FOR_RESPONSE; 45 import static com.example.android.autofill.service.CommonUtil.TAG; 48 * This Activity controls the UI for logging in to the Autofill service [all...] |
/external/autotest/client/site_tests/peerd_DiscoverServices/ |
peerd_DiscoverServices.py | 27 PEER_SERVICES = [FakeService('test-service-0', 32 FakeService('test-service-1', 42 'services': '.'.join([service.service_id 43 for service in PEER_SERVICES]) 95 service = None 98 service = s 101 logging.debug('No service %s found.', service_id) 103 if service.service_info != info: 104 logging.debug('Invalid info found for service %s, ' 106 info, service.service_info [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
NotificationAccessSettings.java | 28 import android.service.notification.NotificationListenerService; 72 protected boolean setEnabled(ComponentName service, String title, boolean enable) { 73 logSpecialPermissionChange(enable, service.getPackageName()); 75 if (!isServiceEnabled(service)) { 80 .setServiceInfo(service, title, this) 84 if (isServiceEnabled(service)) { 89 .setServiceInfo(service, title, this) 101 protected void enable(ComponentName service) { 102 mNm.setNotificationListenerAccessGranted(service, true);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/ |
NotificationAccess.java | 28 import android.service.notification.NotificationListenerService; 109 for (ServiceInfo service : services) { 110 final ComponentName cn = new ComponentName(service.packageName, service.name); 114 service.packageName, 0).loadLabel(mPackageManager); 119 final String summary = service.loadLabel(mPackageManager).toString(); 122 pref.setIcon(mIconDrawableFactory.getBadgedIcon(service, service.applicationInfo, 123 UserHandle.getUserId(service.applicationInfo.uid)));
|
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/ |
LocalAutofillDataSource.java | 17 package com.example.android.autofill.service.data.source.local; 20 import android.service.autofill.Dataset; 22 import com.example.android.autofill.service.data.DataCallback; 23 import com.example.android.autofill.service.data.source.AutofillDataSource; 24 import com.example.android.autofill.service.data.source.local.dao.AutofillDao; 25 import com.example.android.autofill.service.model.AutofillDataset; 26 import com.example.android.autofill.service.model.AutofillHint; 27 import com.example.android.autofill.service.model.DatasetWithFilledAutofillFields; 28 import com.example.android.autofill.service.model.FieldType; 29 import com.example.android.autofill.service.model.FieldTypeWithHeuristics [all...] |
/external/autotest/client/site_tests/cellular_DisconnectFailure/ |
cellular_DisconnectFailure.py | 154 @return True, if service is connected. 157 service = self.test_env.shill.find_cellular_service_object() 158 properties = service.GetProperties(utf8_strings=True) 165 @return True, if service is disconnected. 168 service = self.test_env.shill.find_cellular_service_object() 169 properties = service.GetProperties(utf8_strings=True) 202 Fails if the service doesn't remain connected. 210 # Connect to the service. 211 service = self.test_env.shill.find_cellular_service_object() 213 service, CONNECT_DISCONNECT_TIMEOUT [all...] |
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
MoreExecutorsTest.java | 270 ListeningExecutorService service = local 272 assertSame(service, listeningDecorator(service)); 277 results = service.invokeAll(callables); 280 results = service.invokeAll(callables, 1, SECONDS); 291 ListeningExecutorService service = listeningDecorator(delegate); local 296 service.execute(task); 308 ListeningScheduledExecutorService service = listeningDecorator(delegate); local 310 service.schedule(Callables.returning(null), 1, TimeUnit.MILLISECONDS); 325 ListeningScheduledExecutorService service = listeningDecorator(delegate) local 335 ListeningScheduledExecutorService service = listeningDecorator(delegate); local 356 ListeningScheduledExecutorService service = listeningDecorator(delegate); local 514 ExecutorService service = mock(ExecutorService.class); local 525 ExecutorService service = mock(ExecutorService.class); local 633 ExecutorService service = Executors.newSingleThreadExecutor(); local 639 ExecutorService service = mock(ExecutorService.class); local 648 ExecutorService service = mock(ExecutorService.class); local 659 ExecutorService service = mock(ExecutorService.class); local 669 final ExecutorService service = mock(ExecutorService.class); local [all...] |
/frameworks/base/core/java/android/app/ |
StatsManager.java | 99 * @throws StatsUnavailableException if unsuccessful due to failing to connect to stats service 106 IStatsManager service = getIStatsManagerLocked(); local 108 service.addConfiguration(configKey, config, mContext.getOpPackageName()); 136 * @throws StatsUnavailableException if unsuccessful due to failing to connect to stats service 142 IStatsManager service = getIStatsManagerLocked(); local 143 service.removeConfiguration(configKey, mContext.getOpPackageName()); 194 * @throws StatsUnavailableException if unsuccessful due to failing to connect to stats service 202 IStatsManager service = getIStatsManagerLocked(); local 206 service.setBroadcastSubscriber(configKey, subscriberId, intentSender, 209 service.unsetBroadcastSubscriber(configKey, subscriberId 255 IStatsManager service = getIStatsManagerLocked(); local 300 IStatsManager service = getIStatsManagerLocked(); local 336 IStatsManager service = getIStatsManagerLocked(); local [all...] |
/frameworks/base/core/java/android/bluetooth/ |
BluetoothPbap.java | 36 * Public API for controlling the Bluetooth Pbap Service. This includes 39 * Service via IPC. 42 * BluetoothPbap service. Users of this object should call close() when they 44 * from the service. 47 * BluetoothPbap service. Use the ServiceListener interface to obtain a 93 * been connected to the BluetoothPbap service. 98 * connected to the BluetoothPbap service. Clients must wait for 100 * service. 106 * disconnected from the BluetoothPbap service. Clients must not 107 * make IPC calls on the BluetoothPbap service after this callback 216 final IBluetoothPbap service = mService; local 235 final IBluetoothPbap service = mService; local 254 final IBluetoothPbap service = mService; local 286 final IBluetoothPbap service = mService; local [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
IVoiceInteractionManagerService.aidl | 28 import android.service.voice.IVoiceInteractionService; 29 import android.service.voice.IVoiceInteractionSession; 32 void showSession(IVoiceInteractionService service, in Bundle sessionArgs, int flags); 69 SoundTrigger.ModuleProperties getDspModuleProperties(in IVoiceInteractionService service); 74 * @param service The current VoiceInteractionService. 78 boolean isEnrolledForKeyphrase(IVoiceInteractionService service, int keyphraseId, 83 int startRecognition(in IVoiceInteractionService service, int keyphraseId, 89 int stopRecognition(in IVoiceInteractionService service, int keyphraseId, 93 * @return the component name for the currently active voice interaction service 98 * Shows the session for the currently active service. Used to start a new session from syste [all...] |
/external/perfetto/src/ipc/ |
host_impl.cc | 26 #include "perfetto/ipc/service.h" 71 bool HostImpl::ExposeService(std::unique_ptr<Service> service) { 73 const std::string& service_name = service->GetDescriptor().service_name; 79 ExposedService exposed_service(sid, service_name, std::move(service)); 140 // Binding a service doesn't do anything major. It just returns back the 141 // service id and its method map. 146 const ExposedService* service = GetServiceByName(req.service_name()); local 147 if (service) { 149 reply->set_service_id(service->id) 256 Service& service = *service_it.second.instance; local [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
LocationProviderProxy.java | 92 * Remember we can switch the service that implements a providers 98 if (D) Log.d(TAG, "applying state to connected service"); 114 ILocationProvider service = ILocationProvider.Stub.asInterface(binder); 117 properties[0] = service.getProperties(); 123 // apply current state to new service 125 service.enable(); 127 service.setRequest(request, source); 133 // never let remote service crash system server 165 ILocationProvider service = ILocationProvider.Stub.asInterface(binder); 167 service.enable() [all...] |
/frameworks/base/services/core/java/com/android/server/pm/ |
ShortcutParser.java | 60 public static List<ShortcutInfo> parseShortcuts(ShortcutService service, 66 final List<ResolveInfo> activities = service.injectGetMainActivities(packageName, userId); 82 service.getActivityInfoWithMetadata( 86 service, activityInfoWithMetadata, packageName, userId, result); 92 service.wtf( 100 ShortcutService service, 110 parser = service.injectXmlMetaData(activityInfo, METADATA_KEY); 122 final int maxShortcuts = service.getMaxActivityShortcuts(); 207 service, attrs, packageName, activity, userId, rank); 234 final Intent intent = Intent.parseIntent(service.mContext.getResources() [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowContextImpl.java | 146 Object service = systemServices.get(name); local 147 if (service == null) { 150 System.err.println("WARNING: unknown service " + name); 158 service = ReflectionHelpers.callConstructor(clazz, 163 service = ReflectionHelpers.callConstructor(clazz, 168 service = ReflectionHelpers.callConstructor(clazz, 175 service = ReflectionHelpers.callConstructor(clazz, 180 service = ReflectionHelpers.callConstructor(clazz, 186 service = ReflectionHelpers.callConstructor(clazz, 193 service = ReflectionHelpers.callConstructor(clazz) [all...] |
/cts/tests/tests/security/src/android/security/cts/ |
ServicePermissionsTest.java | 82 for (String service : services) { 88 .getDeclaredMethod("getService", String.class).invoke(null, service); 97 Log.w(TAG, "Missing service " + service); 101 Log.d(TAG, "Dumping service " + service); 108 // Service correctly checked for DUMP permission, yay 110 // Service is throwing about something else; they're 136 fail("dump() for " + service + " produced several lines of output; this " 145 fail("dump() for " + service + " produced a single line which didn't [all...] |