Home
last modified time | relevance | path

Searched refs:makeText (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/base/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/
DTestEnrollmentActivity.java69 Toast.makeText( in onEnrollButtonClicked()
73 Toast.makeText(this, "Failed to enroll!!!" + modelUuid, Toast.LENGTH_SHORT).show(); in onEnrollButtonClicked()
84 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
89 Toast.makeText(this, "Successfully un-enrolled, model UUID=" + soundModel.uuid, in onUnEnrollButtonClicked()
93 Toast.makeText(this, "Failed to un-enroll!!!", Toast.LENGTH_SHORT).show(); in onUnEnrollButtonClicked()
104 Toast.makeText(this, "Sound model not found!!!", Toast.LENGTH_SHORT).show(); in onReEnrollButtonClicked()
114 Toast.makeText(this, "Successfully re-enrolled, model UUID=" + updated.uuid, in onReEnrollButtonClicked()
118 Toast.makeText(this, "Failed to re-enroll!!!", Toast.LENGTH_SHORT).show(); in onReEnrollButtonClicked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSysUIToast.java26 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) { in makeText() method in SysUIToast
27 return makeText(context, context.getString(resId), duration); in makeText()
30 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() method in SysUIToast
31 Toast toast = Toast.makeText(context, text, duration); in makeText()
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/
DMainActivity.java204 Toast.makeText( in onCreate()
207 Toast.makeText(MainActivity.this, "Config push FAILED!", in onCreate()
212 Toast.makeText(MainActivity.this, "failed to read config", Toast.LENGTH_LONG); in onCreate()
229 Toast.makeText(MainActivity.this, in onCreate()
233 Toast.makeText(MainActivity.this, "Statsd did not set receiver", in onCreate()
239 Toast.makeText(MainActivity.this, "failed to set receiver", Toast.LENGTH_LONG); in onCreate()
253 Toast.makeText(MainActivity.this, "Receiver remove", Toast.LENGTH_LONG) in onCreate()
256 Toast.makeText(MainActivity.this, "Statsd did not remove receiver", in onCreate()
262 Toast.makeText( in onCreate()
273 Toast.makeText(MainActivity.this, "Statsd NOT running!", Toast.LENGTH_LONG).show(); in statsdRunning()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DToastTest.java89 mToast1 = Toast.makeText(ToastTest.this, text, Toast.LENGTH_SHORT);
97 mToast1 = Toast.makeText(ToastTest.this, "hi 1", Toast.LENGTH_SHORT);
121 mToast2 = Toast.makeText(ToastTest.this, "hi 2", Toast.LENGTH_SHORT);
135 Toast toast = Toast.makeText(ToastTest.this, "LEFT", Toast.LENGTH_SHORT);
144 Toast toast = Toast.makeText(ToastTest.this, "FILL_HORIZONTAL",
/frameworks/support/samples/SupportCarDemos/src/main/java/com/example/androidx/car/
DTextListItemActivity.java99 Toast.makeText(mContext, "Clicked!", Toast.LENGTH_SHORT).show();
103 Toast.makeText(v.getContext(),
164 v -> Toast.makeText( in SampleProvider()
167 v -> Toast.makeText( in SampleProvider()
175 v -> Toast.makeText( in SampleProvider()
178 v -> Toast.makeText( in SampleProvider()
187 v -> Toast.makeText( in SampleProvider()
190 v -> Toast.makeText( in SampleProvider()
231 Toast.makeText(v.getContext(), String.format("%s x %s dp", pixelToDip(c, size.x), in SampleProvider()
245 Toast.makeText(v.getContext(), in SampleProvider()
[all …]
DSeekbarListItemActivity.java61 Toast.makeText(mContext, "" + progress, Toast.LENGTH_SHORT).show();
129 item.setPrimaryActionIconListener(v -> Toast.makeText(mContext, in SampleProvider()
155 item.setSupplementalIconListener(v -> Toast.makeText(mContext, in SampleProvider()
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
DActionBarFragmentMenu.java147 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
151 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
187 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
207 Toast.makeText(getActivity(), "Created nested fragment's menu.", in onCreateOptionsMenu()
215 Toast.makeText(getActivity(), "Destroyed nested fragment's menu.", in onDestroyOptionsMenu()
222 Toast.makeText(getActivity(), "Prepared nested fragment's menu.", in onPrepareOptionsMenu()
230 Toast.makeText(getActivity(), "Selected nested fragment's menu item.", in onOptionsItemSelected()
DToolbarFragmentPagerMenu.java120 Toast.makeText(getActivity(), "Selected Menu 1a.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
124 Toast.makeText(getActivity(), "Selected Menu 1b.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
162 Toast.makeText(getActivity(), "Selected Menu 2.", Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
DActionBarUsage.java82 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
106 Toast.makeText(ActionBarUsage.this,
DActionBarPreferences.java46 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
DActionBarMechanics.java70 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show(); in onOptionsItemSelected()
/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
DSnackbarUsage.java57 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showAction()
74 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showLongAction()
86 Toast.makeText(SnackbarUsage.this, "Snackbar Action pressed", in showLongLongAction()
/frameworks/support/core/ktx/src/main/java/androidx/core/widget/
DToast.kt31 return Toast.makeText(this, text, duration).apply { show() } in toast()
41 return Toast.makeText(this, resId, duration).apply { show() } in toast()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectViewer.java84 Toast.makeText(mContext, R.string.start_activity_failed_message, in onScanCompleted()
178 Toast.makeText(this, R.string.object_saved_message, Toast.LENGTH_SHORT).show(); in importObject()
183 Toast.makeText(this, R.string.save_failed_message, Toast.LENGTH_SHORT).show(); in importObject()
189 Toast.makeText(this, R.string.object_deleted_message, Toast.LENGTH_SHORT).show(); in deleteObject()
192 Toast.makeText(this, R.string.delete_failed_message, Toast.LENGTH_SHORT).show(); in deleteObject()
/frameworks/base/packages/BackupRestoreConfirmation/src/com/android/backupconfirm/
DBackupRestoreConfirmation.java94 … Toast.makeText(mContext, R.string.toast_backup_started, Toast.LENGTH_LONG).show(); in handleMessage()
105 Toast.makeText(mContext, R.string.toast_backup_ended, Toast.LENGTH_LONG).show(); in handleMessage()
111 … Toast.makeText(mContext, R.string.toast_restore_started, Toast.LENGTH_LONG).show(); in handleMessage()
122 … Toast.makeText(mContext, R.string.toast_restore_ended, Toast.LENGTH_SHORT).show(); in handleMessage()
128 Toast.makeText(mContext, R.string.toast_timeout, Toast.LENGTH_LONG).show(); in handleMessage()
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
DSliceBroadcastReceiver.java53 Toast.makeText(context, message, Toast.LENGTH_SHORT).show(); in onReceive()
57 Toast.makeText(context, "value: " + range, Toast.LENGTH_SHORT).show(); in onReceive()
/frameworks/base/core/java/android/widget/
DToast.java269 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { in makeText() method in Toast
270 return makeText(context, null, text, duration); in makeText()
278 public static Toast makeText(@NonNull Context context, @Nullable Looper looper, in makeText() method in Toast
305 public static Toast makeText(Context context, @StringRes int resId, @Duration int duration) in makeText() method in Toast
307 return makeText(context, context.getResources().getText(resId), duration); in makeText()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DMainActivity.java113 Toast.makeText(this, "We need this permission", Toast.LENGTH_LONG).show(); in checkPermission()
136 Toast.makeText(this, "We need permissions", Toast.LENGTH_LONG).show(); in onRequestPermissionsResult()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/app/
DHomeActivity.java100 … Toast.makeText(HomeActivity.this, "Exporting...", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
115 Toast.makeText(HomeActivity.this, "Done", Toast.LENGTH_LONG).show(); in onOptionsItemSelected()
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
DActivityTestMain.java113 Toast.makeText(ActivityTestMain.this, in onReceive()
180 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
215 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
239 Toast.makeText(ActivityTestMain.this, in onCreateOptionsMenu()
282 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
306 Toast.makeText(ActivityTestMain.this, "Failed to bind", in onCreateOptionsMenu()
DSingleUserService.java32 Toast.makeText(this, in onCreate()
DServiceUserTarget.java32 Toast.makeText(this, in onCreate()
/frameworks/support/samples/SupportMediaDemos/src/main/java/com/example/androidx/media/
DVideoViewTest.java150 Toast.makeText(this, "speed rate: " + String.format("%.2f", mSpeed), Toast.LENGTH_SHORT) in onTouchEvent()
281 Toast.makeText(this, "switch to TextureView", Toast.LENGTH_SHORT).show(); in onConfigurationChanged()
285 Toast.makeText(this, "switch to SurfaceView", Toast.LENGTH_SHORT).show(); in onConfigurationChanged()
/frameworks/base/tools/aapt2/integration-tests/NamespaceTest/App/src/com/android/aapt/namespace/app/
DMainActivity.java32 Toast.makeText(this, tv.getTextViewAttr(), Toast.LENGTH_LONG).show(); in onCreate()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/
DTrackerActivity.java187 Toast.makeText(this, "Successfully exported data to " + in exportFile()
191 Toast.makeText(this, "Error exporting file: " + in exportFile()

12345