/frameworks/base/core/java/android/provider/ |
H A D | BlockedNumberContract.java | 239 * 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 D | BordeauxManagerService.java | 55 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 D | Display.java | 40 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 D | BridgePreferenceInflater.java | 27 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 D | Preference_Delegate.java | 42 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 D | BridgeMenuItemImpl.java | 43 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 D | ThemePreviewNavigationBar.java | 41 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 D | LinkSpanTest.java | 31 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 D | TabItem.java | 43 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 D | TintResources.java | 33 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 D | BluetoothDiscoverableTimeoutReceiver.java | 35 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 D | FakeShadowView.java | 41 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 D | TestUtil.java | 51 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/v4/java/android/support/v4/app/ |
H A D | AppOpsManagerCompat.java | 55 public int noteOp(Context context, String op, int uid, String packageName) { argument 59 public int noteProxyOp(Context context, String op, String proxiedPackageName) { argument 71 public int noteOp(Context context, String op, int uid, String packageName) { argument 72 return AppOpsManagerCompat23.noteOp(context, op, uid, packageName); 76 public int noteProxyOp(Context context, String op, String proxiedPackageName) { argument 77 return AppOpsManagerCompat23.noteProxyOp(context, op, proxiedPackageName); 108 * @param context Your context. 117 public static int noteOp(@NonNull Context context, @NonNull String op, int uid, argument 119 return IMPL.noteOp(context, o 138 noteProxyOp(@onNull Context context, @NonNull String op, @NonNull String proxiedPackageName) argument [all...] |
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | XmlConfigTests.java | 59 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 D | ProductFilter_test.cpp | 26 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/support/v7/appcompat/src/android/support/v7/content/res/ |
H A D | AppCompatResources.java | 56 * @param context content to inflate against 59 public static ColorStateList getColorStateList(@NonNull Context context, @ColorRes int resId) { argument 62 return context.getColorStateList(resId); 66 ColorStateList csl = getCachedColorStateList(context, resId); 71 csl = inflateColorStateList(context, resId); 74 addColorStateListToCache(context, resId, csl); 79 return ContextCompat.getColorStateList(context, resId); 86 private static ColorStateList inflateColorStateList(Context context, int resId) { argument 87 if (isColorInt(context, resId)) { 92 final Resources r = context 103 getCachedColorStateList(@onNull Context context, @ColorRes int resId) argument 123 addColorStateListToCache(@onNull Context context, @ColorRes int resId, @NonNull ColorStateList value) argument 136 isColorInt(@onNull Context context, @ColorRes int resId) argument [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | RemoteBugreportUtils.java | 57 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/base/packages/SettingsLib/src/com/android/settingslib/ |
H A D | RestrictedLockUtils.java | 50 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...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | SharedPreferencesBackupHelper.java | 80 * @param context The application {@link android.content.Context} 84 public SharedPreferencesBackupHelper(Context context, String... prefGroups) { argument 85 super(context); 87 mContext = context; 96 Context context = mContext; 107 files[i] = context.getSharedPrefsFile(prefGroups[i]).getAbsolutePath(); 119 Context context = mContext; 125 File f = context.getSharedPrefsFile(key).getAbsoluteFile();
|
/frameworks/base/core/java/android/text/format/ |
H A D | Formatter.java | 56 private static String bidiWrap(@NonNull Context context, String source) { argument 57 final Locale locale = context.getResources().getConfiguration().locale; 68 * If the context has a right-to-left locale, the returned string is wrapped in bidi formatting 73 * @param context Context to use to load the localized units 77 public static String formatFileSize(@Nullable Context context, long sizeBytes) { argument 78 if (context == null) { 81 final BytesResult res = formatBytes(context.getResources(), sizeBytes, 0); 82 return bidiWrap(context, context.getString(com.android.internal.R.string.fileSizeSuffix, 90 public static String formatShortFileSize(@Nullable Context context, lon argument 201 formatShortElapsedTime(Context context, long millis) argument 262 formatShortElapsedTimeRoundingUpToMinutes(Context context, long millis) argument [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | Food.java | 34 public Icon getIcon(Context context) { argument 36 TypedArray icons = context.getResources().obtainTypedArray(R.array.food_icons); 43 return Icon.createWithResource(context, sIcons[mType]); 46 public String getName(Context context) { argument 48 sNames = context.getResources().getStringArray(R.array.food_names); 53 public long getInterval(Context context) { argument 54 return context.getResources().getIntArray(R.array.food_intervals)[mType];
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | UserUtil.java | 27 public static void deleteUserWithPrompt(Context context, int userId, argument 29 new RemoveUserDialog(context, userId, userSwitcherController).show(); 38 public RemoveUserDialog(Context context, int userId, argument 40 super(context); 42 setMessage(context.getString(R.string.user_remove_user_message)); 44 context.getString(android.R.string.cancel), this); 46 context.getString(R.string.user_remove_user_remove), this);
|
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
H A D | BiDiTestViewDrawText.java | 33 public BiDiTestViewDrawText(Context context) { argument 34 this(context, null); 37 public BiDiTestViewDrawText(Context context, AttributeSet attrs) { argument 38 this(context, attrs, 0); 41 public BiDiTestViewDrawText(Context context, AttributeSet attrs, int defStyle) { argument 42 super(context, attrs, defStyle); 44 final TypedArray a = context.obtainStyledAttributes(attrs,
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | ListRowHoverCardView.java | 33 public ListRowHoverCardView(Context context) { argument 34 this(context, null); 37 public ListRowHoverCardView(Context context, AttributeSet attrs) { argument 38 this(context, attrs, 0); 41 public ListRowHoverCardView(Context context, AttributeSet attrs, int defStyle) { argument 42 super(context, attrs, defStyle); 43 LayoutInflater inflater = LayoutInflater.from(context);
|