Searched refs:context (Results 26 - 50 of 3259) sorted by relevance

1234567891011>>

/frameworks/support/design/tests/src/android/support/design/widget/
H A DNavigationTestView.java29 public NavigationTestView(Context context) { argument
30 this(context, null);
33 public NavigationTestView(Context context, AttributeSet attrs) { argument
34 this(context, attrs, 0);
37 public NavigationTestView(Context context, AttributeSet attrs, int defStyleAttr) { argument
38 super(context, attrs, defStyleAttr);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DRowHeaderView.java26 public RowHeaderView(Context context) { argument
27 this(context, null);
30 public RowHeaderView(Context context, AttributeSet attrs) { argument
31 this(context, attrs, R.attr.rowHeaderStyle);
34 public RowHeaderView(Context context, AttributeSet attrs, int defStyle) { argument
35 super(context, attrs, defStyle);
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DHorizontalGridViewEx.java25 public HorizontalGridViewEx(Context context) { argument
26 super(context);
29 public HorizontalGridViewEx(Context context, AttributeSet attrs) { argument
30 super(context, attrs);
33 public HorizontalGridViewEx(Context context, AttributeSet attrs, int defStyle) { argument
34 super(context, attrs, defStyle);
H A DVerticalGridViewEx.java25 public VerticalGridViewEx(Context context) { argument
26 super(context);
29 public VerticalGridViewEx(Context context, AttributeSet attrs) { argument
30 super(context, attrs);
33 public VerticalGridViewEx(Context context, AttributeSet attrs, int defStyle) { argument
34 super(context, attrs, defStyle);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
H A DCustomCollapsibleView.java26 public CustomCollapsibleView(Context context) { argument
27 this(context, null, 0);
30 public CustomCollapsibleView(Context context, argument
32 this(context, attrs, 0);
35 public CustomCollapsibleView(Context context, argument
37 super(context, attrs, defStyleAttr);
/frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/
H A DCustomDrawerLayout.java26 public CustomDrawerLayout(Context context) { argument
27 super(context);
30 public CustomDrawerLayout(Context context, AttributeSet attrs) { argument
31 super(context, attrs);
34 public CustomDrawerLayout(Context context, AttributeSet attrs, int defStyle) { argument
35 super(context, attrs, defStyle);
/frameworks/support/wear/src/android/support/wear/internal/widget/
H A DResourcesUtil.java35 public static int getScreenWidthPx(Context context) { argument
36 return context.getResources().getDisplayMetrics().widthPixels;
42 public static int getScreenHeightPx(Context context) { argument
43 return context.getResources().getDisplayMetrics().heightPixels;
50 public static int getFractionOfScreenPx(Context context, int screenPx, @FractionRes int resId) { argument
51 float marginPercent = context.getResources().getFraction(resId, 1, 1);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerServiceTestable.java64 public OwnersTestable(DpmMockContext context) { argument
65 super(context.userManager, context.userManagerInternal, context.packageManagerInternal);
66 mLegacyFile = new File(context.dataDir, LEGACY_FILE);
67 mDeviceOwnerFile = new File(context.dataDir, DEVICE_OWNER_FILE);
68 mUsersDataDir = new File(context.dataDir, "users");
88 public final DpmMockContext context; field in class:DevicePolicyManagerServiceTestable
91 public DevicePolicyManagerServiceTestable(DpmMockContext context, File dataDir) { argument
92 this(new MockInjector(context, dataDi
120 public final DpmMockContext context; field in class:DevicePolicyManagerServiceTestable.MockInjector
127 MockInjector(DpmMockContext context, File dataDir) argument
310 pendingIntentGetActivityAsUser(Context context, int requestCode, Intent intent, int flags, Bundle options, UserHandle user) argument
[all...]
H A DDevicePolicyManagerTestable.java27 public DevicePolicyManagerTestable(DpmMockContext context, argument
29 super(context, dpms, /* parentInstance = */ false);
35 return UserHandle.getUserId(dpms.context.binder.callingUid);
/frameworks/base/core/java/android/preference/
H A DPreferenceCategory.java37 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
38 super(context, attrs, defStyleAttr, defStyleRes);
41 public PreferenceCategory(Context context, AttributeSet attrs, int defStyleAttr) { argument
42 this(context, attrs, defStyleAttr, 0);
45 public PreferenceCategory(Context context, AttributeSet attrs) { argument
46 this(context, attrs, com.android.internal.R.attr.preferenceCategoryStyle);
49 public PreferenceCategory(Context context) { argument
50 this(context, null);
36 PreferenceCategory( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
/frameworks/base/core/java/android/view/
H A DOrientationListener.java43 * @param context for the OrientationListener.
45 public OrientationListener(Context context) { argument
46 mOrientationEventLis = new OrientationEventListenerInternal(context);
52 * @param context for the OrientationListener.
58 public OrientationListener(Context context, int rate) { argument
59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate);
63 OrientationEventListenerInternal(Context context) { argument
64 super(context);
67 OrientationEventListenerInternal(Context context, int rate) { argument
68 super(context, rat
[all...]
/frameworks/base/core/java/android/webkit/
H A DPluginStub.java33 * @param context The current application's Context.
36 public abstract View getEmbeddedView(int NPP, Context context); argument
43 * @param context The current application's Context.
46 public abstract View getFullScreenView(int NPP, Context context); argument
/frameworks/base/core/java/android/widget/
H A DRadioButton.java50 public RadioButton(Context context) { argument
51 this(context, null);
54 public RadioButton(Context context, AttributeSet attrs) { argument
55 this(context, attrs, com.android.internal.R.attr.radioButtonStyle);
58 public RadioButton(Context context, AttributeSet attrs, int defStyleAttr) { argument
59 this(context, attrs, defStyleAttr, 0);
62 public RadioButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
63 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DBackDropView.java31 public BackDropView(Context context) { argument
32 super(context);
35 public BackDropView(Context context, AttributeSet attrs) { argument
36 super(context, attrs);
39 public BackDropView(Context context, AttributeSet attrs, int defStyleAttr) { argument
40 super(context, attrs, defStyleAttr);
43 public BackDropView(Context context, AttributeSet attrs, int defStyleAttr, argument
45 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardIndicationTextView.java30 public KeyguardIndicationTextView(Context context) { argument
31 super(context);
34 public KeyguardIndicationTextView(Context context, AttributeSet attrs) { argument
35 super(context, attrs);
38 public KeyguardIndicationTextView(Context context, AttributeSet attrs, int defStyleAttr) { argument
39 super(context, attrs, defStyleAttr);
42 public KeyguardIndicationTextView(Context context, AttributeSet attrs, int defStyleAttr, argument
44 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DArraysCheckWidget.class ... 0_r4/s?defs= " (android.content.Context, android.util.AttributeSet) android.content.Context ...
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/
H A DGenericView.java27 public GenericView(Context context) { argument
28 super(context);
31 public GenericView(Context context, AttributeSet attrs) { argument
32 super(context, attrs);
35 public GenericView(Context context, AttributeSet attrs, int defStyleAttr) { argument
36 super(context, attrs, defStyleAttr);
39 public GenericView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
40 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/support/core-utils/api20/android/support/v4/print/
H A DPrintHelperApi20.java27 PrintHelperApi20(Context context) { argument
28 super(context);
/frameworks/support/core-utils/api24/android/support/v4/print/
H A DPrintHelperApi24.java27 PrintHelperApi24(Context context) { argument
28 super(context);
/frameworks/support/v7/preference/src/android/support/v7/preference/internal/
H A DAbstractMultiSelectListPreference.java37 public AbstractMultiSelectListPreference(Context context, AttributeSet attrs, int defStyleAttr, argument
39 super(context, attrs, defStyleAttr, defStyleRes);
42 public AbstractMultiSelectListPreference(Context context, AttributeSet attrs, int defStyleAttr) { argument
43 super(context, attrs, defStyleAttr);
46 public AbstractMultiSelectListPreference(Context context, AttributeSet attrs) { argument
47 super(context, attrs);
50 public AbstractMultiSelectListPreference(Context context) { argument
51 super(context);
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditLayout.java33 public ExtractEditLayout(Context context) { argument
34 super(context);
37 public ExtractEditLayout(Context context, AttributeSet attrs) { argument
38 super(context, attrs);
/frameworks/base/core/java/android/service/dreams/
H A DSandman.java54 public static boolean shouldStartDockApp(Context context, Intent intent) { argument
55 ComponentName name = intent.resolveActivity(context.getPackageManager());
62 public static void startDreamByUserRequest(Context context) { argument
63 startDream(context, false);
70 public static void startDreamWhenDockedIfAppropriate(Context context) { argument
71 if (!isScreenSaverEnabled(context)
72 || !isScreenSaverActivatedOnDock(context)) {
77 startDream(context, true);
80 private static void startDream(Context context, boolean docked) { argument
94 (PowerManager)context
109 isScreenSaverEnabled(Context context) argument
117 isScreenSaverActivatedOnDock(Context context) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
H A DArraysCheckWidget.java29 public ArraysCheckWidget(Context context, AttributeSet attrs) { argument
30 this(context, attrs, 0);
33 public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr) { argument
34 this(context, attrs, defStyleAttr, 0);
37 public ArraysCheckWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { argument
38 super(context, attrs, defStyleAttr, defStyleRes);
39 Resources resources = context.getResources();
41 addTextView(context, chars);
44 addTextView(context, String.valueOf(i));
47 addTextView(context, strin
51 addTextView(Context context, CharSequence string) argument
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DTestApplication.java23 private static Context context; field in class:TestApplication
27 TestApplication.context = getApplicationContext();
31 return TestApplication.context;
/frameworks/support/compat/java/android/support/v4/content/
H A DContextCompat.java79 * @param context Start activities using this activity as the starting context
84 public static boolean startActivities(Context context, Intent[] intents) { argument
85 return startActivities(context, intents, null);
108 * @param context Start activities using this activity as the starting context
115 public static boolean startActivities(Context context, Intent[] intents, Bundle options) { argument
117 context.startActivities(intents, options);
119 context.startActivities(intents);
133 * @param context Contex
141 startActivity(Context context, Intent intent, @Nullable Bundle options) argument
164 getDataDir(Context context) argument
216 getObbDirs(Context context) argument
268 getExternalFilesDirs(Context context, String type) argument
320 getExternalCacheDirs(Context context) argument
351 getDrawable(Context context, @DrawableRes int id) argument
387 getColorStateList(Context context, @ColorRes int id) argument
409 getColor(Context context, @ColorRes int id) argument
427 checkSelfPermission(@onNull Context context, @NonNull String permission) argument
449 getNoBackupFilesDir(Context context) argument
473 getCodeCacheDir(Context context) argument
527 createDeviceProtectedStorageContext(Context context) argument
541 isDeviceProtectedStorage(Context context) argument
559 startForegroundService(Context context, Intent intent) argument
[all...]

Completed in 386 milliseconds

1234567891011>>