/cts/tests/tests/assist/service/src/android/voiceinteraction/service/ |
DisableContextActivity.java | 20 import android.content.Intent; 36 Intent intent = new Intent(); local 37 intent.setComponent(new ComponentName(this, MainInteractionService.class)); 40 startService(intent);
|
/cts/tests/tests/content/src/android/content/cts/ |
MockService.java | 20 import android.content.Intent; 38 public IBinder onBind(Intent intent) { 47 public void onStart(Intent intent, int startId) { 48 super.onStart(intent, startId);
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
VoiceInteractionMain.java | 20 import android.content.Intent; 35 Intent intent = new Intent(); local 36 intent.setComponent(new ComponentName(this, MainInteractionService.class)); 37 ComponentName serviceName = startService(intent);
|
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
SampleMediaButtonReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) { 43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
|
/developers/build/prebuilts/gradle/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationUtil.java | 21 import android.content.Intent; 30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local 32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId)); 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
SampleMediaButtonReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) { 43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
|
/developers/samples/android/wearable/wear/Notifications/Application/src/main/java/com/example/android/support/wearable/notifications/ |
NotificationUtil.java | 21 import android.content.Intent; 30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local 32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId)); 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
|
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/ |
MessageReceiver.java | 20 import android.content.Intent; 28 public void onReceive(Context context, Intent intent) { 29 if (intent.getAction() 31 String newPackage = intent.getStringExtra("android.intent.extra.PACKAGE_NAME");
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
ForegroundService.java | 24 import android.content.Intent; 156 public void onStart(Intent intent, int startId) { 157 handleCommand(intent); 161 public int onStartCommand(Intent intent, int flags, int startId) { 162 handleCommand(intent); 178 void handleCommand(Intent intent) { 179 if (ACTION_FOREGROUND.equals(intent.getAction() [all...] |
/development/samples/StackWidget/src/com/example/android/stackwidget/ |
StackWidgetProvider.java | 23 import android.content.Intent; 48 public void onReceive(Context context, Intent intent) { 50 if (intent.getAction().equals(TOAST_ACTION)) { 51 int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 53 int viewIndex = intent.getIntExtra(EXTRA_ITEM, 0); 56 super.onReceive(context, intent); 64 // Here we setup the intent which points to the StackViewService which will 66 Intent intent = new Intent(context, StackWidgetService.class) local [all...] |
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
UrlIntentListener.java | 20 import android.content.Intent; 34 final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); local 35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 37 context.startActivity(intent);
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
SampleMediaButtonReceiver.java | 21 import android.content.Intent; 40 public void onReceive(Context context, Intent intent) { 41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) { 43 (KeyEvent)intent.getParcelableExtra(Intent.EXTRA_KEY_EVENT));
|
/development/samples/browseable/Notifications/Application/src/com.example.android.support.wearable.notifications/ |
NotificationUtil.java | 21 import android.content.Intent; 30 Intent intent = new Intent(NotificationIntentReceiver.ACTION_EXAMPLE) local 32 intent.putExtra(EXTRA_MESSAGE, context.getString(messageResId)); 33 return PendingIntent.getBroadcast(context, messageResId /* requestCode */, intent,
|
/development/tools/logblame/ |
app_switch_test | 32 adb shell am broadcast -a android.intent.action.AIRPLANE_MODE > /dev/null 42 for intent in $INTENTS 44 echo Starting: $intent 45 adb shell am start -a android.intent.action.MAIN $intent 66 adb shell am broadcast -a android.intent.action.AIRPLANE_MODE > /dev/null
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
UsbAccessoryActivity.java | 21 import android.content.Intent; 36 Intent intent = DemoKitLaunch.createIntent(this); local 37 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK 38 | Intent.FLAG_ACTIVITY_CLEAR_TOP); 40 startActivity(intent);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/ |
ScriptingLayerServiceLauncher.java | 20 import android.content.Intent; 36 // Forward the intent that launched us to start the service. 39 Intent intent = getIntent(); local 40 intent.setComponent(Constants.SL4A_SERVICE_COMPONENT_NAME); 41 startService(intent);
|
/external/svox/pico/src/com/svox/pico/ |
LangPackUninstaller.java | 20 import android.content.Intent;
33 public void onReceive(Context context, Intent intent) {
39 * Returns the name of the package that was added from the intent.
40 * @param intent the {@link Intent}
42 private static String getPackageName(Intent intent) {
43 return intent.getData().getSchemeSpecificPart();
|
/frameworks/base/core/java/android/app/ |
PackageDeleteObserver.java | 19 import android.content.Intent; 26 public void onUserActionRequired(Intent intent) { 27 PackageDeleteObserver.this.onUserActionRequired(intent); 41 public void onUserActionRequired(Intent intent) {
|
PackageInstallObserver.java | 19 import android.content.Intent; 27 public void onUserActionRequired(Intent intent) { 28 PackageInstallObserver.this.onUserActionRequired(intent); 44 public void onUserActionRequired(Intent intent) {
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
RemoteSubActivityScreen.java | 20 import android.content.Intent; 37 Intent intent = getIntent(); local 38 intent.setClass(this, SubActivityScreen.class); 42 boolean kill = intent.getBooleanExtra("kill", false);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SysuiRestartReceiver.java | 20 import android.content.Intent; 30 public void onReceive(Context context, Intent intent) { 31 if (ACTION.equals(intent.getAction())) { 32 String pkg = intent.getData().toString().substring(10);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountAuthenticatorDummyActivity.java | 20 import android.content.Intent; 25 * behavior of {@link AccountManagerService} when authenticator returns intent. 32 Intent intent = getIntent(); local 34 intent.getParcelableExtra(AccountManagerServiceTestFixtures.KEY_CALLBACK); 35 Intent result = intent.getParcelableExtra(AccountManagerServiceTestFixtures.KEY_RESULT);
|
/frameworks/base/tests/AmSlam/src/test/amslam/ |
PingReceiver.java | 20 import android.content.Intent; 28 public int onStartCommand(Intent intent, int flags, int startId) { 29 Intent response = new Intent(this, PongReceiver.class); 30 response.putExtra("start_time", intent.getLongExtra("start_time", 0)); 43 public IBinder onBind(Intent intent) {
|
/frameworks/support/fragment/tests/java/android/support/v4/app/test/ |
FragmentResultActivity.java | 19 import android.content.Intent; 34 Intent intent = new Intent(); local 35 intent.putExtra(EXTRA_RESULT_CONTENT, result); 36 setResult(resultCode, intent);
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/ |
SearchActivity.java | 21 import android.content.Intent; 35 // Get the intent, verify the action and get the query 36 Intent intent = getIntent(); local 37 if (Intent.ACTION_SEARCH.equals(intent.getAction())) { 38 String query = intent.getStringExtra(SearchManager.QUERY);
|