Home
last modified time | relevance | path

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

12345678910>>...159

/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java143 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager()
149 static ActivityManager provideActivityManager(Context context) { in provideActivityManager()
155 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager()
161 static Optional<SystemUpdateManager> provideSystemUpdateManager(Context context) { in provideSystemUpdateManager()
168 static AmbientContextManager provideAmbientContextManager(Context context) { in provideAmbientContextManager()
174 public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) { in provideAmbientDisplayConfiguration()
180 static AppOpsManager provideAppOpsManager(Context context) { in provideAppOpsManager()
186 static AudioManager provideAudioManager(Context context) { in provideAudioManager()
192 static CaptioningManager provideCaptioningManager(Context context) { in provideCaptioningManager()
205 static ColorDisplayManager provideColorDisplayManager(Context context) { in provideColorDisplayManager()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DApplicationContext.java64 public ApplicationContext(Context context) { in ApplicationContext()
70 Context context = mContextRef.get(); in getAssets() local
79 Context context = mContextRef.get(); in getResources() local
88 Context context = mContextRef.get(); in getPackageManager() local
97 Context context = mContextRef.get(); in getContentResolver() local
106 Context context = mContextRef.get(); in getMainLooper() local
120 Context context = mContextRef.get(); in setTheme() local
128 Context context = mContextRef.get(); in getTheme() local
137 Context context = mContextRef.get(); in getClassLoader() local
146 Context context = mContextRef.get(); in getPackageName() local
[all …]
/frameworks/base/core/java/android/hardware/input/
DInputSettings.java107 public static int getPointerSpeed(Context context) { in getPointerSpeed()
125 public static void setPointerSpeed(Context context, int speed) { in setPointerSpeed()
149 public static float getMaximumObscuringOpacityForTouch(Context context) { in getMaximumObscuringOpacityForTouch()
181 public static void setMaximumObscuringOpacityForTouch( in setMaximumObscuringOpacityForTouch()
196 public static boolean isStylusEverUsed(@NonNull Context context) { in isStylusEverUsed()
207 public static void setStylusEverUsed(@NonNull Context context, boolean stylusEverUsed) { in setStylusEverUsed()
224 public static int getTouchpadPointerSpeed(@NonNull Context context) { in getTouchpadPointerSpeed()
242 public static void setTouchpadPointerSpeed(@NonNull Context context, int speed) { in setTouchpadPointerSpeed()
262 public static boolean useTouchpadNaturalScrolling(@NonNull Context context) { in useTouchpadNaturalScrolling()
279 public static void setTouchpadNaturalScrolling(@NonNull Context context, boolean enabled) { in setTouchpadNaturalScrolling()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java565 public @NonNull DevicePolicyManager getManager(@NonNull Context context) { in getManager()
579 public @NonNull ComponentName getWho(@NonNull Context context) { in getWho()
600 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled()
617 public @Nullable CharSequence onDisableRequested(@NonNull Context context, in onDisableRequested()
634 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled()
652 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged()
666 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged()
683 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed()
697 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent, in onPasswordFailed()
714 public void onPasswordSucceeded(@NonNull Context context, @NonNull Intent intent) { in onPasswordSucceeded()
[all …]
/frameworks/base/core/java/android/content/
DPermissionChecker.java150 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
193 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
231 public static int checkPermissionForDataDeliveryFromDataSource(@NonNull Context context, in checkPermissionForDataDeliveryFromDataSource()
268 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
306 public static int checkPermissionForDataDelivery(@NonNull Context context, in checkPermissionForDataDelivery()
314 private static int checkPermissionForDataDeliveryCommon(@NonNull Context context, in checkPermissionForDataDeliveryCommon()
352 public static int checkPermissionAndStartDataDelivery(@NonNull Context context, in checkPermissionAndStartDataDelivery()
387 public static int startOpForDataDelivery(@NonNull Context context, in startOpForDataDelivery()
407 public static void finishDataDelivery(@NonNull Context context, @NonNull String op, in finishDataDelivery()
427 public static void finishDataDeliveryFromDatasource(@NonNull Context context, in finishDataDeliveryFromDatasource()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java94 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState()
102 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow()
118 public static boolean checkInternetPermissionNoThrow(Context context, String message) { in checkInternetPermissionNoThrow()
136 Context context, String message) { in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow()
170 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState()
204 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId()
227 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub()
270 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, in checkCallingOrSelfReadDeviceIdentifiers()
296 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, int subId, in checkCallingOrSelfReadDeviceIdentifiers()
324 public static boolean checkCallingOrSelfReadSubscriberIdentifiers(Context context, int subId, in checkCallingOrSelfReadSubscriberIdentifiers()
[all …]
DSmsApplication.java160 public String getApplicationName(Context context) { in getApplicationName()
241 public static Collection<SmsApplicationData> getApplicationCollection(Context context) { in getApplicationCollection()
248 public static Collection<SmsApplicationData> getApplicationCollectionAsUser(Context context, in getApplicationCollectionAsUser()
259 Context context, int userId) { in getApplicationCollectionInternal()
477 private static SmsApplicationData getApplication(Context context, boolean updateIfNeeded, in getApplication()
540 private static String getDefaultSmsPackage(Context context, int userId) { in getDefaultSmsPackage()
547 private static void defaultSmsAppChanged(Context context) { in defaultSmsAppChanged()
575 private static boolean tryFixExclusiveSmsAppops(Context context, in tryFixExclusiveSmsAppops()
600 public static void setDefaultApplication(String packageName, Context context) { in setDefaultApplication()
607 public static void setDefaultApplicationAsUser(String packageName, Context context, in setDefaultApplicationAsUser()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DRotationPolicy.java57 public static boolean isRotationSupported(Context context) { in isRotationSupported()
74 public static int getRotationLockOrientation(Context context) { in getRotationLockOrientation()
90 public static boolean isRotationLockToggleVisible(Context context) { in isRotationLockToggleVisible()
100 public static boolean isRotationLocked(Context context) { in isRotationLocked()
108 public static void setRotationLock(Context context, final boolean enabled, String caller) { in setRotationLock()
118 public static void setRotationLockAtAngle(Context context, final boolean enabled, in setRotationLockAtAngle()
132 public static void setRotationLockForAccessibility(Context context, final boolean enabled, in setRotationLockForAccessibility()
141 private static boolean areAllRotationsAllowed(Context context) { in areAllRotationsAllowed()
145 private static boolean useCurrentRotationOnRotationLockChange(Context context) { in useCurrentRotationOnRotationLockChange()
172 public static void registerRotationPolicyListener(Context context, in registerRotationPolicyListener()
[all …]
/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/packages/SystemUI/src/com/android/systemui/
DPrefs.java126 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean()
130 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean()
134 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt()
138 public static void putInt(Context context, @Key String key, int value) { in putInt()
142 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong()
146 public static void putLong(Context context, @Key String key, long value) { in putLong()
150 public static String getString(Context context, @Key String key, String defaultValue) { in getString()
154 public static void putString(Context context, @Key String key, String value) { in putString()
158 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet()
163 Context context, @Key String key, Set<String> defaultValue) { in getStringSet()
[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
92 Context context = mContext.get(); in getResources() local
109 Context context = mContext.get(); in getAutofillOptions() local
118 Context context = mContext.get(); in getContentCaptureOptions() local
127 Context context = mContext.get(); in isUiContext() local
136 Context context = mContext.get(); in isConfigurationContext() local
/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/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java80 public static Drawable getRestrictedPadlock(Context context) { in getRestrictedPadlock()
100 public static Intent checkIfRequiresEnhancedConfirmation(@NonNull Context context, in checkIfRequiresEnhancedConfirmation()
127 public static boolean isEnhancedConfirmationRestricted(@NonNull Context context, in isEnhancedConfirmationRestricted()
169 public static EnforcedAdmin checkIfRestrictionEnforced(Context context, in checkIfRestrictionEnforced()
213 public static boolean hasBaseUserRestriction(Context context, in hasBaseUserRestriction()
234 public static EnforcedAdmin checkIfKeyguardFeaturesDisabled(Context context, in checkIfKeyguardFeaturesDisabled()
297 public static EnforcedAdmin checkIfUninstallBlocked(Context context, in checkIfUninstallBlocked()
326 public static EnforcedAdmin checkIfApplicationIsSuspended(Context context, String packageName, in checkIfApplicationIsSuspended()
339 public static EnforcedAdmin checkIfInputMethodDisallowed(Context context, in checkIfInputMethodDisallowed()
384 public static EnforcedAdmin checkIfRemoteContactSearchDisallowed(Context context, int userId) { in checkIfRemoteContactSearchDisallowed()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java151 final Context context = mService.mContext; in setSurroundFormatEnabled() local
205 final Context context = mService.mContext; in getIsSurroundFormatEnabled() local
233 final Context context = mService.mContext; in setEncodedSurroundMode() local
240 final Context context = mService.mContext; in getEncodedSurroundMode() local
267 final Context context = mService.mContext; in setSoundDoseValue() local
274 final Context context = mService.mContext; in getSoundDoseValue() local
281 final Context context = mService.mContext; in resetSoundDoseTimeout() local
289 final Context context = mService.mContext; in setVolume() local
300 final Context context = mService.mContext; in setDeviceVolume() local
317 final Context context = mService.mContext; in adjMute() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java98 public Parameters(Context context) { in Parameters()
122 public static synchronized boolean setPowerSaveMode(Context context, in setPowerSaveMode()
175 public static boolean maybeShowBatterySaverConfirmation(Context context, Bundle extras) { in maybeShowBatterySaverConfirmation()
187 private static void recordBatterySaverEnabledReason(Context context, boolean enable, in recordBatterySaverEnabledReason()
195 private static void sendSystemUiBroadcast(Context context, String action, Bundle extras) { in sendSystemUiBroadcast()
203 private static void setBatterySaverConfirmationAcknowledged(Context context) { in setBatterySaverConfirmationAcknowledged()
213 public static void suppressAutoBatterySaver(Context context) { in suppressAutoBatterySaver()
221 public static void setAutoBatterySaverTriggerLevel(Context context, int level) { in setAutoBatterySaverTriggerLevel()
232 public static void ensureAutoBatterySaver(Context context, int level) { in ensureAutoBatterySaver()
244 public static void revertScheduleToNoneIfNeeded(Context context) { in revertScheduleToNoneIfNeeded()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
DWifiEnterpriseRestrictionUtils.java38 public static boolean isWifiTetheringAllowed(Context context) { in isWifiTetheringAllowed()
50 public static boolean isWifiDirectAllowed(Context context) { in isWifiDirectAllowed()
62 public static boolean isAddWifiConfigAllowed(Context context) { in isAddWifiConfigAllowed()
74 public static boolean isChangeWifiStateAllowed(Context context) { in isChangeWifiStateAllowed()
81 static boolean hasUserRestrictionFromT(Context context, String restrictionKey) { in hasUserRestrictionFromT()
/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/opt/net/wifi/libs/WifiTrackerLib/src/com/android/wifitrackerlib/
DUtils.java241 static String getAppLabel(Context context, String packageName) { in getAppLabel()
252 static String getConnectedDescription(@NonNull Context context, in getConnectedDescription()
338 static String getConnectingDescription(Context context, NetworkInfo networkInfo) { in getConnectingDescription()
356 Context context, in getDisconnectedDescription()
403 Context context, WifiConfiguration wifiConfiguration) { in getSuggestionOrSpecifierLabel()
422 Context context, WifiConfiguration wifiConfiguration) { in getWifiConfigurationFailureMessage()
497 static String getAutoConnectDescription(@NonNull Context context, in getAutoConnectDescription()
507 static String getMeteredDescription(@NonNull Context context, @Nullable WifiEntry wifiEntry) { in getMeteredDescription()
593 static String getNetworkDetailedState(Context context, NetworkInfo networkInfo) { in getNetworkDetailedState()
613 static boolean isSimPresent(@NonNull Context context, int carrierId) { in isSimPresent()
[all …]
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DUtils.java60 static @NonNull CharSequence getApplicationLabel( in getApplicationLabel()
71 static @NonNull Drawable getApplicationIcon(@NonNull Context context, in getApplicationIcon()
77 static Spanned getHtmlFromResources( in getHtmlFromResources()
87 static @NonNull Drawable getVendorHeaderIcon(@NonNull Context context, in getVendorHeaderIcon()
100 static CharSequence getVendorHeaderName(@NonNull Context context, in getVendorHeaderName()
112 static boolean hasVendorIcon(@NonNull Context context, in hasVendorIcon()
124 private static boolean isDarkTheme(@NonNull Context context) { in isDarkTheme()
131 static int getImageColor(@NonNull Context context) { in getImageColor()
141 private static @NonNull ApplicationInfo getApplicationInfo(@NonNull Context context, in getApplicationInfo()
151 static @NonNull Drawable getIcon(@NonNull Context context, int resId) { in getIcon()
/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/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java33 public static int convertDpToPx(float dp, Context context) { in convertDpToPx()
48 public static int getWidth(Context context) { in getWidth()
68 public static int getHeight(Context context) { in getHeight()
86 public static int getCornerRadiusBottom(Context context) { in getCornerRadiusBottom()
101 public static int getCornerRadiusTop(Context context) { in getCornerRadiusTop()
112 private static int getCornerRadiusDefault(Context context) { in getCornerRadiusDefault()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/security/
DCellularNetworkSecuritySafetySource.java97 public static synchronized CellularNetworkSecuritySafetySource getInstance(Context context) { in getInstance()
113 public synchronized void setNullCipherIssueEnabled(Context context, boolean enabled) { in setNullCipherIssueEnabled()
121 Context context, int subId, @NullCipherState int nullCipherState) { in setNullCipherState()
129 public synchronized void clearNullCipherState(Context context, int subId) { in clearNullCipherState()
137 public synchronized void setIdentifierDisclosureIssueEnabled(Context context, boolean enabled) { in setIdentifierDisclosureIssueEnabled()
149 Context context, int subId, int count, Instant start, Instant end) { in setIdentifierDisclosure()
156 public synchronized void clearIdentifierDisclosure(Context context, int subId) { in clearIdentifierDisclosure()
162 public synchronized void refresh(Context context, String refreshBroadcastId) { in refresh()
167 private void updateSafetyCenter(Context context) { in updateSafetyCenter()
175 private SafetySourceData getSafetySourceData(Context context) { in getSafetySourceData()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppUtils.java53 static void showNotification(Context context, String pkgName) { in showNotification()
94 static void hideAllNotifications(Context context) { in hideAllNotifications()
109 static void hideNotification(Context context, String pkgName) { in hideNotification()
122 static void showNotificationIfNotInstalledDelayed(Context context, in showNotificationIfNotInstalledDelayed()
136 static void registerPackageInstallReceiver(Context context) { in registerPackageInstallReceiver()
146 static void unregisterPackageInstallReceiver(Context context) { in unregisterPackageInstallReceiver()
155 static boolean isPackageInstallNotificationActive(Context context) { in isPackageInstallNotificationActive()
167 static String getAppNameFromPackageName(Context context, String packageName) { in getAppNameFromPackageName()
207 private static NotificationManager getNotificationManager(Context context) { in getNotificationManager()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java53 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() local
72 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() local
99 SSLContext context = TestUtils.getSSLContext(source); in testBasicDomainConfig() local
125 SSLContext context = TestUtils.getSSLContext(source); in testBasicPinning() local
141 SSLContext context = TestUtils.getSSLContext(source); in testExpiredPin() local
156 SSLContext context = TestUtils.getSSLContext(source); in testOverridesPins() local
171 SSLContext context = TestUtils.getSSLContext(source); in testBadPin() local
192 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomains() local
209 SSLContext context = TestUtils.getSSLContext(source); in testMultipleDomainConfigs() local
221 SSLContext context = TestUtils.getSSLContext(source); in testIncludeSubdomains() local
[all …]

12345678910>>...159