Searched refs:context (Results 176 - 200 of 2850) sorted by relevance

1234567891011>>

/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/util/
H A DConfigToggle.java24 protected ConfigToggle(Context context, int labelId) { argument
25 mLabel = context.getResources().getString(labelId);
/frameworks/support/transition/api21/android/support/transition/
H A DSceneStaticsApi21.java25 public SceneImpl getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { argument
27 scene.mScene = android.transition.Scene.getSceneForLayout(sceneRoot, layoutId, context);
/frameworks/support/transition/ics/android/support/transition/
H A DSceneStaticsIcs.java25 public SceneImpl getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { argument
27 scene.mScene = ScenePort.getSceneForLayout(sceneRoot, layoutId, context);
/frameworks/support/transition/kitkat/android/support/transition/
H A DSceneStaticsKitKat.java25 public SceneImpl getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { argument
27 scene.mScene = android.transition.Scene.getSceneForLayout(sceneRoot, layoutId, context);
/frameworks/support/v17/preference-leanback/api21/android/support/v17/internal/widget/
H A DOutlineOnlyWithChildrenFrameLayout.java41 public OutlineOnlyWithChildrenFrameLayout(Context context) { argument
42 super(context);
45 public OutlineOnlyWithChildrenFrameLayout(Context context, AttributeSet attrs) { argument
46 super(context, attrs);
49 public OutlineOnlyWithChildrenFrameLayout(Context context, AttributeSet attrs, argument
51 super(context, attrs, defStyleAttr);
54 public OutlineOnlyWithChildrenFrameLayout(Context context, AttributeSet attrs, argument
56 super(context, attrs, defStyleAttr, defStyleRes);
/frameworks/base/core/java/android/provider/
H A DBlockedNumberContract.java239 * context {@code context}, this method will throw a {@link SecurityException}.
244 public static boolean isBlocked(Context context, String phoneNumber) { argument
245 final Bundle res = context.getContentResolver().call(
263 * context {@code context}, this method will throw a {@link SecurityException}.
268 public static int unblock(Context context, String phoneNumber) { argument
269 final Bundle res = context.getContentResolver().call(
280 public static boolean canCurrentUserBlockNumbers(Context context) { argument
281 final Bundle res = context
329 notifyEmergencyContact(Context context) argument
338 endBlockSuppression(Context context) argument
349 shouldSystemBlockNumber(Context context, String phoneNumber) argument
358 getBlockSuppressionStatus(Context context) argument
[all...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxManagerService.java55 static private synchronized void bindServices(Context context) { argument
57 context.bindService(new Intent(IBordeauxService.class.getName()),
63 static public synchronized void release(Context context) { argument
65 context.unbindService(mConnection);
71 static public synchronized IBordeauxService getService(Context context) { argument
72 if (mService == null) bindServices(context);
76 static public synchronized IAggregatorManager getAggregatorManager(Context context) { argument
78 bindServices(context);
90 static public synchronized IPredictor getPredictor(Context context, String name) { argument
92 bindServices(context);
104 getRanker(Context context, String name) argument
120 getClassifier(Context context, String name) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDisplay.java40 public static float density(Context context) { argument
41 return context.getResources().getDisplayMetrics().density;
47 public static float actionBarHeight(Context context) { argument
50 if (context.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
52 context.getResources().getDisplayMetrics());
/frameworks/base/tools/layoutlib/bridge/src/android/preference/
H A DBridgePreferenceInflater.java27 public BridgePreferenceInflater(Context context, PreferenceManager preferenceManager) { argument
28 super(context, preferenceManager);
37 Context context = getContext();
38 if (context instanceof BridgeContext) {
39 bc = (BridgeContext) context;
H A DPreference_Delegate.java42 Context context = pref.getContext();
43 BridgeContext bc = context instanceof BridgeContext ? ((BridgeContext) context) : null;
57 public static View inflatePreference(Context context, XmlPullParser parser, ViewGroup root) { argument
58 PreferenceManager pm = new PreferenceManager(context);
59 PreferenceInflater inflater = new BridgePreferenceInflater(context, pm);
62 ListView preferenceView = createContainerView(context, root);
67 private static ListView createContainerView(Context context, ViewGroup root) { argument
68 TypedArray a = context.obtainStyledAttributes(null, R.styleable.PreferenceFragment,
75 (LayoutInflater) context
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/internal/view/menu/
H A DBridgeMenuItemImpl.java43 Context context = menu.getContext();
44 context = BridgeContext.getBaseContext(context);
45 if (context instanceof BridgeContext) {
46 mContext = ((BridgeContext) context);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DThemePreviewNavigationBar.java41 public ThemePreviewNavigationBar(Context context, AttributeSet attrs) { argument
42 super((BridgeContext) context,
43 Density.getEnum(((BridgeContext) context).getMetrics().densityDpi),
45 ((BridgeContext) context).getConfiguration().getLayoutDirection() ==
47 (context.getApplicationInfo().flags & ApplicationInfo.FLAG_SUPPORTS_RTL) != 0,
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DLinkSpanTest.java31 final TestContext context = new TestContext(getContext());
32 final TextView textView = new TextView(context);
37 assertSame("Clicked LinkSpan should be passed to setup", linkSpan, context.clickedSpan);
42 final Context context = getContext();
43 final TextView textView = new TextView(context);
48 // This would be no-op, because the context doesn't implement LinkSpan.OnClickListener.
/frameworks/support/design/src/android/support/design/widget/
H A DTabItem.java43 public TabItem(Context context) { argument
44 this(context, null);
47 public TabItem(Context context, AttributeSet attrs) { argument
48 super(context, attrs);
50 final TintTypedArray a = TintTypedArray.obtainStyledAttributes(context, attrs,
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DTintResources.java33 public TintResources(@NonNull Context context, @NonNull final Resources res) { argument
35 mContextRef = new WeakReference<>(context);
46 Context context = mContextRef.get();
47 if (d != null && context != null) {
48 AppCompatDrawableManager.get().tintDrawableUsingColorFilter(context, id, d);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DBluetoothDiscoverableTimeoutReceiver.java35 public static void setDiscoverableAlarm(Context context, long alarmTime) { argument
39 intent.setClass(context, BluetoothDiscoverableTimeoutReceiver.class);
41 context, 0, intent, 0);
43 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE);
51 context, 0, intent, 0);
56 public static void cancelDiscoverableAlarm(Context context) { argument
60 intent.setClass(context, BluetoothDiscoverableTimeoutReceiver.class);
62 context, 0, intent, PendingIntent.FLAG_NO_CREATE);
66 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE);
73 public void onReceive(Context context, Inten argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DFakeShadowView.java41 public FakeShadowView(Context context) { argument
42 this(context, null);
45 public FakeShadowView(Context context, @Nullable AttributeSet attrs) { argument
46 this(context, attrs, 0);
49 public FakeShadowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { argument
50 this(context, attrs, defStyleAttr, 0);
53 public FakeShadowView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, argument
55 super(context, attrs, defStyleAttr, defStyleRes);
56 mFakeShadow = new View(context);
69 mShadowMinHeight = Math.max(1, context
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DTestUtil.java51 Context context, NetworkInfo.DetailedState detailedState) {
56 broadcastReceiver.onReceive(context, intent);
63 Context context) {
65 broadcastReceiver.onReceive(context, intent);
72 Context context, int scanAvailable) {
75 broadcastReceiver.onReceive(context, intent);
82 Context context, int wifiState) {
85 broadcastReceiver.onReceive(context, intent);
92 Context context, ArrayList<String> available, ArrayList<String> active) {
96 broadcastReceiver.onReceive(context, inten
50 sendNetworkStateChanged(BroadcastReceiver broadcastReceiver, Context context, NetworkInfo.DetailedState detailedState) argument
62 sendScanResultsAvailable(BroadcastReceiver broadcastReceiver, Context context) argument
71 sendWifiScanAvailable(BroadcastReceiver broadcastReceiver, Context context, int scanAvailable) argument
81 sendWifiStateChanged(BroadcastReceiver broadcastReceiver, Context context, int wifiState) argument
91 sendTetherStateChanged(BroadcastReceiver broadcastReceiver, Context context, ArrayList<String> available, ArrayList<String> active) argument
[all...]
/frameworks/support/compat/java/android/support/v4/app/
H A DAppOpsManagerCompat.java58 public int noteOp(Context context, String op, int uid, String packageName) { argument
62 public int noteProxyOp(Context context, String op, String proxiedPackageName) { argument
77 public int noteOp(Context context, String op, int uid, String packageName) { argument
78 return AppOpsManagerCompat23.noteOp(context, op, uid, packageName);
82 public int noteProxyOp(Context context, String op, String proxiedPackageName) { argument
83 return AppOpsManagerCompat23.noteProxyOp(context, op, proxiedPackageName);
114 * @param context Your context.
123 public static int noteOp(@NonNull Context context, @NonNull String op, int uid, argument
125 return IMPL.noteOp(context, o
144 noteProxyOp(@onNull Context context, @NonNull String op, @NonNull String proxiedPackageName) argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DWrappedRecyclerView.java54 public WrappedRecyclerView(Context context) { argument
55 super(context);
56 init(context);
59 public WrappedRecyclerView(Context context, AttributeSet attrs) { argument
60 super(context, attrs);
61 init(context);
64 public WrappedRecyclerView(Context context, AttributeSet attrs, int defStyle) { argument
65 super(context, attrs, defStyle);
66 init(context);
69 private void init(Context context) { argument
[all...]
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DXmlConfigTests.java59 SSLContext context = TestUtils.getSSLContext(source);
60 TestUtils.assertConnectionSucceeds(context, "android.com", 443);
61 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443);
62 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443);
77 SSLContext context = TestUtils.getSSLContext(source);
78 TestUtils.assertConnectionFails(context, "android.com", 443);
79 TestUtils.assertConnectionFails(context, "developer.android.com", 443);
80 TestUtils.assertUrlConnectionFails(context, "google.com", 443);
103 SSLContext context = TestUtils.getSSLContext(source);
104 TestUtils.assertConnectionSucceeds(context, "androi
[all...]
/frameworks/base/tools/aapt2/link/
H A DProductFilter_test.cpp26 std::unique_ptr<IAaptContext> context = test::ContextBuilder().build(); local
36 context->getDiagnostics()));
41 context->getDiagnostics()));
47 context->getDiagnostics()));
52 context->getDiagnostics()));
55 ASSERT_TRUE(filter.consume(context.get(), &table));
68 std::unique_ptr<IAaptContext> context = test::ContextBuilder().build(); local
75 context->getDiagnostics()));
80 context->getDiagnostics()));
83 ASSERT_TRUE(filter.consume(context
94 std::unique_ptr<IAaptContext> context = test::ContextBuilder().build(); local
118 std::unique_ptr<IAaptContext> context = test::ContextBuilder().build(); local
[all...]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DRemoteBugreportUtils.java57 static Notification buildNotification(Context context, argument
62 PendingIntent pendingDialogIntent = PendingIntent.getActivityAsUser(context, type,
65 Notification.Builder builder = new Notification.Builder(context)
71 .setColor(context.getColor(
75 builder.setContentTitle(context.getString(
79 builder.setContentTitle(context.getString(
83 PendingIntent pendingIntentAccept = PendingIntent.getBroadcast(context, NOTIFICATION_ID,
86 PendingIntent pendingIntentDecline = PendingIntent.getBroadcast(context,
90 builder.addAction(new Notification.Action.Builder(null /* icon */, context.getString(
92 .addAction(new Notification.Action.Builder(null /* icon */, context
[all...]
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DMediaRouterThemeHelper.java46 * Creates a themed context based on the explicit style resource or the parent context's default
49 * The theme which will be applied on top of the parent {@code context}'s theme is determined
50 * by the primary color defined in the given {@code style}, or in the parent {@code context}.
52 * @param context the parent context
53 * @param style the resource ID of the style against which to inflate this context, or
54 * {@code 0} to use the parent {@code context}'s default theme.
55 * @return The themed context.
57 public static Context createThemedContext(Context context, in argument
75 getThemeResource(Context context, int attr) argument
80 getDisabledAlpha(Context context) argument
86 getControllerColor(Context context, int style) argument
96 getButtonTextColor(Context context) argument
108 setMediaControlsBackgroundColor( Context context, View mainControls, View groupControls, boolean hasGroup) argument
128 setVolumeSliderColor( Context context, MediaRouteVolumeSlider volumeSlider, View backgroundView) argument
141 getAlertDialogResolvedTheme(Context context, int themeResId) argument
152 isLightTheme(Context context) argument
159 getThemeColor(Context context, int style, int attr) argument
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtils.java50 public static Drawable getRestrictedPadlock(Context context) { argument
51 Drawable restrictedPadlock = context.getDrawable(R.drawable.ic_info);
52 final int iconSize = context.getResources().getDimensionPixelSize(
69 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, argument
71 DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService(
76 UserManager um = UserManager.get(context);
91 return getProfileOwner(context, userId);
95 final EnforcedAdmin deviceOwner = getDeviceOwner(context);
103 public static boolean hasBaseUserRestriction(Context context, argument
105 UserManager um = (UserManager) context
119 checkIfKeyguardFeaturesDisabled(Context context, int keyguardFeatures, int userId) argument
188 checkIfUninstallBlocked(Context context, String packageName, int userId) argument
217 checkIfApplicationIsSuspended(Context context, String packageName, int userId) argument
230 checkIfInputMethodDisallowed(Context context, String packageName, int userId) argument
265 checkIfRemoteContactSearchDisallowed(Context context, int userId) argument
283 checkIfAccessibilityServiceDisallowed(Context context, String packageName, int userId) argument
313 getManagedProfileId(Context context, int userId) argument
335 checkIfAccountManagementDisabled(Context context, String accountType, int userId) argument
366 checkIfAutoTimeRequired(Context context) argument
385 checkIfPasswordQualityIsSet(Context context, int userId) argument
464 checkIfMaximumTimeToLockIsSet(Context context) argument
515 getProfileOrDeviceOwner(Context context, int userId) argument
537 getDeviceOwner(Context context) argument
550 getProfileOwner(Context context, int userId) argument
573 setMenuItemAsDisabledByAdmin(final Context context, final MenuItem item, final EnforcedAdmin admin) argument
617 sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) argument
627 getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) argument
642 isCurrentUserOrProfile(Context context, int userId) argument
652 isAdminInCurrentUserOrProfile(Context context, ComponentName admin) argument
664 setTextViewPadlock(Context context, TextView textView, boolean showPadlock) argument
680 setTextViewAsDisabledByAdmin(Context context, TextView textView, boolean disabled) argument
[all...]

Completed in 1608 milliseconds

1234567891011>>