Searched refs:context (Results 501 - 525 of 1275) sorted by relevance

<<21222324252627282930>>

/frameworks/base/core/java/android/preference/
H A DDialogPreference.java68 public DialogPreference(Context context, AttributeSet attrs, int defStyle) { argument
69 super(context, attrs, defStyle);
71 TypedArray a = context.obtainStyledAttributes(attrs,
89 public DialogPreference(Context context, AttributeSet attrs) { argument
90 this(context, attrs, com.android.internal.R.attr.dialogPreferenceStyle);
277 Context context = getContext();
281 mBuilder = new AlertDialog.Builder(context)
H A DSeekBarPreference.java40 Context context, AttributeSet attrs, int defStyle) {
41 super(context, attrs, defStyle);
42 TypedArray a = context.obtainStyledAttributes(attrs,
49 public SeekBarPreference(Context context, AttributeSet attrs) { argument
50 this(context, attrs, 0);
53 public SeekBarPreference(Context context) { argument
54 this(context, null);
39 SeekBarPreference( Context context, AttributeSet attrs, int defStyle) argument
/frameworks/base/core/java/android/provider/
H A DCallLog.java268 * @param context the context used to get the ContentResolver
278 public static Uri addCall(CallerInfo ci, Context context, String number, argument
280 final ContentResolver resolver = context.getContentResolver();
357 removeExpiredEntries(context);
364 * @param context Used to get the content resolver.
368 public static String getLastOutgoingCall(Context context) { argument
369 final ContentResolver resolver = context.getContentResolver();
387 private static void removeExpiredEntries(Context context) { argument
388 final ContentResolver resolver = context
[all...]
/frameworks/base/core/java/android/util/
H A DJsonWriter.java251 JsonScope context = peek();
252 if (context != nonempty && context != empty) {
257 if (context == nonempty) {
477 JsonScope context = peek();
478 if (context == JsonScope.NONEMPTY_OBJECT) { // first in object
480 } else if (context != JsonScope.EMPTY_OBJECT) { // not in an object!
H A DNtpTrustedTime.java52 public static synchronized NtpTrustedTime getInstance(Context context) { argument
54 final Resources res = context.getResources();
55 final ContentResolver resolver = context.getContentResolver();
/frameworks/base/core/java/android/widget/
H A DCheckedTextView.java53 public CheckedTextView(Context context) { argument
54 this(context, null);
57 public CheckedTextView(Context context, AttributeSet attrs) { argument
58 this(context, attrs, R.attr.checkedTextViewStyle);
61 public CheckedTextView(Context context, AttributeSet attrs, int defStyle) { argument
62 super(context, attrs, defStyle);
64 TypedArray a = context.obtainStyledAttributes(attrs,
H A DCompoundButton.java59 public CompoundButton(Context context) { argument
60 this(context, null);
63 public CompoundButton(Context context, AttributeSet attrs) { argument
64 this(context, attrs, 0);
67 public CompoundButton(Context context, AttributeSet attrs, int defStyle) { argument
68 super(context, attrs, defStyle);
71 context.obtainStyledAttributes(
H A DToast.java86 * @param context The context to use. Usually your {@link android.app.Application}
89 public Toast(Context context) { argument
90 mContext = context;
92 mTN.mY = context.getResources().getDimensionPixelSize(
230 * @param context The context to use. Usually your {@link android.app.Application}
237 public static Toast makeText(Context context, CharSequence text, int duration) { argument
238 Toast result = new Toast(context);
241 context
263 makeText(Context context, int resId, int duration) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarOverlayLayout.java50 public ActionBarOverlayLayout(Context context) { argument
51 super(context);
52 init(context);
55 public ActionBarOverlayLayout(Context context, AttributeSet attrs) { argument
56 super(context, attrs);
57 init(context);
60 private void init(Context context) { argument
/frameworks/base/core/java/android/animation/
H A DAnimatorInflater.java61 * @param context Application context used to access resources
66 public static Animator loadAnimator(Context context, int id) argument
71 parser = context.getResources().getAnimation(id);
72 return createAnimatorFromXml(context, parser);
156 private static ObjectAnimator loadObjectAnimator(Context context, AttributeSet attrs) argument
161 loadAnimator(context, attrs, anim);
164 context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.PropertyAnimator);
176 * Creates a new animation whose parameters come from the specified context and
179 * @param context th
182 loadAnimator(Context context, AttributeSet attrs, ValueAnimator anim) argument
[all...]
/frameworks/base/core/java/android/net/
H A DProxy.java207 * @param context the context which will be passed to
216 public static final HttpHost getPreferredHttpHost(Context context, argument
218 java.net.Proxy prefProxy = getProxy(context, url);
287 Context context) {
289 mContext = context;
294 HttpRequest request, HttpContext context) {
300 HttpContext context) {
306 HttpContext context) {
317 public static final HttpRoutePlanner getAndroidProxySelectorRoutePlanner(Context context) { argument
286 AndroidProxySelectorRoutePlanner(SchemeRegistry schreg, ProxySelector prosel, Context context) argument
293 chooseProxy(List<java.net.Proxy> proxies, HttpHost target, HttpRequest request, HttpContext context) argument
299 determineProxy(HttpHost target, HttpRequest request, HttpContext context) argument
305 determineRoute(HttpHost target, HttpRequest request, HttpContext context) argument
[all...]
/frameworks/base/core/java/android/speech/
H A DSpeechRecognizer.java153 private SpeechRecognizer(final Context context, final ComponentName serviceComponent) { argument
154 mContext = context;
187 * @param context with which {@code SpeechRecognizer} will be created
190 public static boolean isRecognitionAvailable(final Context context) { argument
191 final List<ResolveInfo> list = context.getPackageManager().queryIntentServices(
202 * @param context in which to create {@code SpeechRecognizer}
205 public static SpeechRecognizer createSpeechRecognizer(final Context context) { argument
206 return createSpeechRecognizer(context, null);
220 * @param context in which to create {@code SpeechRecognizer}
225 public static SpeechRecognizer createSpeechRecognizer(final Context context, argument
[all...]
/frameworks/base/core/java/android/view/animation/
H A DAnimationUtils.java61 * @param context Application context used to access resources
66 public static Animation loadAnimation(Context context, int id) argument
71 parser = context.getResources().getAnimation(id);
72 return createAnimationFromXml(context, parser);
139 * @param context Application context used to access resources
144 public static LayoutAnimationController loadLayoutAnimation(Context context, int id) argument
149 parser = context.getResources().getAnimation(id);
150 return createLayoutAnimationFromXml(context, parse
267 loadInterpolator(Context context, int id) argument
[all...]
H A DRotateAnimation.java45 * @param context Application context to use
48 public RotateAnimation(Context context, AttributeSet attrs) { argument
49 super(context, attrs);
51 TypedArray a = context.obtainStyledAttributes(attrs,
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java67 public MenuPopupHelper(Context context, MenuBuilder menu) { argument
68 this(context, menu, null, false);
71 public MenuPopupHelper(Context context, MenuBuilder menu, View anchorView) { argument
72 this(context, menu, anchorView, false);
75 public MenuPopupHelper(Context context, MenuBuilder menu, argument
77 mContext = context;
78 mInflater = LayoutInflater.from(context);
82 final Resources res = context.getResources();
220 public void initForMenu(Context context, MenuBuilder menu) { argument
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
H A DMyGLSurfaceView.java50 public MyGLSurfaceView(Context context) { argument
51 super(context, null);
54 public MyGLSurfaceView(Context context, AttributeSet attributeSet) { argument
55 super(context, attributeSet);
56 init(context);
59 private void init(Context context) { argument
61 mRenderer = new MyRenderer(context);
83 public MyRenderer(Context context) { argument
84 mContext = context;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/
H A DCameraSource.java133 public void prepare(FilterContext context) { argument
136 mFrameExtractor = new ShaderProgram(context, mFrameShader);
140 public void open(FilterContext context) { argument
153 mCameraFrame = (GLFrame)context.getFrameManager().newBoundFrame(mOutputFormat,
172 public void process(FilterContext context) { argument
203 Frame output = context.getFrameManager().newFrame(mOutputFormat);
219 public void close(FilterContext context) { argument
229 public void tearDown(FilterContext context) { argument
236 public void fieldPortValueUpdated(String name, FilterContext context) { argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSearchPanelView.java69 public SearchPanelView(Context context, AttributeSet attrs) { argument
70 this(context, attrs, 0);
73 public SearchPanelView(Context context, AttributeSet attrs, int defStyle) { argument
74 super(context, attrs, defStyle);
75 mContext = context;
218 Context context = getContext();
219 if (Settings.System.getIntForUser(context.getContentResolver(),
221 Resources res = context.getResources();
222 Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBarIconView.java54 public StatusBarIconView(Context context, String slot, Notification notification) { argument
55 super(context);
56 final Resources res = context.getResources();
80 public StatusBarIconView(Context context, AttributeSet attrs) { argument
81 super(context, attrs);
82 final Resources res = context.getResources();
160 * @param context Context to use to get resources if iconPackage is not set
164 public static Drawable getIcon(Context context, StatusBarIcon icon) { argument
173 r = context.getPackageManager()
180 r = context
[all...]
/frameworks/base/core/java/android/content/
H A DContentProvider.java127 * @param context A Context object which should be some mock instance (like the
138 Context context,
142 mContext = context;
277 final Context context = getContext();
289 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) {
306 if (context.checkPermission(pathPerm, pid, uid) == PERMISSION_GRANTED) {
324 if (context.checkUriPermission(uri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION)
338 final Context context = getContext();
350 if (context.checkPermission(componentPerm, pid, uid) == PERMISSION_GRANTED) {
367 if (context
137 ContentProvider( Context context, String readPermission, String writePermission, PathPermission[] pathPermissions) argument
1038 attachInfo(Context context, ProviderInfo info) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebSyncManager.java62 protected WebSyncManager(Context context, String name) { argument
64 if (context != null) {
65 mDataBase = WebViewDatabase.getInstance(context);
71 "WebSyncManager can't be created without context");
H A DWebViewDatabaseClassic.java103 private WebViewDatabaseClassic(final Context context) { argument
104 JniUtil.setContext(context);
108 init(context);
115 public static WebViewDatabaseClassic getInstance(Context context) { argument
118 sInstance = new WebViewDatabaseClassic(context);
124 private synchronized void init(Context context) { argument
129 initDatabase(context);
132 context.deleteDatabase(CACHE_DATABASE_FILE);
139 private void initDatabase(Context context) { argument
141 sDatabase = context
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DStandaloneActionMode.java43 public StandaloneActionMode(Context context, ActionBarContextView view, argument
45 mContext = context;
49 mMenu = new MenuBuilder(context).setDefaultShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/
H A DKeyguardSecurityModel.java45 KeyguardSecurityModel(Context context) { argument
46 mContext = context;
47 mLockPatternUtils = new LockPatternUtils(context);
/frameworks/base/test-runner/src/android/test/
H A DProviderTestCase2.java136 new MockContext2(), // The context that most methods are
138 getContext(), // The context that file methods are delegated to
195 * @param targetContext The context to use as the basis of the IsolatedContext
215 new MockContext(), // The context that most methods are delegated to
216 targetContext, // The context that file methods are delegated to
218 Context context = new IsolatedContext(resolver, targetContextWrapper);
219 DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql);
222 provider.attachInfo(context, null);

Completed in 649 milliseconds

<<21222324252627282930>>