/frameworks/support/compat/java/android/support/v4/content/ |
D | ContextCompat.java | 82 public static boolean startActivities(Context context, Intent[] intents) { in startActivities() argument 83 return startActivities(context, intents, null); in startActivities() 113 public static boolean startActivities(Context context, Intent[] intents, Bundle options) { in startActivities() argument 115 context.startActivities(intents, options); in startActivities() 117 context.startActivities(intents); in startActivities() 139 public static void startActivity(Context context, Intent intent, @Nullable Bundle options) { in startActivity() argument 141 context.startActivity(intent, options); in startActivity() 143 context.startActivity(intent); in startActivity() 162 public static File getDataDir(Context context) { in getDataDir() argument 164 return context.getDataDir(); in getDataDir() [all …]
|
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/ |
D | CarrierActionUtils.java | 60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction() argument 63 onEnableAllMeteredApns(intent, context); in applyCarrierAction() 66 onDisableAllMeteredApns(intent, context); in applyCarrierAction() 69 onDisableRadio(intent, context); in applyCarrierAction() 72 onEnableRadio(intent, context); in applyCarrierAction() 75 onShowCaptivePortalNotification(intent, context); in applyCarrierAction() 78 onShowNoDataServiceNotification(context); in applyCarrierAction() 81 onCancelAllNotifications(context); in applyCarrierAction() 84 onEnableDefaultURLHandler(context); in applyCarrierAction() 87 onDisableDefaultURLHandler(context); in applyCarrierAction() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | PlaybackControlsRow.java | 218 public PlayPauseAction(Context context) { 221 drawables[INDEX_PLAY] = getStyledDrawable(context, 223 drawables[INDEX_PAUSE] = getStyledDrawable(context, 228 labels[INDEX_PLAY] = context.getString(R.string.lb_playback_controls_play); 229 labels[INDEX_PAUSE] = context.getString(R.string.lb_playback_controls_pause); 245 public FastForwardAction(Context context) { 246 this(context, 1); 254 public FastForwardAction(Context context, int numSpeeds) { 261 drawables[0] = getStyledDrawable(context, 266 labels[0] = context.getString(R.string.lb_playback_controls_fast_forward); [all …]
|
/frameworks/support/core-utils/kitkat/android/support/v4/provider/ |
D | DocumentsContractApi19.java | 37 public static boolean isDocumentUri(Context context, Uri self) { in isDocumentUri() argument 38 return DocumentsContract.isDocumentUri(context, self); in isDocumentUri() 41 public static boolean isVirtual(Context context, Uri self) { in isVirtual() argument 42 if (!isDocumentUri(context, self)) { in isVirtual() 46 return (getFlags(context, self) & FLAG_VIRTUAL_DOCUMENT) != 0; in isVirtual() 49 public static String getName(Context context, Uri self) { in getName() argument 50 return queryForString(context, self, DocumentsContract.Document.COLUMN_DISPLAY_NAME, null); in getName() 53 private static String getRawType(Context context, Uri self) { in getRawType() argument 54 return queryForString(context, self, DocumentsContract.Document.COLUMN_MIME_TYPE, null); in getRawType() 57 public static String getType(Context context, Uri self) { in getType() argument [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | DeviceAdminReceiver.java | 448 public DevicePolicyManager getManager(Context context) { in getManager() argument 452 mManager = (DevicePolicyManager)context.getSystemService( in getManager() 462 public ComponentName getWho(Context context) { in getWho() argument 466 mWho = new ComponentName(context, getClass()); in getWho() 483 public void onEnabled(Context context, Intent intent) { in onEnabled() argument 497 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested() argument 509 public void onDisabled(Context context, Intent intent) { in onDisabled() argument 524 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged() argument 538 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged() argument 539 onPasswordChanged(context, intent); in onPasswordChanged() [all …]
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
D | MediaRouterThemeHelper.java | 57 static Context createThemedContext(Context context, int style) { in createThemedContext() argument 60 new ContextThemeWrapper(context, getStyledRouterThemeId(context, style)); in createThemedContext() 61 int customizedThemeId = getThemeResource(context, R.attr.mediaRouteTheme); in createThemedContext() 69 static int createThemeForDialog(Context context, int style) { in createThemeForDialog() argument 70 int customizedThemeId = getThemeResource(context, R.attr.mediaRouteTheme); in createThemeForDialog() 71 return customizedThemeId != 0 ? customizedThemeId : getStyledRouterThemeId(context, style); in createThemeForDialog() 74 public static int getThemeResource(Context context, int attr) { in getThemeResource() argument 76 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource() 79 public static float getDisabledAlpha(Context context) { in getDisabledAlpha() argument 81 return context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, value, true) in getDisabledAlpha() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | AppCompatViewInflater.java | 80 public final View createView(View parent, final String name, @NonNull Context context, in createView() argument 83 final Context originalContext = context; in createView() 88 context = parent.getContext(); in createView() 92 context = themifyContext(context, attrs, readAndroidTheme, readAppTheme); in createView() 95 context = TintContextWrapper.wrap(context); in createView() 103 view = new AppCompatTextView(context, attrs); in createView() 106 view = new AppCompatImageView(context, attrs); in createView() 109 view = new AppCompatButton(context, attrs); in createView() 112 view = new AppCompatEditText(context, attrs); in createView() 115 view = new AppCompatSpinner(context, attrs); in createView() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 80 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() argument 81 return get(context).getBoolean(key, defaultValue); in getBoolean() 84 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean() argument 85 get(context).edit().putBoolean(key, value).apply(); in putBoolean() 88 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() argument 89 return get(context).getInt(key, defaultValue); in getInt() 92 public static void putInt(Context context, @Key String key, int value) { in putInt() argument 93 get(context).edit().putInt(key, value).apply(); in putInt() 96 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() argument 97 return get(context).getLong(key, defaultValue); in getLong() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | NotificationChannelController.java | 53 private static void createAll(Context context) { in createAll() argument 56 context.getText(R.string.notification_channel_network_alert), in createAll() 63 context.getText(R.string.notification_channel_mobile_data_status), in createAll() 68 context.getSystemService(NotificationManager.class) in createAll() 71 context.getText(R.string.notification_channel_call_forward), in createAll() 74 context.getText(R.string.notification_channel_sms), in createAll() 77 context.getText(R.string.notification_channel_wfc), in createAll() 82 if (getChannel(CHANNEL_ID_VOICE_MAIL, context) != null) { in createAll() 83 migrateVoicemailNotificationSettings(context); in createAll() 87 if (getChannel(CHANNEL_ID_MOBILE_DATA_ALERT_DEPRECATED, context) != null) { in createAll() [all …]
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 59 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() local 60 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testEmptyConfigFile() 61 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443); in testEmptyConfigFile() 62 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443); in testEmptyConfigFile() 77 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() local 78 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyAnchors() 79 TestUtils.assertConnectionFails(context, "developer.android.com", 443); in testEmptyAnchors() 80 TestUtils.assertUrlConnectionFails(context, "google.com", 443); in testEmptyAnchors() 103 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() local 104 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testBasicDomainConfig() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | FrameworkFacade.java | 47 public boolean setIntegerSetting(Context context, String name, int def) { in setIntegerSetting() argument 48 return Settings.Global.putInt(context.getContentResolver(), name, def); in setIntegerSetting() 51 public int getIntegerSetting(Context context, String name, int def) { in getIntegerSetting() argument 52 return Settings.Global.getInt(context.getContentResolver(), name, def); in getIntegerSetting() 55 public long getLongSetting(Context context, String name, long def) { in getLongSetting() argument 56 return Settings.Global.getLong(context.getContentResolver(), name, def); in getLongSetting() 59 public boolean setStringSetting(Context context, String name, String def) { in setStringSetting() argument 60 return Settings.Global.putString(context.getContentResolver(), name, def); in setStringSetting() 63 public String getStringSetting(Context context, String name) { in getStringSetting() argument 64 return Settings.Global.getString(context.getContentResolver(), name); in getStringSetting() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | RenderProxy.cpp | 86 CREATE_BRIDGE1(destroyContext, CanvasContext* context) { in CREATE_BRIDGE1() argument 87 delete args->context; in CREATE_BRIDGE1() 94 args->context = mContext; in destroyContext() 103 CREATE_BRIDGE2(setSwapBehavior, CanvasContext* context, SwapBehavior swapBehavior) { in CREATE_BRIDGE2() argument 104 args->context->setSwapBehavior(args->swapBehavior); in CREATE_BRIDGE2() 110 args->context = mContext; in setSwapBehavior() 115 CREATE_BRIDGE1(loadSystemProperties, CanvasContext* context) { in CREATE_BRIDGE1() argument 120 if (args->context->profiler().consumeProperties()) { in CREATE_BRIDGE1() 128 args->context = mContext; in loadSystemProperties() 132 CREATE_BRIDGE2(setName, CanvasContext* context, const char* name) { in CREATE_BRIDGE2() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 57 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock() argument 58 Drawable restrictedPadlock = context.getDrawable(R.drawable.ic_info); in getRestrictedPadlock() 59 final int iconSize = context.getResources().getDimensionPixelSize( in getRestrictedPadlock() 76 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced() argument 78 final DevicePolicyManager dpm = (DevicePolicyManager) context.getSystemService( in checkIfRestrictionEnforced() 84 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() 101 return getProfileOwner(context, adminUserId); in checkIfRestrictionEnforced() 107 ? getProfileOwner(context, adminUserId) in checkIfRestrictionEnforced() 114 ? getDeviceOwner(context) : EnforcedAdmin.MULTIPLE_ENFORCED_ADMIN; in checkIfRestrictionEnforced() 121 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction() argument [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | AppCompatDrawableManager.java | 70 Drawable createFromXmlInner(@NonNull Context context, @NonNull XmlPullParser parser, in createFromXmlInner() argument 185 public Drawable getDrawable(@NonNull Context context, @DrawableRes int resId) { in getDrawable() argument 186 return getDrawable(context, resId, false); in getDrawable() 189 Drawable getDrawable(@NonNull Context context, @DrawableRes int resId, in getDrawable() argument 191 checkVectorDrawableSetup(context); in getDrawable() 193 Drawable drawable = loadDrawableFromDelegates(context, resId); in getDrawable() 195 drawable = createDrawableIfNeeded(context, resId); in getDrawable() 198 drawable = ContextCompat.getDrawable(context, resId); in getDrawable() 203 drawable = tintDrawable(context, resId, failIfNotKnown, drawable); in getDrawable() 212 public void onConfigurationChanged(@NonNull Context context) { in onConfigurationChanged() argument [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | ctxt_default.rs | 30 int RS_KERNEL root(int ain, rs_kernel_context context, uint32_t x) { 31 _RS_ASSERT_EQU(rsGetArray0(context), 0); 32 _RS_ASSERT_EQU(rsGetArray1(context), 0); 33 _RS_ASSERT_EQU(rsGetArray2(context), 0); 34 _RS_ASSERT_EQU(rsGetArray3(context), 0); 35 _RS_ASSERT_EQU(rsGetFace(context), RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); 36 _RS_ASSERT_EQU(rsGetLod(context), 0); 38 _RS_ASSERT_EQU(rsGetDimY(context), 0); 39 _RS_ASSERT_EQU(rsGetDimZ(context), 0); 40 _RS_ASSERT_EQU(rsGetDimArray0(context), 0); [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | ctxt_default.rs | 28 int RS_KERNEL root(int ain, rs_kernel_context context, uint32_t x) { 29 _RS_ASSERT_EQU(rsGetArray0(context), 0); 30 _RS_ASSERT_EQU(rsGetArray1(context), 0); 31 _RS_ASSERT_EQU(rsGetArray2(context), 0); 32 _RS_ASSERT_EQU(rsGetArray3(context), 0); 33 _RS_ASSERT_EQU(rsGetFace(context), RS_ALLOCATION_CUBEMAP_FACE_POSITIVE_X); 34 _RS_ASSERT_EQU(rsGetLod(context), 0); 36 _RS_ASSERT_EQU(rsGetDimY(context), 0); 37 _RS_ASSERT_EQU(rsGetDimZ(context), 0); 38 _RS_ASSERT_EQU(rsGetDimArray0(context), 0); [all …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | DefaultDialerManager.java | 51 public static boolean setDefaultDialerApplication(Context context, String packageName) { in setDefaultDialerApplication() argument 52 return setDefaultDialerApplication(context, packageName, ActivityManager.getCurrentUser()); in setDefaultDialerApplication() 65 public static boolean setDefaultDialerApplication(Context context, String packageName, in setDefaultDialerApplication() argument 68 String oldPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), in setDefaultDialerApplication() 77 List<String> packageNames = getInstalledDialerApplications(context); in setDefaultDialerApplication() 81 Settings.Secure.putStringForUser(context.getContentResolver(), in setDefaultDialerApplication() 101 public static String getDefaultDialerApplication(Context context) { in getDefaultDialerApplication() argument 102 return getDefaultDialerApplication(context, context.getUserId()); in getDefaultDialerApplication() 118 public static String getDefaultDialerApplication(Context context, int user) { in getDefaultDialerApplication() argument 119 String defaultPackageName = Settings.Secure.getStringForUser(context.getContentResolver(), in getDefaultDialerApplication() [all …]
|
/frameworks/base/core/java/com/android/internal/view/ |
D | RotationPolicy.java | 57 public static boolean isRotationSupported(Context context) { in isRotationSupported() argument 58 PackageManager pm = context.getPackageManager(); in isRotationSupported() 62 && context.getResources().getBoolean( in isRotationSupported() 74 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation() argument 75 if (!areAllRotationsAllowed(context)) { in getRotationLockOrientation() 92 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible() argument 93 return isRotationSupported(context) && in isRotationLockToggleVisible() 94 Settings.System.getIntForUser(context.getContentResolver(), in isRotationLockToggleVisible() 102 public static boolean isRotationLocked(Context context) { in isRotationLocked() argument 103 return Settings.System.getIntForUser(context.getContentResolver(), in isRotationLocked() [all …]
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | Cat.java | 143 public Cat(Context context, long seed) { in Cat() argument 144 D = new CatParts(context); in Cat() 147 setName(context.getString(R.string.default_cat_name, in Cat() 202 public static Cat create(Context context) { 203 return new Cat(context, Math.abs(ThreadLocalRandom.current().nextInt())); 206 public Notification.Builder buildNotification(Context context) { 208 extras.putString("android.substName", context.getString(R.string.notification_name)); 210 .setClass(context, NekoLand.class) 212 return new Notification.Builder(context) 213 .setSmallIcon(Icon.createWithResource(context, R.drawable.stat_icon)) [all …]
|
/frameworks/rs/ |
D | rsHidlAdaptation.cpp | 190 IContext *RsHidlAdaptation::GetIContextHandle(RsContext context) { in GetIContextHandle() argument 191 return (IContext *)context; in GetIContextHandle() 197 sp<IContext> context = mHidl->contextCreate(sdkVersion, (ContextType)ct, flags); in ContextCreate() local 198 RsContext ret = (RsContext)(uintptr_t)context.get(); in ContextCreate() 201 mContexts.insert(context); in ContextCreate() 205 void RsHidlAdaptation::ContextDestroy (RsContext context) in ContextDestroy() argument 208 GetIContextHandle(context)->contextDestroy(); in ContextDestroy() 211 mContexts.erase((IContext*)context); in ContextDestroy() 214 const void* RsHidlAdaptation::AllocationGetType(RsContext context, RsAllocation allocation) in AllocationGetType() argument 218 uint64_t typeRet = GetIContextHandle(context)->allocationGetType(_allocation); in AllocationGetType() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Compile.cpp | 138 static bool LoadInputFilesFromDir(IAaptContext* context, const CompileOptions& options, in LoadInputFilesFromDir() argument 143 context->GetDiagnostics()->Error(DiagMessage(root_dir) << "failed to open directory: " in LoadInputFilesFromDir() 162 context->GetDiagnostics()->Error(DiagMessage(prefix_path) << "failed to open directory: " in LoadInputFilesFromDir() 178 context->GetDiagnostics()->Error(DiagMessage(full_path) << err_str); in LoadInputFilesFromDir() 188 static bool CompileTable(IAaptContext* context, const CompileOptions& options, in CompileTable() argument 195 context->GetDiagnostics()->Error(DiagMessage(path_data.source) in CompileTable() 209 ResourceParser res_parser(context->GetDiagnostics(), &table, path_data.source, path_data.config, in CompileTable() 222 if (!pseudolocale_generator.Consume(context, &table)) { in CompileTable() 228 table.CreatePackage(context->GetCompilationPackage()); in CompileTable() 234 pkg->id = context->GetPackageId(); in CompileTable() [all …]
|
/frameworks/base/core/java/android/service/dreams/ |
D | Sandman.java | 54 public static boolean shouldStartDockApp(Context context, Intent intent) { in shouldStartDockApp() argument 55 ComponentName name = intent.resolveActivity(context.getPackageManager()); in shouldStartDockApp() 62 public static void startDreamByUserRequest(Context context) { in startDreamByUserRequest() argument 63 startDream(context, false); in startDreamByUserRequest() 70 public static void startDreamWhenDockedIfAppropriate(Context context) { in startDreamWhenDockedIfAppropriate() argument 71 if (!isScreenSaverEnabled(context) in startDreamWhenDockedIfAppropriate() 72 || !isScreenSaverActivatedOnDock(context)) { in startDreamWhenDockedIfAppropriate() 77 startDream(context, true); in startDreamWhenDockedIfAppropriate() 80 private static void startDream(Context context, boolean docked) { in startDream() argument 94 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in startDream() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/transition/ |
D | LeanbackTransitionHelper.java | 32 Object loadTitleInTransition(Context context); in loadTitleInTransition() argument 33 Object loadTitleOutTransition(Context context); in loadTitleOutTransition() argument 44 public Object loadTitleInTransition(Context context) { in loadTitleInTransition() argument 45 return LeanbackTransitionHelperKitKat.loadTitleInTransition(context); in loadTitleInTransition() 49 public Object loadTitleOutTransition(Context context) { in loadTitleOutTransition() argument 50 return LeanbackTransitionHelperKitKat.loadTitleOutTransition(context); in loadTitleOutTransition() 60 public Object loadTitleInTransition(Context context) { in loadTitleInTransition() argument 61 return TransitionHelper.loadTransition(context, R.transition.lb_title_in); in loadTitleInTransition() 65 public Object loadTitleOutTransition(Context context) { in loadTitleOutTransition() argument 66 return TransitionHelper.loadTransition(context, R.transition.lb_title_out); in loadTitleOutTransition() [all …]
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProvider.java | 57 public void onReceive(Context context, Intent intent) { in onReceive() argument 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); in onReceive() 73 this.onDeleted(context, new int[] { appWidgetId }); in onReceive() 81 this.onAppWidgetOptionsChanged(context, AppWidgetManager.getInstance(context), in onReceive() 85 this.onEnabled(context); in onReceive() 87 this.onDisabled(context); in onReceive() 94 this.onRestored(context, oldIds, newIds); in onReceive() 95 this.onUpdate(context, AppWidgetManager.getInstance(context), newIds); in onReceive() 120 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate() argument 138 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged() argument [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BluetoothDeviceLayerDrawable.java | 57 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument 59 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/); in createLayerDrawable() 71 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument 73 final Drawable deviceDrawable = context.getDrawable(resId); in createLayerDrawable() 75 final BatteryMeterDrawable batteryDrawable = new BatteryMeterDrawable(context, in createLayerDrawable() 76 context.getColor(R.color.meter_background_color), batteryLevel); in createLayerDrawable() 77 final int pad = context.getResources().getDimensionPixelSize(R.dimen.bt_battery_padding); in createLayerDrawable() 90 drawable.setConstantState(context, resId, batteryLevel, iconScale); in createLayerDrawable() 95 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { in setConstantState() argument 96 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale); in setConstantState() [all …]
|