Searched refs:context (Results 276 - 300 of 3259) sorted by path

<<11121314151617181920>>

/frameworks/base/core/java/android/service/restrictions/
H A DRestrictionsReceiver.java64 public abstract void onRequestPermission(Context context, argument
73 public void onReceive(Context context, Intent intent) { argument
82 onRequestPermission(context, packageName, requestType, requestId, request);
/frameworks/base/core/java/android/service/voice/
H A DVoiceInteractionService.java142 public static boolean isActiveService(Context context, ComponentName service) { argument
143 String cur = Settings.Secure.getString(context.getContentResolver(),
H A DVoiceInteractionSession.java958 public VoiceInteractionSession(Context context) { argument
959 this(context, new Handler());
962 public VoiceInteractionSession(Context context, Handler handler) { argument
963 mContext = context;
964 mHandlerCaller = new HandlerCaller(context, handler.getLooper(),
1145 * Return which show context flags have been disabled by the user through the system
/frameworks/base/core/java/android/service/vr/
H A DVrListenerService.java130 * @param context the {@link Context} to use for looking up the requested component.
138 public static final boolean isVrModePackageEnabled(@NonNull Context context, argument
140 ActivityManager am = context.getSystemService(ActivityManager.class);
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java1105 IWallpaperEngineWrapper(WallpaperService context, argument
1108 mCaller = new HandlerCaller(context, context.getMainLooper(), this, true);
1252 public IWallpaperServiceWrapper(WallpaperService context) { argument
1253 mTarget = context;
/frameworks/base/core/java/android/speech/
H A DRecognizerIntent.java327 * @param context a context object
330 public static final Intent getVoiceDetailsIntent(Context context) { argument
332 ResolveInfo ri = context.getPackageManager().resolveActivity(
H A DSpeechRecognizer.java159 private SpeechRecognizer(final Context context, final ComponentName serviceComponent) { argument
160 mContext = context;
193 * @param context with which {@code SpeechRecognizer} will be created
196 public static boolean isRecognitionAvailable(final Context context) { argument
197 final List<ResolveInfo> list = context.getPackageManager().queryIntentServices(
208 * @param context in which to create {@code SpeechRecognizer}
211 public static SpeechRecognizer createSpeechRecognizer(final Context context) { argument
212 return createSpeechRecognizer(context, null);
226 * @param context in which to create {@code SpeechRecognizer}
231 public static SpeechRecognizer createSpeechRecognizer(final Context context, argument
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DAudioPlaybackQueueItem.java40 Context context, Uri uri, AudioOutputParams audioParams) {
43 mContext = context;
38 AudioPlaybackQueueItem(UtteranceProgressDispatcher dispatcher, Object callerIdentity, Context context, Uri uri, AudioOutputParams audioParams) argument
H A DTextToSpeech.java688 * @param context
689 * The context this instance is running in.
695 public TextToSpeech(Context context, OnInitListener listener) { argument
696 this(context, listener, null);
703 * @param context
704 * The context this instance is running in.
711 public TextToSpeech(Context context, OnInitListener listener, String engine) { argument
712 this(context, listener, engine, null, true);
721 public TextToSpeech(Context context, OnInitListener listener, String engine, argument
723 mContext = context;
[all...]
/frameworks/base/core/java/android/text/
H A DTextUtils.java1242 * @param context the {@code Context} to get the {@code moreId} resource from. If {@code null},
1255 public static CharSequence listEllipsize(@Nullable Context context, argument
1269 if (context == null) {
1273 res = context.getResources();
/frameworks/base/core/java/android/text/format/
H A DDateFormat.java164 * @param context the context to use for the content resolver
167 public static boolean is24HourFormat(Context context) { argument
168 return is24HourFormat(context, UserHandle.myUserId());
173 * @param context the context to use for the content resolver
179 public static boolean is24HourFormat(Context context, int userHandle) { argument
180 String value = Settings.System.getStringForUser(context.getContentResolver(),
184 Locale locale = context.getResources().getConfiguration().locale;
253 * @param context th
256 getTimeFormat(Context context) argument
266 getTimeFormatString(Context context) argument
277 getTimeFormatString(Context context, int userHandle) argument
289 getDateFormat(Context context) argument
299 getLongDateFormat(Context context) argument
309 getMediumDateFormat(Context context) argument
322 getDateFormatOrder(Context context) argument
[all...]
H A DDateUtils.java527 * @param context the context is required only if the time is shown
534 public static String formatDateRange(Context context, long startMillis, argument
537 return formatDateRange(context, f, startMillis, endMillis, flags).toString();
548 * @param context the context is required only if the time is shown
558 public static Formatter formatDateRange(Context context, Formatter formatter, long startMillis, argument
560 return formatDateRange(context, formatter, startMillis, endMillis, flags, null);
714 * @param context the context i
726 formatDateRange(Context context, Formatter formatter, long startMillis, long endMillis, int flags, String timeZone) argument
786 formatDateTime(Context context, long millis, int flags) argument
[all...]
H A DFormatter.java55 private static String bidiWrap(@NonNull Context context, String source) { argument
56 final Locale locale = context.getResources().getConfiguration().locale;
73 * <p>If the context has a right-to-left locale, the returned string is wrapped in bidi
78 * @param context Context to use to load the localized units
82 public static String formatFileSize(@Nullable Context context, long sizeBytes) { argument
83 if (context == null) {
86 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0);
87 return bidiWrap(context, context.getString(com.android.internal.R.string.fileSizeSuffix,
95 public static String formatShortFileSize(@Nullable Context context, lon argument
206 formatShortElapsedTime(Context context, long millis) argument
267 formatShortElapsedTimeRoundingUpToMinutes(Context context, long millis) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DAllCapsTransformationMethod.java41 public AllCapsTransformationMethod(Context context) { argument
42 mLocale = context.getResources().getConfiguration().getLocales().get(0);
H A DCharacterPickerDialog.java55 public CharacterPickerDialog(Context context, View view, argument
58 super(context, com.android.internal.R.style.Theme_Panel);
64 mInflater = LayoutInflater.from(context);
119 public OptionsAdapter(Context context) { argument
H A DTextKeyListener.java263 private void initPrefs(Context context) { argument
264 final ContentResolver contentResolver = context.getContentResolver();
307 /* package */ int getPrefs(Context context) { argument
310 initPrefs(context);
/frameworks/base/core/java/android/text/style/
H A DImageSpan.java53 public ImageSpan(Context context, Bitmap b) { argument
54 this(context, b, ALIGN_BOTTOM);
61 public ImageSpan(Context context, Bitmap b, int verticalAlignment) { argument
63 mContext = context;
64 mDrawable = context != null
65 ? new BitmapDrawable(context.getResources(), b)
99 public ImageSpan(Context context, Uri uri) { argument
100 this(context, uri, ALIGN_BOTTOM);
107 public ImageSpan(Context context, Uri uri, int verticalAlignment) { argument
109 mContext = context;
114 ImageSpan(Context context, @DrawableRes int resourceId) argument
122 ImageSpan(Context context, @DrawableRes int resourceId, int verticalAlignment) argument
[all...]
H A DSuggestionSpan.java112 * @param context Context for the application
116 public SuggestionSpan(Context context, String[] suggestions, int flags) { argument
117 this(context, null, suggestions, flags, null);
130 * @param context Context for the application
138 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument
146 } else if (context != null) {
147 // TODO: Consider to context.getResources().getResolvedLocale() instead.
148 sourceLocale = context.getResources().getConfiguration().locale;
150 Log.e("SuggestionSpan", "No locale or context specified in SuggestionSpan constructor");
156 if (context !
173 initStyle(Context context) argument
393 notifySelection(Context context, String original, int index) argument
[all...]
H A DTextAppearanceSpan.java44 public TextAppearanceSpan(Context context, int appearance) { argument
45 this(context, appearance, -1);
56 public TextAppearanceSpan(Context context, int appearance, int colorList) { argument
60 context.obtainStyledAttributes(appearance,
99 a = context.obtainStyledAttributes(com.android.internal.R.style.Theme,
H A DURLSpan.java71 Context context = widget.getContext();
73 intent.putExtra(Browser.EXTRA_APPLICATION_ID, context.getPackageName());
75 context.startActivity(intent);
/frameworks/base/core/java/android/transition/
H A DArcMotion.java63 public ArcMotion(Context context, AttributeSet attrs) { argument
64 super(context, attrs);
65 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ArcMotion);
H A DAutoTransition.java42 public AutoTransition(Context context, AttributeSet attrs) { argument
43 super(context, attrs);
H A DChangeBounds.java171 public ChangeBounds(Context context, AttributeSet attrs) { argument
172 super(context, attrs);
174 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.ChangeBounds);
H A DChangeClipBounds.java45 public ChangeClipBounds(Context context, AttributeSet attrs) { argument
46 super(context, attrs);
H A DChangeImageTransform.java75 public ChangeImageTransform(Context context, AttributeSet attrs) { argument
76 super(context, attrs);

Completed in 4755 milliseconds

<<11121314151617181920>>