Home
last modified time | relevance | path

Searched defs:context (Results 1 – 25 of 3398) sorted by relevance

12345678910>>...136

/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java96 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager()
102 static ActivityManager provideActivityManager(Context context) { in provideActivityManager()
108 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager()
114 static AudioManager provideAudioManager(Context context) { in provideAudioManager()
120 static ColorDisplayManager provideColorDisplayManager(Context context) { in provideColorDisplayManager()
126 static ConnectivityManager provideConnectivityManagager(Context context) { in provideConnectivityManagager()
132 static ContentResolver provideContentResolver(Context context) { in provideContentResolver()
138 static DevicePolicyManager provideDevicePolicyManager(Context context) { in provideDevicePolicyManager()
150 static int provideDisplayId(Context context) { in provideDisplayId()
156 static DisplayManager provideDisplayManager(Context context) { in provideDisplayManager()
[all …]
DDependencyProvider.java129 public SharedPreferences provideSharePreferences(Context context) { in provideSharePreferences()
135 public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) { in provideAmbientDisplayConfiguration()
162 public LayoutInflater providerLayoutInflater(Context context) { in providerLayoutInflater()
178 static LocalBluetoothManager provideLocalBluetoothController(Context context, in provideLocalBluetoothController()
193 public PluginManager providePluginManager(Context context) { in providePluginManager()
200 static ThemeOverlayApplier provideThemeOverlayManager(Context context, in provideThemeOverlayManager()
211 public NavigationBarController provideNavigationBarController(Context context, in provideNavigationBarController()
271 Context context, AccessibilityButtonTargetsObserver accessibilityButtonTargetsObserver, in provideAccessibilityFloatingMenuController()
281 public ConfigurationController provideConfigurationController(Context context) { in provideConfigurationController()
288 public AutoHideController provideAutoHideController(Context context, in provideAutoHideController()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java561 public @NonNull DevicePolicyManager getManager(@NonNull Context context) { in getManager()
575 public @NonNull ComponentName getWho(@NonNull Context context) { in getWho()
596 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled()
613 public @Nullable CharSequence onDisableRequested(@NonNull Context context, in onDisableRequested()
630 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled()
648 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged()
662 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged()
679 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed()
693 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed()
710 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded()
[all …]
/frameworks/base/core/java/android/content/
DPermissionChecker.java151 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
194 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
232 public static int checkPermissionForDataDeliveryFromDataSource(@NonNull Context context, in checkPermissionForDataDeliveryFromDataSource()
269 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
307 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
315 private static int checkPermissionForDataDeliveryCommon(@NonNull Context context, in checkPermissionForDataDeliveryCommon()
353 public static int checkPermissionAndStartDataDelivery(@NonNull Context context, in checkPermissionAndStartDataDelivery()
388 public static int startOpForDataDelivery(@NonNull Context context, in startOpForDataDelivery()
408 public static void finishDataDelivery(@NonNull Context context, @NonNull String op, in finishDataDelivery()
428 public static void finishDataDeliveryFromDatasource(@NonNull Context context, in finishDataDeliveryFromDatasource()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java120 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean()
124 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean()
128 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt()
132 public static void putInt(Context context, @Key String key, int value) { in putInt()
136 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong()
140 public static void putLong(Context context, @Key String key, long value) { in putLong()
144 public static String getString(Context context, @Key String key, String defaultValue) { in getString()
148 public static void putString(Context context, @Key String key, String value) { in putString()
152 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet()
157 Context context, @Key String key, Set<String> defaultValue) { in getStringSet()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java58 public static boolean isRotationSupported(Context context) { in isRotationSupported()
75 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation()
94 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible()
104 public static boolean isRotationLocked(Context context) { in isRotationLocked()
112 public static void setRotationLock(Context context, final boolean enabled) { in setRotationLock()
120 public static void setRotationLockAtAngle(Context context, final boolean enabled, in setRotationLockAtAngle()
134 public static void setRotationLockForAccessibility(Context context, final boolean enabled) { in setRotationLockForAccessibility()
142 private static boolean areAllRotationsAllowed(Context context) { in areAllRotationsAllowed()
167 public static void registerRotationPolicyListener(Context context, in registerRotationPolicyListener()
176 public static void registerRotationPolicyListener(Context context, in registerRotationPolicyListener()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DBiometricUtils.java29 List<T> getBiometricsForUser(Context context, int userId); in getBiometricsForUser()
30 void addBiometricForUser(Context context, int userId, T identifier); in addBiometricForUser()
31 void removeBiometricForUser(Context context, int userId, int biometricId); in removeBiometricForUser()
32 void renameBiometricForUser(Context context, int userId, int biometricId, CharSequence name); in renameBiometricForUser()
33 CharSequence getUniqueName(Context context, int userId); in getUniqueName()
34 void setInvalidationInProgress(Context context, int userId, boolean inProgress); in setInvalidationInProgress()
35 boolean isInvalidationInProgress(Context context, int userId); in isInvalidationInProgress()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java61 public static boolean setDefaultDialerApplication(Context context, String packageName) { in setDefaultDialerApplication()
75 public static boolean setDefaultDialerApplication(Context context, String packageName, in setDefaultDialerApplication()
113 public static String getDefaultDialerApplication(Context context) { in getDefaultDialerApplication()
130 public static String getDefaultDialerApplication(Context context, int user) { in getDefaultDialerApplication()
151 public static List<String> getInstalledDialerApplications(Context context, int userId) { in getInstalledDialerApplications()
176 public static List<String> getInstalledDialerApplications(Context context) { in getInstalledDialerApplications()
192 public static boolean isDefaultOrSystemDialer(Context context, String packageName) { in isDefaultOrSystemDialer()
210 private static List<String> filterByIntent(Context context, List<String> packageNames, in filterByIntent()
232 private static TelecomManager getTelecomManager(Context context) { in getTelecomManager()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCarrierActionUtils.java60 public static void applyCarrierAction(int actionIdx, Intent intent, Context context) { in applyCarrierAction()
103 private static void onDisableAllMeteredApns(Intent intent, Context context) { in onDisableAllMeteredApns()
111 private static void onEnableAllMeteredApns(Intent intent, Context context) { in onEnableAllMeteredApns()
119 private static void onEnableDefaultURLHandler(Context context) { in onEnableDefaultURLHandler()
127 private static void onDisableDefaultURLHandler(Context context) { in onDisableDefaultURLHandler()
135 private static void onRegisterDefaultNetworkAvail(Intent intent, Context context) { in onRegisterDefaultNetworkAvail()
143 private static void onDeregisterDefaultNetworkAvail(Intent intent, Context context) { in onDeregisterDefaultNetworkAvail()
151 private static void onDisableRadio(Intent intent, Context context) { in onDisableRadio()
159 private static void onEnableRadio(Intent intent, Context context) { in onEnableRadio()
167 private static void onShowCaptivePortalNotification(Intent intent, Context context) { in onShowCaptivePortalNotification()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java92 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState()
100 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow()
133 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState()
167 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId()
190 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub()
233 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, in checkCallingOrSelfReadDeviceIdentifiers()
259 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, int subId, in checkCallingOrSelfReadDeviceIdentifiers()
287 public static boolean checkCallingOrSelfReadSubscriberIdentifiers(Context context, int subId, in checkCallingOrSelfReadSubscriberIdentifiers()
301 public static boolean checkCallingOrSelfReadSubscriberIdentifiers(Context context, int subId, in checkCallingOrSelfReadSubscriberIdentifiers()
330 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkPrivilegedReadPermissionOrCarrierPrivilegePermission()
[all …]
/frameworks/base/core/java/android/service/dreams/
DSandman.java48 public static boolean shouldStartDockApp(Context context, Intent intent) { in shouldStartDockApp()
59 public static void startDreamByUserRequest(Context context) { in startDreamByUserRequest()
67 public static void startDreamWhenDockedIfAppropriate(Context context) { in startDreamWhenDockedIfAppropriate()
77 private static void startDream(Context context, boolean docked) { in startDream()
107 private static boolean isScreenSaverEnabled(Context context) { in isScreenSaverEnabled()
115 private static boolean isScreenSaverActivatedOnDock(Context context) { in isScreenSaverActivatedOnDock()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
DThemableWidget.java10 public ThemableWidget(Context context) { in ThemableWidget()
16 public ThemableWidget(Context context, AttributeSet attrs) { in ThemableWidget()
22 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr) { in ThemableWidget()
28 public ThemableWidget(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ThemableWidget()
35 … ContextThemeWrapper context = new ContextThemeWrapper(getContext(), getContext().getTheme()); in init() local
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallEventReceiver.java36 @NonNull private static EventResultPersister getReceiver(@NonNull Context context) { in getReceiver()
48 public void onReceive(Context context, Intent intent) { in onReceive()
61 static int addObserver(@NonNull Context context, int id, in addObserver()
73 static void removeObserver(@NonNull Context context, int id) { in removeObserver()
82 static int getNewId(@NonNull Context context) throws EventResultPersister.OutOfIdsException { in getNewId()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java61 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock()
86 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
131 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction()
152 public static EnforcedAdmin checkIfKeyguardFeaturesDisabled(Context context, in checkIfKeyguardFeaturesDisabled()
215 public static EnforcedAdmin checkIfUninstallBlocked(Context context, in checkIfUninstallBlocked()
244 public static EnforcedAdmin checkIfApplicationIsSuspended(Context context, String packageName, in checkIfApplicationIsSuspended()
257 public static EnforcedAdmin checkIfInputMethodDisallowed(Context context, in checkIfInputMethodDisallowed()
302 public static EnforcedAdmin checkIfRemoteContactSearchDisallowed(Context context, int userId) { in checkIfRemoteContactSearchDisallowed()
320 public static EnforcedAdmin checkIfAccessibilityServiceDisallowed(Context context, in checkIfAccessibilityServiceDisallowed()
351 private static int getManagedProfileId(Context context, int userId) { in getManagedProfileId()
[all …]
DUtils.java80 public static void updateLocationEnabled(Context context, boolean enabled, int userId, in updateLocationEnabled()
123 public static String getUserLabel(Context context, UserInfo info) { in getUserLabel()
142 public static Drawable getUserIcon(Context context, UserManager um, UserInfo user) { in getUserIcon()
195 public static String getBatteryStatus(Context context, Intent batteryChangedIntent) { in getBatteryStatus()
234 public static ColorStateList getColorAccent(Context context) { in getColorAccent()
238 public static ColorStateList getColorError(Context context) { in getColorError()
243 public static int getColorAccentDefaultColor(Context context) { in getColorAccentDefaultColor()
248 public static int getColorErrorDefaultColor(Context context) { in getColorErrorDefaultColor()
253 public static int getColorStateListDefaultColor(Context context, int resId) { in getColorStateListDefaultColor()
267 public static int getDisabled(Context context, int inputColor) { in getDisabled()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDecorContext.java68 final Context context = phoneWindow.getContext(); in setPhoneWindow() local
78 final Context context = mContext.get(); in getSystemService() local
99 Context context = mContext.get(); in getResources() local
116 Context context = mContext.get(); in getAutofillOptions() local
125 Context context = mContext.get(); in getContentCaptureOptions() local
134 Context context = mContext.get(); in isUiContext() local
/frameworks/base/services/core/java/com/android/server/am/
DBugReportHandlerUtil.java60 static boolean isBugReportHandlerEnabled(Context context) { in isBugReportHandlerEnabled()
77 static boolean launchBugReportHandlerApp(Context context) { in launchBugReportHandlerApp()
145 private static void launchBugReportHandlerApp(Context context, String handlerApp, in launchBugReportHandlerApp()
167 private static String getCustomBugReportHandlerApp(Context context) { in getCustomBugReportHandlerApp()
173 private static int getCustomBugReportHandlerUser(Context context) { in getCustomBugReportHandlerUser()
193 private static List<ResolveInfo> getBugReportHandlerAppReceivers(Context context, in getBugReportHandlerAppReceivers()
204 private static List<ResolveInfo> getBugReportHandlerAppResponseReceivers(Context context, in getBugReportHandlerAppResponseReceivers()
214 private static String getDefaultBugReportHandlerApp(Context context) { in getDefaultBugReportHandlerApp()
219 private static void resetCustomBugreportHandlerAppAndUser(Context context) { in resetCustomBugreportHandlerAppAndUser()
242 public void onReceive(Context context, Intent intent) { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenu.java97 public AccessibilityFloatingMenu(Context context) { in AccessibilityFloatingMenu()
105 AccessibilityFloatingMenu(Context context, AccessibilityFloatingMenuView menuView) { in AccessibilityFloatingMenu()
151 private Position getPosition(Context context) { in getPosition()
173 private static boolean isMigrationTooltipPromptEnabled(Context context) { in isMigrationTooltipPromptEnabled()
184 private void savePosition(Context context, Position position) { in savePosition()
192 private void showDockTooltipIfNecessary(Context context) { in showDockTooltipIfNecessary()
204 private static boolean isFadeEffectEnabled(Context context) { in isFadeEffectEnabled()
210 private static float getOpacityValue(Context context) { in getOpacityValue()
216 private static int getSizeType(Context context) { in getSizeType()
221 private static int getShapeType(Context context) { in getShapeType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java52 static void showNotification(Context context, String pkgName) { in showNotification()
93 static void hideAllNotifications(Context context) { in hideAllNotifications()
108 static void hideNotification(Context context, String pkgName) { in hideNotification()
121 static void showNotificationIfNotInstalledDelayed(Context context, in showNotificationIfNotInstalledDelayed()
135 static void registerPackageInstallReceiver(Context context) { in registerPackageInstallReceiver()
145 static void unregisterPackageInstallReceiver(Context context) { in unregisterPackageInstallReceiver()
154 static boolean isPackageInstallNotificationActive(Context context) { in isPackageInstallNotificationActive()
166 static String getAppNameFromPackageName(Context context, String packageName) { in getAppNameFromPackageName()
206 private static NotificationManager getNotificationManager(Context context) { in getNotificationManager()
/frameworks/base/core/java/android/appwidget/
DAppWidgetProvider.java57 public void onReceive(Context context, Intent intent) { in onReceive()
120 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { in onUpdate()
138 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, in onAppWidgetOptionsChanged()
155 public void onDeleted(Context context, int[] appWidgetIds) { in onDeleted()
174 public void onEnabled(Context context) { in onEnabled()
189 public void onDisabled(Context context) { in onDisabled()
212 public void onRestored(Context context, int[] oldWidgetIds, int[] newWidgetIds) { in onRestored()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java31 public static int convertDpToPx(float dp, Context context) { in convertDpToPx()
46 public static int getWidth(Context context) { in getWidth()
66 public static int getHeight(Context context) { in getHeight()
84 public static int getCornerRadiusBottom(Context context) { in getCornerRadiusBottom()
103 public static int getCornerRadiusTop(Context context) { in getCornerRadiusTop()
118 private static int getCornerRadiusDefault(Context context) { in getCornerRadiusDefault()
/frameworks/rs/
DrsHidlAdaptation.cpp190 IContext *RsHidlAdaptation::GetIContextHandle(RsContext context) { in GetIContextHandle()
197 sp<IContext> context = mHidl->contextCreate(sdkVersion, (ContextType)ct, flags); in ContextCreate() local
205 void RsHidlAdaptation::ContextDestroy (RsContext context) in ContextDestroy()
214 const void* RsHidlAdaptation::AllocationGetType(RsContext context, RsAllocation allocation) in AllocationGetType()
223 void RsHidlAdaptation::TypeGetNativeData(RsContext context, RsType type, uintptr_t *typedata, uint3… in TypeGetNativeData()
236 void RsHidlAdaptation::ElementGetNativeData(RsContext context, RsElement element, uint32_t *elemDat… in ElementGetNativeData()
248 void RsHidlAdaptation::ElementGetSubElements(RsContext context, RsElement element, uintptr_t *ids, … in ElementGetSubElements()
266 void RsHidlAdaptation::GetName(RsContext context, void * obj, const char **name) { in GetName()
272 RsClosure RsHidlAdaptation::ClosureCreate(RsContext context, RsScriptKernelID kernelID, in ClosureCreate()
314 RsClosure RsHidlAdaptation::InvokeClosureCreate(RsContext context, RsScriptInvokeID invokeID, in InvokeClosureCreate()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java90 public Parameters(Context context) { in Parameters()
115 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode()
167 public static boolean maybeShowBatterySaverConfirmation(Context context, Bundle extras) { in maybeShowBatterySaverConfirmation()
177 private static void showAutoBatterySaverSuggestion(Context context, Bundle extras) { in showAutoBatterySaverSuggestion()
189 private static void setBatterySaverConfirmationAcknowledged(Context context) { in setBatterySaverConfirmationAcknowledged()
197 public static void suppressAutoBatterySaver(Context context) { in suppressAutoBatterySaver()
205 public static void setAutoBatterySaverTriggerLevel(Context context, int level) { in setAutoBatterySaverTriggerLevel()
216 public static void ensureAutoBatterySaver(Context context, int level) { in ensureAutoBatterySaver()
228 public static void revertScheduleToNoneIfNeeded(Context context) { in revertScheduleToNoneIfNeeded()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DPhotoCapabilityUtils.java35 public static boolean canTakePhoto(Context context) { in canTakePhoto()
47 public static boolean canChoosePhoto(Context context) { in canChoosePhoto()
62 public static boolean canCropPhoto(Context context) { in canCropPhoto()
71 private static boolean isDeviceLocked(Context context) { in isDeviceLocked()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() local
80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() local
107 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() local
133 SSLContext context = TestUtils.getSSLContext(source); in testBasicPinning() local
149 SSLContext context = TestUtils.getSSLContext(source); in testExpiredPin() local
164 SSLContext context = TestUtils.getSSLContext(source); in testOverridesPins() local
179 SSLContext context = TestUtils.getSSLContext(source); in testBadPin() local
200 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomains() local
217 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomainConfigs() local
229 SSLContext context = TestUtils.getSSLContext(source); in testIncludeSubdomains() local
[all …]

12345678910>>...136