/packages/apps/CellBroadcastReceiver/tests/src/com/android/cellbroadcastreceiver/tests/ |
D | SendTestMessages.java | 412 public static void testSendMessage7bit(Activity activity) { in testSendMessage7bit() argument 418 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bit() 421 public static void testSendMessage7bitUmts(Activity activity) { in testSendMessage7bitUmts() argument 426 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitUmts() 429 public static void testSendMessage7bitNoPadding(Activity activity) { in testSendMessage7bitNoPadding() argument 434 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitNoPadding() 437 public static void testSendMessage7bitNoPaddingUmts(Activity activity) { in testSendMessage7bitNoPaddingUmts() argument 442 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitNoPaddingUmts() 445 public static void testSendMessage7bitMultipageGsm(Activity activity) { in testSendMessage7bitMultipageGsm() argument 451 activity.sendOrderedBroadcast(intent, "android.permission.RECEIVE_SMS"); in testSendMessage7bitMultipageGsm() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | MenuHelper.java | 100 private static void startCameraActivity(Activity activity, Intent intent, in startCameraActivity() argument 104 intent.setClassName(activity.getPackageName(), className); in startCameraActivity() 111 activity.startActivity(intent); in startCameraActivity() 114 activity.startActivity(intent); in startCameraActivity() 116 activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out); in startCameraActivity() 119 public static void gotoMode(int mode, Activity activity) { in gotoMode() argument 138 startCameraActivity(activity, new Intent(action), className); in gotoMode() 141 public static void gotoVideoMode(Activity activity, boolean resetEffect) { in gotoVideoMode() argument 144 startCameraActivity(activity, intent, VIDEO_CAMERA_CLASS); in gotoVideoMode() 147 public static void gotoCameraMode(Activity activity) { in gotoCameraMode() argument [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MonitoredActivity.java | 30 public void onActivityCreated(MonitoredActivity activity); in onActivityCreated() argument 31 public void onActivityDestroyed(MonitoredActivity activity); in onActivityDestroyed() argument 32 public void onActivityStarted(MonitoredActivity activity); in onActivityStarted() argument 33 public void onActivityStopped(MonitoredActivity activity); in onActivityStopped() argument 37 public void onActivityCreated(MonitoredActivity activity) { in onActivityCreated() argument 40 public void onActivityDestroyed(MonitoredActivity activity) { in onActivityDestroyed() argument 43 public void onActivityStarted(MonitoredActivity activity) { in onActivityStarted() argument 46 public void onActivityStopped(MonitoredActivity activity) { in onActivityStopped() argument
|
D | MenuHelper.java | 262 final Activity activity) { in onShowMapClicked() argument 282 Toast.makeText(activity, in onShowMapClicked() 296 activity.startActivity(new Intent( in onShowMapClicked() 315 Activity activity) { in showExifInformation() argument 343 setLatLngDetails(d, activity, exif); in showExifInformation() 368 final Activity activity) { in onDetailsClicked() argument 376 new AlertDialog.Builder(activity); in onDetailsClicked() 378 final View d = View.inflate(activity, R.layout.detailsview, in onDetailsClicked() 392 : Formatter.formatFileSize(activity, length); in onDetailsClicked() 419 activity.getString(R.string.details_dimension_x), in onDetailsClicked() [all …]
|
/packages/apps/Email/src/com/android/email/activity/ |
D | ActivityHelper.java | 17 package com.android.email.activity; 30 import com.android.email.activity.setup.AccountSecurity; 62 public static boolean openUrlInMessage(Activity activity, String url, long senderAccountId) { in openUrlInMessage() argument 65 return MessageCompose.actionCompose(activity, url, senderAccountId); in openUrlInMessage() 72 intent.putExtra(Browser.EXTRA_APPLICATION_ID, activity.getPackageName()); in openUrlInMessage() 75 activity.startActivity(intent); in openUrlInMessage() 86 public static void openCalendar(Activity activity, long epochEventStartTime) { in openCalendar() argument 92 activity.startActivity(intent); in openCalendar() 125 public static void debugSetWindowFlags(Activity activity) { in debugSetWindowFlags() argument 128 activity.getWindow().setFlags(0, in debugSetWindowFlags() [all …]
|
D | NfcHandler.java | 17 package com.android.email.activity; 45 public static NfcHandler register(UIControllerBase controller, Activity activity) { in register() argument 46 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity); in register() 50 NfcHandler nfcHandler = new NfcHandler(controller, activity); in register() 51 adapter.setNdefPushMessageCallback(nfcHandler, activity); in register() 55 public NfcHandler(UIControllerBase controller, Activity activity) { in NfcHandler() argument 57 mActivity = activity; in NfcHandler()
|
D | MoveMessageToDialog.java | 17 package com.android.email.activity; 115 final Activity activity = getActivity(); in onCreateDialog() local 119 AlertDialog.Builder builder = new AlertDialog.Builder(activity) in onCreateDialog() 120 .setTitle(activity.getResources().getString(R.string.move_to_folder_dialog_title)); in onCreateDialog() 151 public void onAttach(Activity activity) { in onAttach() argument 152 super.onAttach(activity); in onAttach() 267 public MessageChecker(Activity activity, long[] messageIds) { in MessageChecker() argument 268 super(activity); in MessageChecker() 269 mActivity = activity; in MessageChecker()
|
D | MessageFileViewFragment.java | 17 package com.android.email.activity; 113 protected Message openMessageSync(Activity activity) { in openMessageSync() argument 118 Utility.showToast(activity, R.string.message_view_parse_message_toast); in openMessageSync() 122 Utility.showToast(activity, R.string.message_view_display_attachment_toast); in openMessageSync() 129 protected Message reloadMessageSync(Activity activity) { in reloadMessageSync() argument
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountPromptUtils.java | 81 public static void launchAccountPrompt(Activity activity) { in launchAccountPrompt() argument 83 options.putCharSequence(KEY_INTRO_MESSAGE, activity.getString(R.string.no_account_prompt)); in launchAccountPrompt() 85 AccountManager.get(activity).addAccount(GoogleAccountType.ACCOUNT_TYPE, null, null, options, in launchAccountPrompt() 86 activity, getAccountManagerCallback(activity), null); in launchAccountPrompt() 90 final Activity activity) { in getAccountManagerCallback() argument 96 activity.finish(); in getAccountManagerCallback() 102 AccountPromptUtils.neverShowAccountPromptAgain(activity); in getAccountManagerCallback()
|
/packages/apps/Browser/src/com/android/browser/ |
D | DownloadHandler.java | 58 public static void onDownloadStart(Activity activity, String url, in onDownloadStart() argument 70 ResolveInfo info = activity.getPackageManager().resolveActivity(intent, in onDownloadStart() 73 ComponentName myName = activity.getComponentName(); in onDownloadStart() 83 activity.startActivity(intent); in onDownloadStart() 97 onDownloadStartNoStream(activity, url, userAgent, contentDisposition, in onDownloadStart() 141 /*package */ static void onDownloadStartNoStream(Activity activity, in onDownloadStartNoStream() argument 156 msg = activity.getString(R.string.download_sdcard_busy_dlg_msg); in onDownloadStartNoStream() 159 msg = activity.getString(R.string.download_no_sdcard_dlg_msg, filename); in onDownloadStartNoStream() 163 new AlertDialog.Builder(activity) in onDownloadStartNoStream() 191 Toast.makeText(activity, R.string.cannot_download, Toast.LENGTH_SHORT).show(); in onDownloadStartNoStream() [all …]
|
D | NfcHandler.java | 43 public static void register(Activity activity, Controller controller) { in register() argument 44 NfcAdapter adapter = NfcAdapter.getDefaultAdapter(activity.getApplicationContext()); in register() 53 adapter.setNdefPushMessageCallback(handler, activity); in register() 56 public static void unregister(Activity activity) { in unregister() argument 59 register(activity, null); in unregister()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | SpinnerVisibilitySetter.java | 104 private SpinnerVisibilitySetter(Activity activity) { in SpinnerVisibilitySetter() argument 105 mActivity = activity; in SpinnerVisibilitySetter() 108 public static SpinnerVisibilitySetter getInstance(Activity activity) { in getInstance() argument 110 if (sInstanceMap.get(activity) == null) { in getInstance() 111 sInstanceMap.put(activity, new SpinnerVisibilitySetter(activity)); in getInstance() 113 return sInstanceMap.get(activity); in getInstance()
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | RecordUtils.java | 50 public Activity activity; field in RecordUtils.ClickInfo 53 public ClickInfo(Activity activity, Intent intent) { in ClickInfo() argument 54 this.activity = activity; in ClickInfo() 63 public static View getViewsForIntent(Activity activity, LayoutInflater inflater, in getViewsForIntent() argument 66 PackageManager pm = activity.getPackageManager(); in getViewsForIntent() 75 return buildActivityView(activity, activities.get(0), pm, inflater, parent, listener, in getViewsForIntent() 79 LinearLayout container = new LinearLayout(activity); in getViewsForIntent() 95 container.addView(buildActivityView(activity, resolveInfo, pm, inflater, container, in getViewsForIntent() 105 …private static View buildActivityView(Activity activity, ResolveInfo resolveInfo, PackageManager p… in buildActivityView() argument 115 item.setTag(new ClickInfo(activity, intent)); in buildActivityView()
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
D | AndroidBeam.java | 46 Activity activity = getActivity(); in onCreate() local 48 mActionBarSwitch = new Switch(activity); in onCreate() 50 if (activity instanceof PreferenceActivity) { in onCreate() 51 PreferenceActivity preferenceActivity = (PreferenceActivity) activity; in onCreate() 53 final int padding = activity.getResources().getDimensionPixelSize( in onCreate() 56 activity.getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM, in onCreate() 58 activity.getActionBar().setCustomView(mActionBarSwitch, new ActionBar.LayoutParams( in onCreate() 62 activity.getActionBar().setTitle(R.string.android_beam_settings_title); in onCreate()
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
D | UserDictionaryList.java | 46 static Set<String> getUserDictionaryLocalesList(Activity activity) { in getUserDictionaryLocalesList() argument 48 final Cursor cursor = activity.managedQuery(UserDictionary.Words.CONTENT_URI, in getUserDictionaryLocalesList() 71 final Activity activity = getActivity(); in createUserDictSettings() local 73 final Set<String> localeList = UserDictionaryList.getUserDictionaryLocalesList(activity); in createUserDictSettings() 76 userDictGroup.addPreference(createUserDictionaryPreference(null, activity)); in createUserDictSettings() 79 userDictGroup.addPreference(createUserDictionaryPreference(locale, activity)); in createUserDictSettings() 89 protected Preference createUserDictionaryPreference(String locale, Activity activity) { in createUserDictionaryPreference() argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | ManageCachePage.java | 112 Activity activity = (Activity) mActivity; 113 int slotViewTop = GalleryActionBar.getHeight(activity); 116 View footer = activity.findViewById(R.id.footer); 287 Activity activity = (Activity) mActivity; in initializeViews() local 291 mStaticBackground = new StaticBackground(activity); in initializeViews() 294 Config.ManageCachePage config = Config.ManageCachePage.get(activity); in initializeViews() 320 Activity activity = (Activity) mActivity; in initializeFooterViews() local 322 FrameLayout footer = (FrameLayout) activity.findViewById(R.id.footer); in initializeFooterViews() 323 LayoutInflater inflater = activity.getLayoutInflater(); in initializeFooterViews() 349 Activity activity = (Activity) mActivity; in showToast() local [all …]
|
D | ActivityState.java | 58 void initialize(GalleryActivity activity, Bundle data) { in initialize() argument 59 mActivity = activity; in initialize() 94 Activity activity = (Activity) mActivity; in resume() local 95 ActionBar actionBar = activity.getActionBar(); in resume() 109 activity.invalidateOptionsMenu(); in resume()
|
/packages/apps/Contacts/src/com/android/contacts/voicemail/ |
D | VoicemailPlaybackFragment.java | 212 Activity activity = mActivityReference.get(); in finish() local 213 if (activity != null) { in finish() 214 activity.finish(); in finish() 220 Activity activity = mActivityReference.get(); in runOnUiThread() local 221 if (activity != null) { in runOnUiThread() 222 activity.runOnUiThread(runnable); in runOnUiThread() 275 Activity activity = mActivityReference.get(); in enableProximitySensor() local 276 if (activity != null && activity instanceof ProximitySensorAware) { in enableProximitySensor() 277 ((ProximitySensorAware) activity).enableProximitySensor(); in enableProximitySensor() 284 Activity activity = mActivityReference.get(); in disableProximitySensor() local [all …]
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
D | AccountSecurity.java | 17 package com.android.email.activity.setup; 35 import com.android.email.activity.ActivityHelper; 335 AccountSecurity activity = (AccountSecurity) getActivity(); in onClick() local 336 if (activity.mAccount == null) { in onClick() 338 activity.finish(); in onClick() 346 activity.tryAdvanceSecurity(activity.mAccount); in onClick() 352 activity.repostNotification( in onClick() 353 activity.mAccount, SecurityPolicy.getInstance(activity)); in onClick() 354 activity.finish(); in onClick() 409 AccountSecurity activity = (AccountSecurity) getActivity(); in onClick() local [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | WirelessSettings.java | 99 final Activity activity = getActivity(); in onCreate() local 106 mAirplaneModeEnabler = new AirplaneModeEnabler(activity, mAirplaneModePreference); in onCreate() 107 mNfcEnabler = new NfcEnabler(activity, nfc, androidBeam); in onCreate() 109 String toggleable = Settings.System.getString(activity.getContentResolver(), in onCreate() 129 mNfcAdapter = NfcAdapter.getDefaultAdapter(activity); in onCreate() 141 WifiP2pManager p2p = (WifiP2pManager) activity.getSystemService(Context.WIFI_P2P_SERVICE); in onCreate() 146 mWifiP2pEnabler = new WifiP2pEnabler(activity, wifiP2p); in onCreate() 153 activity.getSystemService(Context.DEVICE_POLICY_SERVICE); in onCreate() 160 (ConnectivityManager) activity.getSystemService(Context.CONNECTIVITY_SERVICE); in onCreate()
|
D | ChooseLockSettingsHelper.java | 34 public ChooseLockSettingsHelper(Activity activity) { in ChooseLockSettingsHelper() argument 35 mActivity = activity; in ChooseLockSettingsHelper() 36 mLockPatternUtils = new LockPatternUtils(activity); in ChooseLockSettingsHelper() 39 public ChooseLockSettingsHelper(Activity activity, Fragment fragment) { in ChooseLockSettingsHelper() argument 40 this(activity); in ChooseLockSettingsHelper()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | GroupCreationDialogFragment.java | 64 Activity activity = getActivity(); in onCompleted() local 65 activity.startService(ContactSaveService.createNewGroupIntent(activity, in onCompleted() 68 activity.getClass(), Intent.ACTION_EDIT)); in onCompleted()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | AboutPreferences.java | 33 final Activity activity = getActivity(); in onCreate() local 36 activity.getPackageManager().getPackageInfo(activity.getPackageName(), 0); in onCreate()
|
/packages/apps/Contacts/tests/src/com/android/contacts/util/ |
D | IntegrationTestUtils.java | 61 public void clickButton(final Activity activity, final int buttonResourceId) throws Throwable { in clickButton() argument 65 View view = activity.findViewById(buttonResourceId); in clickButton() 140 public List<TextView> getTextViewsWithString(final Activity activity, final String text) 146 for (TextView textView : getAllViews(TextView.class, getRootView(activity))) { 157 public static View getRootView(Activity activity) { 158 return activity.findViewById(android.R.id.content).getRootView();
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiConfigUiForSetupWizardXL.java | 61 WifiSettingsForSetupWizardXL activity, ViewGroup parent, in WifiConfigUiForSetupWizardXL() argument 63 mActivity = activity; in WifiConfigUiForSetupWizardXL() 64 mConnectButton = (Button)activity.findViewById(R.id.wifi_setup_connect); in WifiConfigUiForSetupWizardXL() 65 mCancelButton = (Button)activity.findViewById(R.id.wifi_setup_cancel); in WifiConfigUiForSetupWizardXL() 68 mInflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in WifiConfigUiForSetupWizardXL() 74 activity.getSystemService(Context.INPUT_METHOD_SERVICE); in WifiConfigUiForSetupWizardXL()
|