/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...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
SysUIToast.java | 20 import android.widget.Toast; 24 public static Toast makeText(Context context, CharSequence text, int duration) { 25 Toast toast = Toast.makeText(context, text, duration); local 26 toast.getWindowParams().privateFlags |= 28 return toast;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
ToastMaster.java | 19 import android.widget.Toast; 23 private static Toast sToast = null; 29 public static void setToast(Toast toast) { 32 sToast = toast;
|
/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...] |
/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...] |
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
ToastTest.java | 32 import android.widget.Toast; 44 Toast mToast1; 45 Toast mToast2; 89 mToast1 = Toast.makeText(ToastTest.this, text, Toast.LENGTH_SHORT); 94 new Test("Make Toast #1") { 97 mToast1 = Toast.makeText(ToastTest.this, "hi 1", Toast.LENGTH_SHORT); 101 new Test("Show Toast #1") { 108 new Test("Update Toast #1") [all...] |
/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();
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothDevicePickerActivity.java | 23 import android.widget.Toast; 42 Toast toast = Toast.makeText(this, error, Toast.LENGTH_SHORT); local 43 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...] |
/frameworks/base/services/core/java/com/android/server/am/ |
LockTaskNotify.java | 25 import android.widget.Toast; 39 private Toast mLastToast; 77 private Toast makeAllUserToastAndShow(String text) { 78 Toast toast = Toast.makeText(mContext, text, Toast.LENGTH_LONG); local 79 toast.getWindowParams().privateFlags |= 81 toast.show(); 82 return toast; [all...] |
/developers/build/prebuilts/gradle/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
AddFileActivity.java | 30 import android.widget.Toast; 50 * if intent parameters are specified incorrectly or it will display Toast messages to the user 150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local 151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); 152 toast.show(); 157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local 167 Toast toast = Toast.makeText(this, local 264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local [all...] |
/developers/samples/android/content/AutoBackupForApps/Application/src/main/java/com/example/android/autobackupsample/ |
AddFileActivity.java | 30 import android.widget.Toast; 50 * if intent parameters are specified incorrectly or it will display Toast messages to the user 150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local 151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); 152 toast.show(); 157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local 167 Toast toast = Toast.makeText(this, local 264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local [all...] |
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/ |
AddFileActivity.java | 30 import android.widget.Toast; 50 * if intent parameters are specified incorrectly or it will display Toast messages to the user 150 Toast toast = Toast.makeText(this, getText(R.string.file_exists), Toast.LENGTH_LONG); local 151 toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0); 152 toast.show(); 157 Toast toast = Toast.makeText(this, getText(R.string.file_size_is_invalid) local 167 Toast toast = Toast.makeText(this, local 264 Toast toast = Toast.makeText(this, message, Toast.LENGTH_LONG); local [all...] |
/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...] |
SplitTouchView.java | 28 import android.widget.Toast; 62 Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT); 63 toast.show();
|
/frameworks/base/tests/AccessibilityEventsLogger/src/com/android/tests/accessibilityeventslogger/ |
AELogger.java | 21 import android.widget.Toast; 60 final Toast toast = Toast.makeText(this, local 61 eventType + ": " + eventClass, Toast.LENGTH_SHORT); 62 toast.show();
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
BluetoothPeripheralHandover.java | 38 import android.widget.Toast; 225 toast(getToastString(R.string.disconnecting_peripheral)); 246 toast(getToastString(R.string.disconnecting_peripheral)); 255 toast(getToastString(R.string.disconnected_peripheral)); 266 toast(getToastString(R.string.disconnected_peripheral)); 331 toast(getToastString(R.string.connecting_peripheral)); 351 toast(getToastString(R.string.connecting_peripheral)); 362 toast(getToastString(R.string.connected_peripheral)); 366 toast (getToastString(R.string.connect_peripheral_failed)); 376 toast(getToastString(R.string.connected_peripheral)) 475 void toast(CharSequence text) { method in class:BluetoothPeripheralHandover [all...] |
/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();
|
/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();
|
/packages/apps/Stk/src/com/android/stk/ |
StkMain.java | 31 import android.widget.Toast; 106 Toast toast = Toast.makeText(context, resId, Toast.LENGTH_LONG); local 107 toast.setGravity(Gravity.BOTTOM, 0, 0); 108 toast.show();
|
/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
|
DiaryActivity.java | 30 import android.widget.Toast; 71 BaseObject.sSystemRegistry.customToastSystem.toast(getString(R.string.diary_found), Toast.LENGTH_SHORT);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
UiUtils.java | 45 import android.widget.Toast; 86 /** Show a simple toast at the bottom */ 91 /** Show a simple toast at the bottom */ 93 final Toast toast = Toast.makeText(getApplicationContext(), message, Toast.LENGTH_LONG); local 94 toast.setGravity(Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0); 95 toast.show(); 98 /** Show a simple toast at the default position * 100 final Toast toast = Toast.makeText(getApplicationContext(), local 108 final Toast toast = Toast.makeText(getApplicationContext(), 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();
|