/frameworks/base/core/java/com/android/internal/content/ |
PackageMonitor.java | 21 import android.content.Intent; 44 sPackageFilt.addAction(Intent.ACTION_PACKAGE_ADDED); 45 sPackageFilt.addAction(Intent.ACTION_PACKAGE_REMOVED); 46 sPackageFilt.addAction(Intent.ACTION_PACKAGE_CHANGED); 47 sPackageFilt.addAction(Intent.ACTION_QUERY_PACKAGE_RESTART); 48 sPackageFilt.addAction(Intent.ACTION_PACKAGE_RESTARTED); 49 sPackageFilt.addAction(Intent.ACTION_PACKAGE_DATA_CLEARED); 51 sNonDataFilt.addAction(Intent.ACTION_UID_REMOVED); 52 sNonDataFilt.addAction(Intent.ACTION_USER_STOPPED); 53 sNonDataFilt.addAction(Intent.ACTION_PACKAGES_SUSPENDED) [all...] |
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
DreamTheaterActivity.java | 4 import android.content.Intent; 11 startActivity(Intent.createChooser(new Intent(Intent.ACTION_MAIN) 12 .addCategory("android.intent.category.DREAM"),
|
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/ |
MyBaseListFragment.java | 21 import android.content.Intent; 50 sProfileFilter.addAction(Intent.ACTION_MANAGED_PROFILE_ADDED); 51 sProfileFilter.addAction(Intent.ACTION_MANAGED_PROFILE_AVAILABLE); 52 sProfileFilter.addAction(Intent.ACTION_MANAGED_PROFILE_REMOVED); 53 sProfileFilter.addAction(Intent.ACTION_MANAGED_PROFILE_UNAVAILABLE); 54 sProfileFilter.addAction(Intent.ACTION_MANAGED_PROFILE_UNLOCKED); 59 public void onReceive(Context context, Intent intent) {
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
DefaultHomePreferenceController.java | 21 import android.content.Intent; 41 HOME_FILTER = new IntentFilter(Intent.ACTION_MAIN); 42 HOME_FILTER.addCategory(Intent.CATEGORY_HOME); 43 HOME_FILTER.addCategory(Intent.CATEGORY_DEFAULT); 93 protected Intent getSettingIntent(DefaultAppInfo info) { 106 Intent intent = new Intent(Intent.ACTION_APPLICATION_PREFERENCES) local 108 .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK) [all...] |
/developers/build/prebuilts/gradle/DirectShare/Application/src/main/java/com/example/android/directshare/ |
MainActivity.java | 20 import android.content.Intent; 55 * Emits a sample share {@link Intent}. 58 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); 60 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, mEditBody.getText().toString()); 61 startActivity(Intent.createChooser(sharingIntent, getString(R.string.send_intent_title)));
|
/developers/samples/android/content/DirectShare/Application/src/main/java/com/example/android/directshare/ |
MainActivity.java | 20 import android.content.Intent; 55 * Emits a sample share {@link Intent}. 58 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); 60 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, mEditBody.getText().toString()); 61 startActivity(Intent.createChooser(sharingIntent, getString(R.string.send_intent_title)));
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Intents.java | 22 import android.content.Intent; 37 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local 38 intent.setType("audio/*"); 39 startActivity(Intent.createChooser(intent, "Select music")); 43 Intent intent = new Intent(Intent.ACTION_GET_CONTENT) local 49 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); local [all...] |
/development/samples/browseable/DirectShare/src/com.example.android.directshare/ |
MainActivity.java | 20 import android.content.Intent; 55 * Emits a sample share {@link Intent}. 58 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); 60 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, mEditBody.getText().toString()); 61 startActivity(Intent.createChooser(sharingIntent, getString(R.string.send_intent_title)));
|
/sdk/apps/NotificationStudio/src/com/android/notificationstudio/action/ |
ShareCodeAction.java | 20 import android.content.Intent; 28 Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); 30 sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Notification Code"); 31 sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody); 32 context.startActivity(Intent.createChooser(sharingIntent, title));
|
ShareMockupAction.java | 20 import android.content.Intent; 72 // launch intent to send the mockup image 73 Intent share = new Intent(Intent.ACTION_SEND); 75 share.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(f.getAbsoluteFile())); 76 activity.startActivity(Intent.createChooser(share, title));
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
SystemUIDialog.java | 24 import android.content.Intent; 111 INTENT_FILTER.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS); 112 INTENT_FILTER.addAction(Intent.ACTION_SCREEN_OFF); 129 public void onReceive(Context context, Intent intent) {
|
/external/chromium-trace/catapult/devil/devil/android/sdk/ |
intent.py | 12 # Full list: http://developer.android.com/reference/android/content/Intent.html 27 class Intent(object): 29 def __init__(self, action='android.intent.action.VIEW', activity=None, 32 """Creates an Intent. 39 component: A string that specifies the component to send the intent to. 42 intent. 43 flags: A sequence of flag constants to be passed with the intent. 98 """Returns the intent as a list of arguments for the activity manager. 128 'Intent does not know how to pass %s extras' % type(value))
|
/external/libmojo/third_party/catapult/devil/devil/android/sdk/ |
intent.py | 12 # Full list: http://developer.android.com/reference/android/content/Intent.html 27 class Intent(object): 29 def __init__(self, action='android.intent.action.VIEW', activity=None, 32 """Creates an Intent. 39 component: A string that specifies the component to send the intent to. 42 intent. 43 flags: A sequence of flag constants to be passed with the intent. 98 """Returns the intent as a list of arguments for the activity manager. 128 'Intent does not know how to pass %s extras' % type(value))
|
/frameworks/base/services/core/java/com/android/server/power/ |
PowerManagerShellCommand.java | 19 import android.content.Intent; 79 Intent.printIntentArgsHelp(pw , "");
|
/cts/tests/tests/text/src/android/text/style/cts/ |
EasyEditSpanTest.java | 20 import android.content.Intent; 37 InstrumentationRegistry.getTargetContext(), 0, new Intent(), 0));
|
/frameworks/base/services/core/java/com/android/server/display/ |
DisplayManagerShellCommand.java | 19 import android.content.Intent; 66 Intent.printIntentArgsHelp(pw , "");
|
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/ |
TrustedWebUtilsTest.java | 24 import android.content.Intent; 64 customTabsIntent.intent.getExtras(), CustomTabsIntent.EXTRA_SESSION)); 65 assertEquals(customTabsIntent.intent.getAction(), Intent.ACTION_VIEW); 66 assertTrue(customTabsIntent.intent.hasExtra(
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
BatterySettingsUITest.java | 19 import android.content.Intent; 68 InstrumentationRegistry.getTargetContext(), Intent.ACTION_POWER_USAGE_SUMMARY);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/ |
AccountsChangedReceiverTests.java | 21 import android.content.Intent; 56 reciever.onReceive(getContext(), new Intent("some-random-action")); 69 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); 82 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION)); 95 reciever.onReceive(getContext(), new Intent(AccountManager.LOGIN_ACCOUNTS_CHANGED_ACTION));
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
ApplicationHiddenTest.java | 21 import android.content.Intent; 43 PACKAGE_INTENT_FILTER.addAction(Intent.ACTION_PACKAGE_ADDED); 44 PACKAGE_INTENT_FILTER.addAction(Intent.ACTION_PACKAGE_REMOVED); 90 public void onReceive(Context context, Intent intent) { 91 Uri uri = intent.getData(); 99 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) { 102 } else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())) [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/tether/ |
WifiTetherSwitchBarController.java | 23 import android.content.Intent; 63 WIFI_INTENT_FILTER.addAction(Intent.ACTION_AIRPLANE_MODE_CHANGED); 115 public void onReceive(Context context, Intent intent) { 116 String action = intent.getAction(); 118 final int state = intent.getIntExtra( 121 } else if (Intent.ACTION_AIRPLANE_MODE_CHANGED.equals(action)) {
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/debug/ |
ContactsDumpActivity.java | 22 import android.content.Intent; 119 Intent intent = new Intent(Intent.ACTION_SEND); local 120 intent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.debug_dump_email_subject)); 121 intent.putExtra(Intent.EXTRA_TEXT, getString(R.string.debug_dump_email_body)); 122 intent.setType(DataExporter.ZIP_MIME_TYPE) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
ChooserActivityTest.java | 30 import android.content.Intent; 72 Intent sendIntent = createSendImageIntent(); 78 mActivityRule.launchActivity(Intent.createChooser(sendIntent, "chooser test")); 85 Intent sendIntent = createSendImageIntent(); 91 mActivityRule.launchActivity(Intent.createChooser(sendIntent, null)); 99 Intent sendIntent = createSendImageIntent(); 107 .launchActivity(Intent.createChooser(sendIntent, null)); 128 Intent sendIntent = createSendImageIntent(); 136 .launchActivity(Intent.createChooser(sendIntent, null)); 161 Intent sendIntent = createSendImageIntent() [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
KeyguardSliceProviderTest.java | 30 import android.content.Intent; 98 mProvider.mIntentReceiver.onReceive(getContext(), new Intent(Intent.ACTION_TIMEZONE_CHANGED)); 106 mProvider.mIntentReceiver.onReceive(getContext(), new Intent(Intent.ACTION_TIME_TICK));
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
MovieActivity.java | 24 import android.content.Intent; 50 * The client of this activity can pass a logo bitmap in the intent (KEY_LOGO_BITMAP) 86 Intent intent = getIntent(); local 87 initializeActionBar(intent); 88 mFinishOnCompletion = intent.getBooleanExtra( 90 mTreatUpAsBack = intent.getBooleanExtra(KEY_TREAT_UP_AS_BACK, false); 91 mPlayer = new MoviePlayer(rootView, this, intent.getData(), savedInstanceState, 100 if (intent.hasExtra(MediaStore.EXTRA_SCREEN_ORIENTATION)) { 101 int orientation = intent.getIntExtra 188 Intent intent = new Intent(Intent.ACTION_SEND); local [all...] |