/packages/apps/MusicFX/src/com/android/musicfx/ |
Compatibility.java | 75 Intent updateIntent = new Intent(this, Service.class); 102 Intent updateIntent = new Intent(context, Service.class); 108 public static class Service extends IntentService { 112 public Service() {
|
ControlPanelPicker.java | 22 import com.android.musicfx.Compatibility.Service; 109 Intent updateIntent = new Intent(this, Service.class);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 20 import android.app.Service; 49 public class MediaScannerService extends Service implements Runnable 123 // Start up the thread running the service. Note that we create a 124 // separate thread because the service normally runs in the process's 145 return Service.START_NOT_STICKY; 154 return Service.START_REDELIVER_INTENT;
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyPairGeneratorTest.java | 26 import java.security.Provider.Service; 50 Set<Provider.Service> services = provider.getServices(); 51 for (Provider.Service service : services) { 52 String type = service.getType(); 56 String algorithm = service.getAlgorithm(); 162 Set<Provider.Service> services = p.getServices(); 163 for (Provider.Service service : services) { 164 if (!"KeyFactory".equals(service.getType())) [all...] |
MessageDigestTest.java | 47 Set<Provider.Service> services = provider.getServices(); 48 for (Provider.Service service : services) { 49 String type = service.getType(); 53 String algorithm = service.getAlgorithm();
|
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
AccessibilityManagerTest.java | 20 import android.app.Service; 50 getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); 84 assertFalse("There must be at least one installed service.", installedServices.isEmpty()); 100 assertTrue("The speaking service should be installed.", speakingServiceInstalled); 101 assertTrue("The vibrating service should be installed.", vibratingServiceInstalled); 123 assertTrue("The speaking service should be enabled.", speakingServiceEnabled); 124 assertTrue("The vibrating service should be enabled.", vibratingServiceEnabled); 131 assertSame("There should be only one enabled speaking service.", 1, enabledServices.size()); 141 fail("The speaking service is not enabled."); 161 assertTrue("The speaking service should be installed.", speakingServiceInstalled) [all...] |
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
AccessibilityServiceInfoTest.java | 20 import android.app.Service; 37 // fully populate the service info to marshal 41 // marshal and unmarshal the service info 53 * Tests whether the service info describes its contents consistently. 58 assertSame("Accessibility service info always return 0 for this method.", 0, 61 assertSame("Accessibility service infos always return 0 for this method.", 0, 95 * Tests whether a service can that requested it can retrieve 102 getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); 106 assertSame("There should be one generic service.", 1, enabledServices.size()); 112 assertEquals("Delegating Accessibility Service", speakingService.getDescription()) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
IsolatedService.java | 20 import android.app.Service; 41 * This is an example if implementing a Service that uses android:isolatedProcess. 43 public class IsolatedService extends Service { 46 * service. Note that this is package scoped (instead of private) so 166 IBinder service) { 167 mService = IRemoteService.Stub.asInterface(service); 174 // This is called when the connection with the service has been
|
ServiceStartArguments.java | 23 import android.app.Service; 41 * This is an example of implementing an application service that runs locally 43 * class shows how to interact with the service. 46 * happen in the service. This is generally how background services should 54 public class ServiceStartArguments extends Service { 74 if ((msg.arg2&Service.START_FLAG_REDELIVERY) == 0) { 113 // Start up the thread running the service. Note that we create a 114 // separate thread because the service normally runs in the process's 174 * Show a notification while this service is running. 189 // We show this for as long as our service is processing a command [all...] |
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
LocalServiceBroadcaster.java | 22 import android.app.Service; 40 * data from a service to any other interested code. 109 public static class LocalService extends Service {
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
WordWidget.java | 23 import android.app.Service; 41 * an update we spawn a background {@link Service} to perform the API queries. 46 // To prevent any ANR timeouts, we perform the update in a service 50 public static class UpdateService extends Service {
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
WordWidget.java | 23 import android.app.Service; 41 * an update we spawn a background {@link Service} to perform the API queries. 47 // To prevent any ANR timeouts, we perform the update in a service 51 public static class UpdateService extends Service { 123 // We don't need to bind to this service
|
/external/apache-harmony/support/src/test/resources/tests/resources/ServiceLoader/ |
hyts_services.jar | |
/external/guava/guava/src/com/google/common/util/concurrent/ |
AbstractService.java | 22 import com.google.common.util.concurrent.Service.State; // javadoc needs this 40 public abstract class AbstractService implements Service { 54 * If true, the user requested a shutdown while the service was still starting 60 * This method is called by {@link #start} to initiate service startup. The 67 * thread where it is convenient. It is invoked exactly once on service 73 * This method should be used to initiate service shutdown. The invocation 79 * thread where it is convenient. It is invoked exactly once on service 138 * Implementing classes should invoke this method once their service has 139 * started. It will cause the service to transition from {@link 142 * @throws IllegalStateException if the service is no [all...] |
/frameworks/base/core/java/android/widget/ |
RemoteViewsService.java | 21 import android.app.Service; 28 * The service to be connected to for a remote adapter to request RemoteViews. Users should 32 public abstract class RemoteViewsService extends Service { 37 // Because we are now unbinding when we are not using the Service (to allow them to be 39 // the service is restarted (in response to user input for example). When the process is 254 * To be implemented by the derived service to generate appropriate factories for
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
BordeauxService.java | 23 import android.app.Service; 48 * Machine Learning service that runs in a remote process. 52 public class BordeauxService extends Service { 56 * service. 70 Log.i(TAG, "Bordeaux service created."); 75 // TODO: don't display the notification after the service is 95 Log.i(TAG, "Bordeaux service stopped."); 108 // The main interface implemented by the service. 149 * Show a notification while this service is running. 150 * TODO: remove the code after production (when service is loade [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
KeyGeneratorTest.java | 41 Set<Provider.Service> services = provider.getServices(); 42 for (Provider.Service service : services) { 43 String type = service.getType(); 47 String algorithm = service.getAlgorithm();
|
/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 17 package com.android.email.service; 20 import android.app.Service; 35 import com.android.emailcommon.service.IAccountService; 41 public class AccountService extends Service { 106 // Make sure the service is properly running (re: lifecycle)
|
EasAuthenticatorService.java | 17 package com.android.email.service; 29 import android.app.Service; 38 * A very basic authenticator service for EAS. At the moment, it has no UI hooks. When called 42 public class EasAuthenticatorService extends Service {
|
PopImapAuthenticatorService.java | 17 package com.android.email.service; 29 import android.app.Service; 38 * A very basic authenticator service for POP/IMAP. At the moment, it has no UI hooks. When called 42 public class PopImapAuthenticatorService extends Service {
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/ |
CalendarSyncAdapterService.java | 21 import android.app.Service; 39 public class CalendarSyncAdapterService extends Service {
|
ContactsSyncAdapterService.java | 25 import android.app.Service; 40 public class ContactsSyncAdapterService extends Service {
|
/packages/apps/Phone/src/com/android/phone/ |
EmergencyCallbackModeService.java | 22 import android.app.Service; 44 * Application service that inserts/removes Emergency Callback Mode notification and 49 public class EmergencyCallbackModeService extends Service { 115 // Stop the service when phone exits Emergency Callback Mode
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
DockEventReceiver.java | 19 import android.app.Service; 92 * 4) the dock is still docked (check can only be done in the Service) 118 * Start the service to process the current event notifications, acquiring 119 * the wake lock before returning to ensure that the service will run. 138 * Called back by the service when it has finished processing notifications, 139 * releasing the wake lock if the service is now stopping. 141 public static void finishStartingService(Service service, int startId) { 145 if (service.stopSelfResult(startId)) { 146 Log.d(TAG, "finishStartingService: stopping service"); [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
ProviderTest.java | 225 Provider.Service s = (Provider.Service)it.next(); 241 fail("Incorrect service"); 258 Provider.Service s = p.getService("MessageDigest", "SHA-1"); 273 Provider.Service s = p2.getService("MessageDigest", "SHA-1");
|