Searched refs:activity (Results 26 - 50 of 254) sorted by relevance

1234567891011

/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountFilterUtil.java119 * @param activity
123 Activity activity, int requestCode) {
124 final Intent intent = new Intent(activity, AccountFilterActivity.class);
125 activity.startActivityForResult(intent, requestCode);
134 final Activity activity = fragment.getActivity();
135 if (activity != null) {
136 final Intent intent = new Intent(activity, AccountFilterActivity.class);
122 startAccountFilterActivityForResult( Activity activity, int requestCode) argument
H A DDialogManager.java55 * @param activity The activity this object is used for
57 public DialogManager(final Activity activity) { argument
58 if (activity == null) throw new IllegalArgumentException("activity must not be null");
59 mActivity = activity;
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DIntegrationTestUtils.java58 * Find a view by a given resource id, from the given activity, and click it, iff it is
61 public void clickButton(final Activity activity, final int buttonResourceId) throws Throwable { argument
65 View view = activity.findViewById(buttonResourceId);
140 public List<TextView> getTextViewsWithString(final Activity activity, final String text) argument
146 for (TextView textView : getAllViews(TextView.class, getRootView(activity))) {
156 /** Find the root view for a given activity. */
157 public static View getRootView(Activity activity) { argument
158 return activity.findViewById(android.R.id.content).getRootView();
/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiConfigUiForSetupWizardXL.java54 * @param activity Activity which creates this object.
61 WifiSettingsForSetupWizardXL activity, ViewGroup parent,
63 mActivity = activity;
64 mConnectButton = (Button)activity.findViewById(R.id.wifi_setup_connect);
65 mCancelButton = (Button)activity.findViewById(R.id.wifi_setup_cancel);
68 mInflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
74 activity.getSystemService(Context.INPUT_METHOD_SERVICE);
60 WifiConfigUiForSetupWizardXL( WifiSettingsForSetupWizardXL activity, ViewGroup parent, AccessPoint accessPoint, boolean edit) argument
/packages/apps/Contacts/src/com/android/contacts/
H A DNfcHandler.java40 * enabled when the activity is in the foreground and resumed.
51 public static void register(Activity activity, ContactDetailFragment contactFragment) { argument
52 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity.getApplicationContext());
56 adapter.setNdefPushMessageCallback(new NfcHandler(contactFragment), activity);
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSetupIncoming.java17 package com.android.email.activity.setup;
20 import com.android.email.activity.ActivityHelper;
21 import com.android.email.activity.UiUtilities;
H A DAccountSetupOutgoing.java17 package com.android.email.activity.setup;
20 import com.android.email.activity.ActivityHelper;
21 import com.android.email.activity.UiUtilities;
H A DAccountSetupActivity.java17 package com.android.email.activity.setup;
H A DSpinnerOption.java17 package com.android.email.activity.setup;
/packages/apps/Email/tests/src/com/android/email/activity/setup/
H A DAccountSetupAccountTypeTests.java17 package com.android.email.activity.setup;
37 * runtest -c com.android.email.activity.setup.AccountSetupAccountTypeTests email
75 AccountSetupAccountType activity = startActivity(getTestIntent(), null, null);
76 View exchangeButton = activity.findViewById(R.id.exchange);
/packages/apps/Settings/src/com/android/settings/accounts/
H A DManageAccountsSettings.java77 Activity activity = getActivity();
78 AccountManager.get(activity).addOnAccountsUpdatedListener(this, null, true);
79 activity.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM,
81 activity.getActionBar().setCustomView(mAutoSyncSwitch, new ActionBar.LayoutParams(
98 final Activity activity = getActivity();
104 mAutoSyncSwitch = new Switch(activity);
107 final int padding = activity.getResources().getDimensionPixelSize(
119 mAuthorities = activity.getIntent().getStringArrayExtra(AUTHORITIES_FILTER_KEY);
127 final Activity activity = getActivity();
128 AccountManager.get(activity)
[all...]
/packages/apps/Camera/tests/src/com/android/camera/functional/
H A DCameraTest.java70 Activity activity = getInstrumentation().startActivitySync(intent);
71 refs.add(new WeakReference<Activity>(activity));
72 activity.finish();
74 activity = null;
83 // If applications are leaking activity, every reference is reachable.
/packages/apps/Mms/tests/src/com/android/mms/
H A DInterceptSendSms.java65 Activity activity = getActivity();
67 mRecipientsView = (TextView)activity.findViewById(R.id.recipients_editor);
68 mTextEditor = (EditText)activity.findViewById(R.id.embedded_text_editor);
73 activity.registerReceiver(mInterceptReceiver, filter);
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DParsedNdefRecord.java37 public abstract View getView(Activity activity, LayoutInflater inflater, ViewGroup parent, argument
H A DUnknownRecord.java30 public View getView(Activity activity, LayoutInflater inflater, ViewGroup parent, int offset) { argument
/packages/apps/Email/src/com/android/email/activity/
H A DMoveMessageToDialog.java17 package com.android.email.activity;
68 * Callback that target fragments, or the owner activity should implement.
115 final Activity activity = getActivity();
119 AlertDialog.Builder builder = new AlertDialog.Builder(activity)
120 .setTitle(activity.getResources().getString(R.string.move_to_folder_dialog_title));
151 public void onAttach(Activity activity) { argument
152 super.onAttach(activity);
267 public MessageChecker(Activity activity, long[] messageIds) { argument
268 super(activity);
269 mActivity = activity;
[all...]
H A DAddressTextView.java17 package com.android.email.activity;
/packages/apps/Settings/src/com/android/settings/
H A DWirelessSettings.java100 final Activity activity = getActivity();
107 mAirplaneModeEnabler = new AirplaneModeEnabler(activity, mAirplaneModePreference);
108 mNfcEnabler = new NfcEnabler(activity, nfc, androidBeam);
110 String toggleable = Settings.System.getString(activity.getContentResolver(),
144 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity);
156 WifiP2pManager p2p = (WifiP2pManager) activity.getSystemService(Context.WIFI_P2P_SERVICE);
161 mWifiP2pEnabler = new WifiP2pEnabler(activity, wifiP2p);
168 activity.getSystemService(Context.DEVICE_POLICY_SERVICE);
175 (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE);
/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/
H A DSendTestMessages.java412 public static void testSendMessage7bit(Activity activity) { argument
418 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
421 public static void testSendMessage7bitUmts(Activity activity) { argument
426 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
429 public static void testSendMessage7bitNoPadding(Activity activity) { argument
434 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
437 public static void testSendMessage7bitNoPaddingUmts(Activity activity) { argument
442 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS");
445 public static void testSendMessage7bitMultipageGsm(Activity activity) { argument
451 activity
454 testSendMessage7bitMultipageUmts(Activity activity) argument
462 testSendMessage7bitWithLanguage(Activity activity) argument
470 testSendMessage7bitWithLanguageInBody(Activity activity) argument
478 testSendMessage7bitWithLanguageInBodyUmts(Activity activity) argument
486 testSendMessageUcs2(Activity activity) argument
495 testSendMessageUcs2Umts(Activity activity) argument
503 testSendMessageUcs2MultipageUmts(Activity activity) argument
511 testSendMessageUcs2WithLanguageInBody(Activity activity) argument
519 testSendMessageUcs2WithLanguageUmts(Activity activity) argument
527 testSendEtwsMessageNormal(Activity activity) argument
536 testSendEtwsMessageCancel(Activity activity) argument
545 testSendEtwsMessageTest(Activity activity) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventViewUtils.java203 private static void setReminderSpinnerLabels(Activity activity, Spinner spinner, argument
205 Resources res = activity.getResources();
208 ArrayAdapter<String> adapter = new ArrayAdapter<String>(activity, resource, labels);
224 public static boolean addReminder(Activity activity, View view, View.OnClickListener listener, argument
234 LayoutInflater inflater = activity.getLayoutInflater();
249 setReminderSpinnerLabels(activity, spinner, minuteLabels);
264 setReminderSpinnerLabels(activity, spinner, methodLabels);
/packages/apps/Browser/src/com/android/browser/
H A DDeviceAccountLogin.java50 public DeviceAccountLogin(Activity activity, WebView view, Tab tab, argument
52 mActivity = activity;
56 mAccountManager = AccountManager.get(activity);
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DNonPhoneActivity.java99 final Activity activity = getActivity();
100 if (activity != null) activity.finish();
/packages/apps/Email/src/com/android/email/widget/
H A DWidgetConfiguration.java29 import com.android.email.activity.ShortcutPickerFragment.AccountShortcutPickerFragment;
30 import com.android.email.activity.ShortcutPickerFragment.MailboxShortcutPickerFragment;
31 import com.android.email.activity.ShortcutPickerFragment.PickerCallback;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DAbstractSource.java83 public static Intent createSourceSearchIntent(ComponentName activity, String query, argument
85 if (activity == null) {
86 Log.w(TAG, "Tried to create search intent with no target activity");
90 intent.setComponent(activity);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactTileListFragment.java64 public void onAttach(Activity activity) { argument
65 super.onAttach(activity);
70 mAdapter = new ContactTileAdapter(activity, mAdapterListener,
72 mAdapter.setPhotoLoader(ContactPhotoManager.getInstance(activity));

Completed in 3895 milliseconds

1234567891011