Home
last modified time | relevance | path

Searched refs:serviceIntent (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintServiceRecommendationService.java118 Intent serviceIntent = new Intent(); in getServiceIntent() local
119 serviceIntent.setComponent(serviceName); in getServiceIntent()
121 return serviceIntent; in getServiceIntent()
139 Intent serviceIntent = getServiceIntent(userHandle); in RemotePrintServiceRecommendationService() local
142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, in RemotePrintServiceRecommendationService()
146 throw new Exception("Failed to bind to service " + serviceIntent); in RemotePrintServiceRecommendationService()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java60 Intent serviceIntent = new Intent(context, BugreportProgressService.class); in onReceive() local
61 serviceIntent.putExtra(EXTRA_ORIGINAL_INTENT, intent); in onReceive()
62 context.startService(serviceIntent); in onReceive()
/frameworks/base/packages/Osu/src/com/android/
DMainActivity.java84 Intent serviceIntent = new Intent(this, OSUService.class); in onCreate() local
85 serviceIntent.putExtra(ACTION_KEY, "dummy-key"); in onCreate()
86 startService(serviceIntent); in onCreate()
196 Intent serviceIntent; in onReceive() local
197 serviceIntent = new Intent(c, OSUService.class); in onReceive()
198 serviceIntent.putExtra(ACTION_KEY, intent.getAction()); in onReceive()
199 serviceIntent.putExtras(intent); in onReceive()
200 c.startService(serviceIntent); in onReceive()
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DIntentFilterVerificationReceiver.java82 Intent serviceIntent = new Intent(context, DirectStatementService.class); in onReceive() local
83 serviceIntent.setAction(DirectStatementService.CHECK_ALL_ACTION); in onReceive()
138 serviceIntent.putExtras(extras); in onReceive()
139 context.startService(serviceIntent); in onReceive()
/frameworks/support/customtabs/src/android/support/customtabs/
DCustomTabsClient.java107 Intent serviceIntent = new Intent(CustomTabsService.ACTION_CUSTOM_TABS_CONNECTION); in getPackageName() local
109 serviceIntent.setPackage(packageName); in getPackageName()
110 if (pm.resolveService(serviceIntent, 0) != null) return packageName; in getPackageName()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/
DPlayerController.java58 public PlayerController(Activity context, Intent serviceIntent) { in PlayerController() argument
60 if (serviceIntent == null) { in PlayerController()
63 mServiceIntent = serviceIntent; in PlayerController()
/frameworks/base/core/java/android/net/
DNetworkScorerAppManager.java158 Intent serviceIntent = new Intent(NetworkScoreManager.ACTION_SCORE_NETWORKS); in getAllValidScorers() local
159 serviceIntent.setPackage(receiverInfo.packageName); in getAllValidScorers()
160 ResolveInfo resolveServiceInfo = pm.resolveService(serviceIntent, 0 /* flags */); in getAllValidScorers()
/frameworks/base/core/java/android/speech/
DSpeechRecognizer.java270 Intent serviceIntent = new Intent(RecognitionService.SERVICE_INTERFACE); in startListening() local
282serviceIntent.setComponent(ComponentName.unflattenFromString(serviceComponent)); in startListening()
284 serviceIntent.setComponent(mServiceComponent); in startListening()
287 if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) { in startListening()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DContextFixture.java176 Intent serviceIntent, in bindService() argument
182 IInterface service = mServiceByComponentName.get(serviceIntent.getComponent()); in bindService()
185 + serviceIntent.getComponent()); in bindService()
188 connection.onServiceConnected(serviceIntent.getComponent(), service.asBinder()); in bindService()
/frameworks/base/docs/html/training/testing/integration-testing/
Dservice-testing.jd109 Intent serviceIntent =
114 serviceIntent.putExtra(LocalService.SEED_KEY, 42L);
117 IBinder binder = mServiceRule.bindService(serviceIntent);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardBottomAreaView.java409 Intent serviceIntent = new Intent(); in bindCameraPrewarmService() local
410 serviceIntent.setClassName(targetInfo.packageName, clazz); in bindCameraPrewarmService()
411 serviceIntent.setAction(CameraPrewarmService.ACTION_PREWARM); in bindCameraPrewarmService()
413 if (getContext().bindServiceAsUser(serviceIntent, mPrewarmConnection, in bindCameraPrewarmService()
/frameworks/base/services/core/java/com/android/server/connectivity/
DVpn.java385 Intent serviceIntent = new Intent(VpnConfig.SERVICE_INTERFACE); in startAlwaysOnVpn() local
386 serviceIntent.setPackage(alwaysOnPackage); in startAlwaysOnVpn()
388 return mContext.startServiceAsUser(serviceIntent, UserHandle.of(mUserHandle)) != null; in startAlwaysOnVpn()
390 Log.e(TAG, "VpnService " + serviceIntent + " failed to start", e); in startAlwaysOnVpn()
/frameworks/base/services/core/java/com/android/server/
DTextServicesManagerService.java619 final Intent serviceIntent = new Intent(SpellCheckerService.SERVICE_INTERFACE); in startSpellCheckerServiceInnerLocked() local
620 serviceIntent.setComponent(info.getComponent()); in startSpellCheckerServiceInnerLocked()
624 if (!bindCurrentSpellCheckerService(serviceIntent, connection, in startSpellCheckerServiceInnerLocked()
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java444 final Intent serviceIntent = new Intent(ChooserTargetService.SERVICE_INTERFACE) in queryTargetServices() local
475 if (bindServiceAsUser(serviceIntent, conn, BIND_AUTO_CREATE | BIND_NOT_FOREGROUND, in queryTargetServices()
479 + " intent " + serviceIntent); in queryTargetServices()
/frameworks/base/docs/html/google/play/billing/
Dbilling_integrate.jd229 Intent serviceIntent =
231 serviceIntent.setPackage("com.android.vending");
232 bindService(serviceIntent, mServiceConn, Context.BIND_AUTO_CREATE);
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java908 final Intent serviceIntent = service; in bindServiceLocked() local
930 serviceIntent.getFlags(), in bindServiceLocked()
/frameworks/base/services/core/java/com/android/server/policy/
DPhoneWindowManager.java5375 final Intent serviceIntent = new Intent(); in takeScreenshot() local
5376 serviceIntent.setComponent(serviceComponent); in takeScreenshot()
5417 if (mContext.bindServiceAsUser(serviceIntent, conn, in takeScreenshot()