Searched refs:intent (Results 1 - 25 of 954) sorted by relevance

1234567891011>>

/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DWizardManagerHelperTest.java30 final Intent intent = new Intent("test.intent.ACTION");
31 intent.putExtra("scriptUri", "android-resource://test-script");
32 intent.putExtra("actionId", "test_action_id");
33 intent.putExtra("theme", "test_theme");
34 intent.putExtra("ignoreExtra", "poof"); // extra is ignored because it's not known
40 WizardManagerHelper.getNextIntent(intent, Activity.RESULT_OK, data);
41 assertEquals("Next intent action should be NEXT", "com.android.wizard.NEXT",
43 assertEquals("Script URI should be the same as original intent",
45 assertEquals("Action ID should be the same as original intent", "test_action_i
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/
H A DAppBridge.java32 Intent intent = new Intent(ACTION_OSU_NOTIFICATION);
33 intent.putExtra(OSU_COUNT, osuCount);
34 intent.setFlags(
37 mContext.startActivity(intent);
42 Intent intent = new Intent(ACTION_OSU_NOTIFICATION);
43 intent.putExtra(SP_NAME, spName);
44 intent.putExtra(PROV_SUCCESS, status == OSUOperationStatus.ProvisioningSuccess);
46 intent.putExtra(PROV_MESSAGE, message);
48 intent.setFlags(
50 mContext.startActivity(intent);
[all...]
/frameworks/support/customtabs/tests/src/android/support/customtabs/
H A DCustomTabsIntentTest.java40 Intent intent = customTabsIntent.intent;
41 assertNotNull(intent);
44 assertEquals(Intent.ACTION_VIEW, intent.getAction());
45 assertTrue(intent.hasExtra(CustomTabsIntent.EXTRA_SESSION));
47 assertNull(intent.getExtras().getBinder(CustomTabsIntent.EXTRA_SESSION));
49 assertNull(intent.getComponent());
55 Intent intent = new CustomTabsIntent.Builder().setToolbarColor(color).build().intent;
56 assertTrue(intent
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DActivityStarter.java28 void startPendingIntentDismissingKeyguard(PendingIntent intent); argument
29 void startActivity(Intent intent, boolean dismissShade); argument
30 void startActivity(Intent intent, boolean dismissShade, Callback callback); argument
/frameworks/base/tests/Assist/src/com/android/test/assist/
H A DAssistInteractionService.java26 Intent intent = new Intent(this, AboveKeyguardActivity.class);
27 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
28 startActivity(intent);
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
H A DAssistProxyActivity.java29 Intent intent = new Intent(this, MainInteractionService.class);
30 intent.setAction(Intent.ACTION_ASSIST);
31 startService(intent);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java52 Intent intent = new Intent(WifiManager.NETWORK_STATE_CHANGED_ACTION);
55 intent.putExtra(WifiManager.EXTRA_NETWORK_INFO, networkInfo);
56 broadcastReceiver.onReceive(context, intent);
64 Intent intent = new Intent(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION);
65 broadcastReceiver.onReceive(context, intent);
73 Intent intent = new Intent(WifiManager.WIFI_SCAN_AVAILABLE);
74 intent.putExtra(WifiManager.EXTRA_SCAN_AVAILABLE, scanAvailable);
75 broadcastReceiver.onReceive(context, intent);
83 Intent intent = new Intent(WifiManager.WIFI_STATE_CHANGED_ACTION);
84 intent
[all...]
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DClearTop.java34 Intent intent = new Intent(getIntent()).setAction(LocalScreen.CLEAR_TASK)
36 startActivity(intent);
40 public void onNewIntent(Intent intent) { argument
41 //Log.i("foo", "New intent in " + this + ": " + intent);
42 if (LocalScreen.CLEAR_TASK.equals(intent.getAction())) {
46 "New intent received " + intent + ", expecting action "
H A DRemoteSubActivityScreen.java37 Intent intent = getIntent();
38 intent.setClass(this, SubActivityScreen.class);
42 boolean kill = intent.getBooleanExtra("kill", false);
/frameworks/base/core/java/android/app/admin/
H A DDeviceAdminReceiver.java38 * class provides a convenience for interpreting the raw intent actions
113 * its intent filter.
219 * specified in the original intent or NFC bump that started the provisioning process
223 * <p>A device admin application which listens to this intent can find out if the device was
400 * <p> If the admin is activated by a device owner, then the intent
406 * @param intent The received intent as per {@link #onReceive}.
408 public void onEnabled(Context context, Intent intent) { argument
418 * @param intent The received intent a
422 onDisableRequested(Context context, Intent intent) argument
434 onDisabled(Context context, Intent intent) argument
445 onPasswordChanged(Context context, Intent intent) argument
456 onPasswordFailed(Context context, Intent intent) argument
467 onPasswordSucceeded(Context context, Intent intent) argument
488 onPasswordExpiring(Context context, Intent intent) argument
513 onProfileProvisioningComplete(Context context, Intent intent) argument
526 onReadyForUserInitialization(Context context, Intent intent) argument
536 onLockTaskModeEntering(Context context, Intent intent, String pkg) argument
545 onLockTaskModeExiting(Context context, Intent intent) argument
561 onChoosePrivateKeyAlias(Context context, Intent intent, int uid, Uri uri, String alias) argument
579 onSystemUpdatePending(Context context, Intent intent, long receivedTime) argument
591 onBugreportSharingDeclined(Context context, Intent intent) argument
606 onBugreportShared(Context context, Intent intent, String bugreportHash) argument
621 onBugreportFailed(Context context, Intent intent, @BugreportFailureCode int failureCode) argument
634 onSecurityLogsAvailable(Context context, Intent intent) argument
643 onReceive(Context context, Intent intent) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DLauncherActivity.java63 Intent intent = findTask(activities);
64 if (intent != null) {
65 restoreTask(intent);
76 Intent intent = task.getTaskInfo().baseIntent;
77 Uri uri = intent.getData();
79 return intent;
86 Intent intent = createLaunchIntent(this);
88 // Forward any flags from the original intent.
89 intent.setFlags(getIntent().getFlags());
90 if (DEBUG) Log.d(TAG, "Starting new task > " + intent
94 restoreTask(Intent intent) argument
[all...]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
H A DServiceIntentSender.java24 * Sends intent to MtpDocumentsService.
34 final Intent intent = new Intent(MtpDocumentsService.ACTION_UPDATE_NOTIFICATION);
35 intent.setComponent(new ComponentName(mContext, MtpDocumentsService.class));
36 mContext.startService(intent);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DKeyboardShortcutsReceiver.java27 public void onReceive(Context context, Intent intent) { argument
28 if (Intent.ACTION_SHOW_KEYBOARD_SHORTCUTS.equals(intent.getAction())) {
30 } else if (Intent.ACTION_DISMISS_KEYBOARD_SHORTCUTS.equals(intent.getAction())) {
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
H A DDemoModeController.java225 final Intent intent = new Intent("com.android.systemui.demo");
226 intent.putExtra("command", "exit");
227 mContext.sendBroadcast(intent);
234 final Intent intent = new Intent("com.android.systemui.demo");
235 intent.putExtra("command", "status");
236 intent.putExtra("volume", mStatusSlots < 1 ? "hide"
238 intent.putExtra("bluetooth", mStatusSlots < 3 ? "hide"
240 intent.putExtra("location", mStatusSlots < 5 ? "hide" : "show");
241 intent.putExtra("alarm", mStatusSlots < 6 ? "hide" : "show");
242 intent
[all...]
/frameworks/base/location/java/android/location/
H A DSettingInjectorService.java41 * &lt;intent-filter&gt;
43 * &lt;/intent-filter&gt;
118 * Name of the intent key used to specify the messenger
136 public final IBinder onBind(Intent intent) { argument
141 public final void onStart(Intent intent, int startId) { argument
142 super.onStart(intent, startId);
146 public final int onStartCommand(Intent intent, int flags, int startId) { argument
147 onHandleIntent(intent);
152 private void onHandleIntent(Intent intent) { argument
160 sendStatus(intent, tru
171 sendStatus(Intent intent, boolean enabled) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DBroadcastInterceptingContext.java56 public boolean dispatchBroadcast(Intent intent) { argument
57 if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) {
60 mReceiver.onReceive(context, intent);
63 set(intent);
125 public void sendBroadcast(Intent intent) { argument
130 if (interceptor.dispatchBroadcast(intent)) {
138 public void sendBroadcast(Intent intent, String receiverPermission) { argument
139 sendBroadcast(intent);
143 public void sendBroadcastMultiplePermissions(Intent intent, String[] receiverPermissions) { argument
144 sendBroadcast(intent);
148 sendBroadcastAsUser(Intent intent, UserHandle user) argument
153 sendBroadcastAsUser(Intent intent, UserHandle user, String receiverPermission) argument
159 sendStickyBroadcast(Intent intent) argument
164 sendStickyBroadcastAsUser(Intent intent, UserHandle user) argument
169 sendStickyBroadcastAsUser(Intent intent, UserHandle user, Bundle options) argument
174 removeStickyBroadcast(Intent intent) argument
[all...]
/frameworks/base/core/java/android/print/
H A DIPrintClient.aidl29 void startPrintJobConfigActivity(in IntentSender intent);
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DDemoModeFragment.java151 Intent intent = new Intent(DemoMode.ACTION_DEMO);
153 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_ENTER);
154 getContext().sendBroadcast(intent);
156 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_CLOCK);
157 intent.putExtra("hhmm", "0700");
158 getContext().sendBroadcast(intent);
160 intent.putExtra(DemoMode.EXTRA_COMMAND, DemoMode.COMMAND_NETWORK);
161 intent.putExtra("wifi", "show");
162 intent.putExtra("mobile", "show");
163 intent
[all...]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
H A DTestResultActivity.java38 final Intent intent = new Intent(context, TestResultActivity.class);
39 intent.putExtra("message", message);
40 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
41 context.startActivity(intent);
59 protected void onNewIntent(Intent intent) { argument
60 super.onNewIntent(intent);
61 mTextView.setText(mTextView.getText() + intent.getStringExtra("message") + "\n");
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
H A DBrowseFragmentTestActivity.java37 Intent intent = getIntent();
39 BrowseTestFragment.NUM_ROWS = intent.getIntExtra(EXTRA_NUM_ROWS,
41 BrowseTestFragment.REPEAT_PER_ROW = intent.getIntExtra(EXTRA_REPEAT_PER_ROW,
43 BrowseTestFragment.LOAD_DATA_DELAY = intent.getLongExtra(EXTRA_LOAD_DATA_DELAY,
45 BrowseTestFragment.TEST_ENTRANCE_TRANSITION = intent.getBooleanExtra(
48 BrowseTestFragment.SET_ADAPTER_AFTER_DATA_LOAD = intent.getBooleanExtra(
54 if (intent.getBooleanExtra(EXTRA_ADD_TO_BACKSTACK, false)) {
H A DBrowseSupportFragmentTestActivity.java39 Intent intent = getIntent();
41 BrowseTestSupportFragment.NUM_ROWS = intent.getIntExtra(EXTRA_NUM_ROWS,
43 BrowseTestSupportFragment.REPEAT_PER_ROW = intent.getIntExtra(EXTRA_REPEAT_PER_ROW,
45 BrowseTestSupportFragment.LOAD_DATA_DELAY = intent.getLongExtra(EXTRA_LOAD_DATA_DELAY,
47 BrowseTestSupportFragment.TEST_ENTRANCE_TRANSITION = intent.getBooleanExtra(
50 BrowseTestSupportFragment.SET_ADAPTER_AFTER_DATA_LOAD = intent.getBooleanExtra(
56 if (intent.getBooleanExtra(EXTRA_ADD_TO_BACKSTACK, false)) {
/frameworks/base/core/java/android/app/
H A DPackageDeleteObserver.java26 public void onUserActionRequired(Intent intent) {
27 PackageDeleteObserver.this.onUserActionRequired(intent);
41 public void onUserActionRequired(Intent intent) { argument
H A DPackageInstallObserver.java27 public void onUserActionRequired(Intent intent) {
28 PackageInstallObserver.this.onUserActionRequired(intent);
44 public void onUserActionRequired(Intent intent) { argument
/frameworks/support/fragment/tests/java/android/support/v4/app/test/
H A DFragmentResultActivity.java34 Intent intent = new Intent();
35 intent.putExtra(EXTRA_RESULT_CONTENT, result);
36 setResult(resultCode, intent);
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
H A DSearchActivity.java35 // Get the intent, verify the action and get the query
36 Intent intent = getIntent();
37 if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
38 String query = intent.getStringExtra(SearchManager.QUERY);

Completed in 579 milliseconds

1234567891011>>