/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/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;
|
AlarmUtils.java | 24 import android.widget.Toast; 116 Toast toast = Toast.makeText(context, toastText, Toast.LENGTH_LONG); local 117 ToastMaster.setToast(toast); 118 toast.show();
|
/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...] |
/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...] |
/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 205 ToastContentsView* toast = local 208 toast->SetContents(view, /*a11y_feedback_for_updates=*/false); 209 toasts_.push_back(toast); 210 view->set_controller(toast); 212 gfx::Size preferred_size = toast->GetPreferredSize(); 214 // The toast slides in from the edge of the screen horizontally. 222 toast->RevealWithAnimation(origin) 273 ToastContentsView* toast = toasts_.front(); local [all...] |
message_popup_collection.h | 53 // Container for popup toasts. Because each toast is a frameless window rather 56 // contents of each toast are for the message center and layout strategy would 63 // |parent| specifies the parent widget of the toast windows. The default 91 // Since these events are really coming from individual toast widgets, 108 // Removes the toast from our internal list of toasts; this is called when the 109 // toast is irrevocably closed (such as within RemoveToast). 110 void ForgetToast(ToastContentsView* toast); 141 void RemoveToast(ToastContentsView* toast, bool mark_as_shown); 143 // Returns the x-origin for the given toast bounds in the current work area. 146 // Creates new widgets for new toast notifications, and updates |toasts_| an [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();
|
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();
|
/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);
|
Game.java | 24 import android.widget.Toast; 350 CustomToastSystem toast = BaseObject.sSystemRegistry.customToastSystem; local 351 if (toast != null) { 353 toast.toast(context.getString(R.string.memory_playback_start), Toast.LENGTH_LONG); 356 toast.toast(context.getString(R.string.memory_playback_complete), Toast.LENGTH_LONG);
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
BluetoothHeadsetHandover.java | 36 import android.widget.Toast; 204 toast(mContext.getString(R.string.disconnecting_headset ) + " " + 216 toast(mContext.getString(R.string.disconnected_headset) + " " + mName); 268 toast(mContext.getString(R.string.connecting_headset) + " " + mName + "..."); 280 toast(mContext.getString(R.string.connected_headset) + " " + mName); 284 toast (mContext.getString(R.string.connect_headset_failed) + " " + mName); 293 toast(mContext.getString(R.string.pairing_headset) + " " + mName + "..."); 295 toast(mContext.getString(R.string.pairing_headset_failed) + " " + mName); 316 toast(mContext.getString(R.string.pairing_headset_failed) + " " + mName); 360 void toast(CharSequence text) method in class:BluetoothHeadsetHandover [all...] |
/packages/apps/Dialer/src/com/android/dialer/list/ |
SearchFragment.java | 23 import android.widget.Toast; 116 Toast toast = Toast.makeText(getActivity(), R.string.add_contact_not_available, local 117 Toast.LENGTH_SHORT); 118 toast.show();
|
/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();
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/notifications/ |
background.js | 17 'Time to make the toast.' // The body.
|
/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...] |
/packages/apps/InCallUI/src/com/android/incallui/ |
InCallActivity.java | 36 import android.widget.Toast; 383 private void toast(String text) { method in class:InCallActivity 384 final Toast toast = Toast.makeText(this, text, Toast.LENGTH_SHORT); local 386 toast.show();
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
ChangedContacts.java | 39 import android.widget.Toast; 62 Toast toast = Toast.makeText(context, "Contacts database created.", Toast.LENGTH_SHORT); 63 toast.show();
|
/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...] |
/packages/apps/Stk/src/com/android/stk/ |
StkAppService.java | 44 import android.widget.Toast; 474 * Display indication in the form of a toast to the user if required. 682 Toast toast = new Toast(mContext.getApplicationContext()); local 699 toast.setView(v); 700 toast.setDuration(Toast.LENGTH_LONG); 701 toast.setGravity(Gravity.BOTTOM, 0, 0); 702 toast.show() [all...] |