/packages/apps/Exchange/src/com/android/exchange/ |
SettingsRedirector.java | 24 import android.widget.Toast; 48 Toast toast = Toast.makeText(this, R.string.email_settings_not_available, local 49 Toast.LENGTH_SHORT); 50 toast.show();
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ToastTest.java | 6 import android.widget.Toast; 18 Toast toast = Toast.makeText(new Activity(), "short toast", local 19 Toast.LENGTH_SHORT); 20 assertNotNull(toast); 21 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); 26 Toast toast = Toast.makeText(new Activity(), "long toast" local [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothDevicePickerActivity.java | 24 import android.widget.Toast; 43 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); local 44 toast.show();
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
SecureView.java | 30 import android.widget.Toast; 39 * or would at least think long and hard about it. However, a carefully crafted toast can 41 * are innocuous. Since the toast cannot receive input, the touches are passed down to the 45 * a toast layed out so as to cover the buttons and part of the descriptive text. 52 * When the toast appears, this button remains clickable as usual which creates an 57 * When the toast appears, the button does not receive the touch and appears to be inoperable. 97 // Generate a toast view with a special layout that will position itself right 103 Toast toast = new Toast(getApplicationContext()) local [all...] |
GameControllerInput.java | 40 import android.widget.Toast; 369 Toast toast = Toast.makeText( local 370 mContext, mState.getDevice().toString(), Toast.LENGTH_LONG); 371 toast.show();
|
/packages/apps/Browser/src/com/android/browser/ |
GeolocationPermissionsPrompt.java | 29 import android.widget.Toast; 100 Toast toast = Toast.makeText( local 104 Toast.LENGTH_LONG); 105 toast.setGravity(Gravity.BOTTOM, 0, 0); 106 toast.show();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/ |
ConstraintTestActivity.java | 12 import android.widget.Toast; 53 Toast toast = local 54 Toast.makeText( 57 Toast.LENGTH_SHORT); 58 toast.show(); 106 final Toast toast = local 107 Toast.makeText( 111 Toast.LENGTH_SHORT) [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
CustomToastSystem.java | 25 import android.widget.Toast; 30 private Toast mToast; 37 mToast = new Toast(context); 49 public void toast(String text, int length) { method in class:CustomToastSystem
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmUtils.java | 24 import android.widget.Toast; 111 Toast toast = Toast.makeText(context, toastText, Toast.LENGTH_LONG); local 112 ToastMaster.setToast(toast); 113 toast.show();
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
ProvisionLogger.java | 21 import android.widget.Toast; 201 public static void toast(Context context, String toast) { method in class:ProvisionLogger 203 Toast.makeText(context, toast, Toast.LENGTH_LONG).show();
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ToastTest.java | 34 import android.widget.Toast; 37 private static final String TEST_TOAST_TEXT = "test toast"; 40 private Toast mToast; 66 new Toast(mActivity); 69 new Toast(null); 96 // sleep a while and then make sure do not show toast 119 mToast = Toast.makeText(mActivity, TEST_TOAST_TEXT, Toast.LENGTH_LONG); 148 Toast toast = new Toast(mActivity) local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowToast.java | 6 import android.widget.Toast; 17 * Shadow of {@code Toast} that tracks {@code Toast} requests. Hear hear! (*clink*) 20 @Implements(Toast.class) 27 @RealObject Toast toast; field in class:ShadowToast 30 public static Toast makeText(Context context, int resId, int duration) { 35 public static Toast makeText(Context context, CharSequence text, int duration) { 36 Toast toast = new Toast(null) local [all...] |
/packages/apps/MusicFX/src/com/android/musicfx/ |
ActivityMusic.java | 58 import android.widget.Toast; 795 final Toast toast = Toast.makeText(context, getString(R.string.headset_plug), duration); local [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
ConnectionAccessClientActivity.java | 34 import android.widget.Toast; 143 Toast.makeText(this, R.string.bt_connecting, Toast.LENGTH_SHORT).show(); 148 Toast.makeText(this, R.string.bt_connected, Toast.LENGTH_SHORT).show(); 162 String toast = msg.getData().getString(BluetoothChatService.TOAST); local 163 Toast.makeText(this, toast, Toast.LENGTH_SHORT).show() [all...] |
ConnectionAccessServerActivity.java | 38 import android.widget.Toast; 143 Toast.makeText(this, R.string.bt_listening, Toast.LENGTH_SHORT).show(); 149 String toast = msg.getData().getString(BluetoothChatService.TOAST); local 150 Toast.makeText(this, toast, Toast.LENGTH_LONG).show();
|
MessageTestActivity.java | 41 import android.widget.Toast; 318 String toast = msg.getData().getString(BluetoothChatService.TOAST); local 319 Toast.makeText(this, toast, Toast.LENGTH_LONG).show();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapEmailSettingsAdapter.java | 46 import android.widget.Toast; 333 int duration = Toast.LENGTH_SHORT; 335 Toast toast = Toast.makeText(mActivity, text, duration); local 336 toast.show(); 339 int duration = Toast.LENGTH_SHORT; 341 Toast toast = Toast.makeText(mActivity, text, duration) local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ViewPagerTabs.java | 33 import android.widget.Toast; 78 * Simulates actionbar tab behavior by showing a toast with the tab title when long clicked. 97 Toast toast = Toast.makeText(context, mPager.getAdapter().getPageTitle(mPosition), local 98 Toast.LENGTH_SHORT); 100 // Show the toast under the tab 101 toast.setGravity(Gravity.TOP | Gravity.CENTER_HORIZONTAL, 104 toast.show();
|
/packages/apps/Stk/src/com/android/stk/ |
StkAppService.java | 44 import android.widget.Toast; 512 * Display indication in the form of a toast to the user if required. 720 Toast toast = new Toast(mContext.getApplicationContext()); local 737 toast.setView(v); 738 toast.setDuration(Toast.LENGTH_LONG); 739 toast.setGravity(Gravity.BOTTOM, 0, 0); 740 toast.show() [all...] |
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactAdder.java | 41 import android.widget.Toast; 221 int duration = Toast.LENGTH_SHORT; 222 Toast toast = Toast.makeText(ctx, txt, duration); local 223 toast.show();
|
/external/chromium_org/ui/message_center/views/ |
message_popup_collection.cc | 38 // Timeout between the last user-initiated close of the toast and the moment 39 // when normal layout/update of the toast stack continues. If the last toast was 158 ToastContentsView* toast = local 161 toast->SetContents(view, /*a11y_feedback_for_updates=*/false); 162 toasts_.push_back(toast); 163 view->set_controller(toast); 165 gfx::Size preferred_size = toast->GetPreferredSize(); 167 // The toast slides in from the edge of the screen horizontally. 175 toast->RevealWithAnimation(origin) 227 ToastContentsView* toast = toasts_.front(); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropActivity.java | 43 import android.widget.Toast; 237 * Display toast for image loading failure. 241 Toast toast = Toast.makeText(this, text, Toast.LENGTH_SHORT); local 242 toast.show(); 334 Toast.makeText(this, R.string.setting_wallpaper, Toast.LENGTH_LONG).show();
|
/external/chromium_org/third_party/skia/platform_tools/android/app/src/com/skia/ |
SkiaSampleActivity.java | 25 import android.widget.Toast; 216 Toast.makeText(SkiaSampleActivity.this, (String) msg.obj, 217 Toast.LENGTH_SHORT).show(); 245 String toast = getString(R.string.file_saved).replace("%s", title); local 246 mHandler.obtainMessage(TOAST_DOWNLOAD, toast).sendToTarget();
|
/external/skia/platform_tools/android/app/src/com/skia/ |
SkiaSampleActivity.java | 25 import android.widget.Toast; 216 Toast.makeText(SkiaSampleActivity.this, (String) msg.obj, 217 Toast.LENGTH_SHORT).show(); 245 String toast = getString(R.string.file_saved).replace("%s", title); local 246 mHandler.obtainMessage(TOAST_DOWNLOAD, toast).sendToTarget();
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
AlbumSetPage.java | 34 import android.widget.Toast; 214 WeakReference<Toast> mEmptyAlbumToast = null; 217 Toast toast; local 219 toast = mEmptyAlbumToast.get(); 220 if (toast != null) { 221 toast.show(); 225 toast = Toast.makeText(mActivity, R.string.empty_album, toastLength); 226 mEmptyAlbumToast = new WeakReference<Toast>(toast) 232 Toast toast = mEmptyAlbumToast.get(); local [all...] |