Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 5907) sorted by relevance

12345678910>>...237

/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntents.java22 import android.content.Context;
116 public abstract void launchPermissionCheckActivity(final Context context); in launchPermissionCheckActivity()
118 public abstract void launchConversationListActivity(final Context context); in launchConversationListActivity()
124 public void launchConversationActivity(final Context context, in launchConversationActivity()
133 public abstract void launchConversationActivity(final Context context, in launchConversationActivity()
141 public abstract void launchConversationActivityWithParentStack(Context context, in launchConversationActivityWithParentStack()
147 public abstract void launchConversationActivityNewTask(final Context context, in launchConversationActivityNewTask()
153 public abstract void launchCreateNewConversationActivity(final Context context, in launchCreateNewConversationActivity()
159 public abstract void launchDebugMmsConfigActivity(final Context context); in launchDebugMmsConfigActivity()
164 public abstract void launchSettingsActivity(final Context context); in launchSettingsActivity()
[all …]
DUIIntentsImpl.java26 import android.content.Context;
90 private Intent getConversationActivityIntent(final Context context, in getConversationActivityIntent()
138 public void launchPermissionCheckActivity(final Context context) { in launchPermissionCheckActivity()
146 private Intent getConversationListActivityIntent(final Context context) { in getConversationListActivityIntent()
151 public void launchConversationListActivity(final Context context) { in launchConversationListActivity()
159 private Intent getSmsStorageLowWarningActivityIntent(final Context context) { in getSmsStorageLowWarningActivityIntent()
164 public void launchConversationActivity(final Context context, in launchConversationActivity()
175 final Context context, final String conversationId) { in launchConversationActivityNewTask()
183 public void launchConversationActivityWithParentStack(final Context context, in launchConversationActivityWithParentStack()
196 public void launchCreateNewConversationActivity(final Context context, in launchCreateNewConversationActivity()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/
DVoicemailClient.java19 import android.content.Context;
68 boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle); in hasCarrierSupport()
76 boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailEnabled()
83 void setVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled); in setVoicemailEnabled()
95 Context context, StringBuilder where, List<String> selectionArgs); in appendOmtpVoicemailSelectionClause()
106 Context context, StringBuilder where, List<String> selectionArgs); in appendOmtpVoicemailStatusSelectionClause()
108 boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailArchiveEnabled()
115 boolean isVoicemailArchiveAvailable(Context context); in isVoicemailArchiveAvailable()
118 Context context, PhoneAccountHandle phoneAccountHandle, boolean value); in setVoicemailArchiveEnabled()
125 boolean isVoicemailTranscriptionAvailable(Context context, PhoneAccountHandle account); in isVoicemailTranscriptionAvailable()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/stub/
DStubVoicemailClient.java19 import android.content.Context;
43 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled()
49 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) {} in setVoicemailEnabled()
53 Context context, StringBuilder where, List<String> selectionArgs) {} in appendOmtpVoicemailSelectionClause()
57 Context context, StringBuilder where, List<String> selectionArgs) {} in appendOmtpVoicemailStatusSelectionClause()
60 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled()
65 public boolean isVoicemailArchiveAvailable(Context context) { in isVoicemailArchiveAvailable()
71 Context context, PhoneAccountHandle phoneAccountHandle, boolean value) {} in setVoicemailArchiveEnabled()
75 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailTranscriptionAvailable()
80 public boolean isVoicemailTranscriptionEnabled(Context context, PhoneAccountHandle account) { in isVoicemailTranscriptionEnabled()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java20 import android.content.Context;
64 public static boolean getHamburgerPromoDisplayedBefore(Context context) { in getHamburgerPromoDisplayedBefore()
69 public static void setHamburgerPromoDisplayedBefore(Context context) { in setHamburgerPromoDisplayedBefore()
76 public static boolean getHamburgerMenuClickedBefore(Context context) { in getHamburgerMenuClickedBefore()
81 public static void setHamburgerMenuClickedBefore(Context context) { in setHamburgerMenuClickedBefore()
88 public static boolean getHamburgerPromoTriggerActionHappenedBefore(Context context) { in getHamburgerPromoTriggerActionHappenedBefore()
93 public static void setHamburgerPromoTriggerActionHappenedBefore(Context context) { in setHamburgerPromoTriggerActionHappenedBefore()
109 public static boolean getShouldShowHamburgerPromo(Context context) { in getShouldShowHamburgerPromo()
115 protected static SharedPreferences getSharedPreferences(Context context) { in getSharedPreferences()
117 Context.MODE_PRIVATE); in getSharedPreferences()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java35 import android.content.Context;
82 public static boolean hasPhonePermissions(Context context) { in hasPhonePermissions()
86 public static boolean hasReadPhoneStatePermissions(Context context) { in hasReadPhoneStatePermissions()
90 public static boolean hasContactsReadPermissions(Context context) { in hasContactsReadPermissions()
94 public static boolean hasContactsWritePermissions(Context context) { in hasContactsWritePermissions()
98 public static boolean hasLocationPermissions(Context context) { in hasLocationPermissions()
102 public static boolean hasCameraPermissions(Context context) { in hasCameraPermissions()
106 public static boolean hasMicrophonePermissions(Context context) { in hasMicrophonePermissions()
110 public static boolean hasCallLogReadPermissions(Context context) { in hasCallLogReadPermissions()
114 public static boolean hasCallLogWritePermissions(Context context) { in hasCallLogWritePermissions()
[all …]
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java22 import android.content.Context;
74 public static void showInCallScreen(Context context, boolean showDialpad) { in showInCallScreen()
85 public static void silenceRinger(Context context) { in silenceRinger()
96 public static void cancelMissedCallsNotification(Context context) { in cancelMissedCallsNotification()
106 public static Uri getAdnUriForPhoneAccount(Context context, PhoneAccountHandle handle) { in getAdnUriForPhoneAccount()
118 Context context, String dialString, @Nullable PhoneAccountHandle handle) { in handleMmi()
135 Context context, String uriScheme) { in getDefaultOutgoingPhoneAccount()
142 public static PhoneAccount getPhoneAccount(Context context, PhoneAccountHandle handle) { in getPhoneAccount()
146 public static List<PhoneAccountHandle> getCallCapablePhoneAccounts(Context context) { in getCallCapablePhoneAccounts()
155 public static List<PhoneAccountHandle> getSubscriptionPhoneAccounts(Context context) { in getSubscriptionPhoneAccounts()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DInjector.java18 import android.content.Context;
35 AlarmManagerWrapper getAlarmManagerWrapper(Context context); in getAlarmManagerWrapper()
39 CategoryProvider getCategoryProvider(Context context); in getCategoryProvider()
41 CurrentWallpaperInfoFactory getCurrentWallpaperFactory(Context context); in getCurrentWallpaperFactory()
43 ExploreIntentChecker getExploreIntentChecker(Context context); in getExploreIntentChecker()
45 FormFactorChecker getFormFactorChecker(Context context); in getFormFactorChecker()
47 LoggingOptInStatusProvider getLoggingOptInStatusProvider(Context context); in getLoggingOptInStatusProvider()
49 NetworkStatusNotifier getNetworkStatusNotifier(Context context); in getNetworkStatusNotifier()
51 PartnerProvider getPartnerProvider(Context context); in getPartnerProvider()
55 Requester getRequester(Context context); in getRequester()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoleBehavior.java19 import android.content.Context;
41 default void onRoleAdded(@NonNull Role role, @NonNull Context context) {} in onRoleAdded()
47 @NonNull Context context) { in isAvailableAsUser()
55 default List<String> getDefaultHolders(@NonNull Role role, @NonNull Context context) { in getDefaultHolders()
63 default String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
71 @NonNull Context context) { in isVisibleAsUser()
80 @NonNull Context context) { in getManageIntentAsUser()
89 @NonNull Context context) {} in preparePreferenceAsUser()
96 @NonNull Context context) { in isApplicationVisibleAsUser()
106 @NonNull UserHandle user, @NonNull Context context) {} in prepareApplicationPreferenceAsUser()
[all …]
/packages/apps/Camera2/src/com/android/camera/util/
DAndroidServices.java24 import android.content.Context;
60 private final Context mContext;
61 private AndroidServices(Context context) { in AndroidServices()
66 return (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in provideActivityManager()
70 return (AudioManager) getSystemService(Context.AUDIO_SERVICE); in provideAudioManager()
74 return (AccessibilityManager) getSystemService(Context.ACCESSIBILITY_SERVICE); in provideAccessibilityManager()
82 Object service = ApiHelper.HAS_CAMERA_2_API ? getSystemService(Context.CAMERA_SERVICE) in provideCameraManager()
94 return (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); in provideDevicePolicyManager()
98 return (DisplayManager) getSystemService(Context.DISPLAY_SERVICE); in provideDisplayManager()
102 return (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); in provideKeyguardManager()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailClientImpl.java17 import android.content.Context;
80 public boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle) { in hasCarrierSupport()
86 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled()
92 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) { in setVoicemailEnabled()
97 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled()
102 public boolean isVoicemailArchiveAvailable(Context context) { in isVoicemailArchiveAvailable()
123 Context context, PhoneAccountHandle phoneAccountHandle, boolean value) { in setVoicemailArchiveEnabled()
129 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailTranscriptionAvailable()
166 public boolean isVoicemailTranscriptionEnabled(Context context, PhoneAccountHandle account) { in isVoicemailTranscriptionEnabled()
173 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailDonationAvailable()
[all …]
/packages/apps/Settings/src/com/android/settings/
DUtils.java35 import android.content.Context;
148 public static boolean updatePreferenceToSpecificActivityOrRemove(Context context, in updatePreferenceToSpecificActivityOrRemove()
193 public static UserManager getUserManager(Context context) { in getUserManager()
211 public static boolean isVoiceCapable(Context context) { in isVoiceCapable()
213 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isVoiceCapable()
222 public static String getWifiIpAddresses(Context context) { in getWifiIpAddresses()
227 context.getSystemService(Context.CONNECTIVITY_SERVICE); in getWifiIpAddresses()
307 public static String getMeProfileName(Context context, boolean full) { in getMeProfileName()
315 private static String getShorterNameIfPossible(Context context) { in getShorterNameIfPossible()
320 private static String getLocalProfileGivenName(Context context) { in getLocalProfileGivenName()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DUtils.java35 import android.content.Context;
153 public static boolean updatePreferenceToSpecificActivityOrRemove(Context context, in updatePreferenceToSpecificActivityOrRemove()
198 public static UserManager getUserManager(Context context) { in getUserManager()
216 public static boolean isVoiceCapable(Context context) { in isVoiceCapable()
218 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isVoiceCapable()
227 public static String getWifiIpAddresses(Context context) { in getWifiIpAddresses()
232 context.getSystemService(Context.CONNECTIVITY_SERVICE); in getWifiIpAddresses()
312 public static String getMeProfileName(Context context, boolean full) { in getMeProfileName()
320 private static String getShorterNameIfPossible(Context context) { in getShorterNameIfPossible()
325 private static String getLocalProfileGivenName(Context context) { in getLocalProfileGivenName()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/
DCommonPreferences.java20 import android.content.Context;
88 public static void initialize(final Context context) { in initialize()
116 public static synchronized void release(Context context) { in release()
136 public static void loadPreferences(Context context) { in loadPreferences()
145 private static boolean useContentProvider(Context context) { in useContentProvider()
150 public static synchronized boolean shouldShowSetupActivity(Context context) { in shouldShowSetupActivity()
159 public static synchronized void setShouldShowSetupActivity(Context context, boolean need) { in setShouldShowSetupActivity()
167 public static synchronized @TrickplaySetting int getTrickplaySetting(Context context) { in getTrickplaySetting()
178 Context context, @TrickplaySetting int trickplaySetting) { in setTrickplaySetting()
191 public static synchronized boolean getStoreTsStream(Context context) { in getStoreTsStream()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberCompat.java22 import android.content.Context;
60 public static String getIdColumnName(Context context) { in getIdColumnName()
69 public static String getTypeColumnName(Context context) { in getTypeColumnName()
78 public static String getSourceColumnName(Context context) { in getSourceColumnName()
83 public static String getOriginalNumberColumnName(Context context) { in getOriginalNumberColumnName()
94 public static String getCountryIsoColumnName(Context context) { in getCountryIsoColumnName()
99 public static String getE164NumberColumnName(Context context) { in getE164NumberColumnName()
117 public static boolean useNewFiltering(Context context) { in useNewFiltering()
129 public static boolean hasMigratedToNewBlocking(Context context) { in hasMigratedToNewBlocking()
142 public static void setHasMigratedToNewBlocking(Context context, boolean hasMigrated) { in setHasMigratedToNewBlocking()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java26 import android.content.Context;
90 public void updateNotification(Context context) { in updateNotification()
103 public void cancelNotifications(Context context) { in cancelNotifications()
112 public void registerPhoneAccount(Context context) { in registerPhoneAccount()
114 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in registerPhoneAccount()
209 public void showAllPhoneAccounts(Context context) { in showAllPhoneAccounts()
211 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in showAllPhoneAccounts()
220 private NotificationManager getNotificationManager(Context context) { in getNotificationManager()
221 return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in getNotificationManager()
227 private Notification getPhoneAccountNotification(Context context) { in getPhoneAccountNotification()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java48 import android.content.Context;
170 when(mMockContext.getSystemService(eq(Context.NOTIFICATION_SERVICE))) in setUp()
231 eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindToService_NoServicesFound_IncomingCall()
232 | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS), in testBindToService_NoServicesFound_IncomingCall()
266 eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindToService_NoServicesFound_OutgoingCall()
267 | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS), in testBindToService_NoServicesFound_OutgoingCall()
319 eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindToService_DefaultDialer_NoEmergency()
320 | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS), in testBindToService_DefaultDialer_NoEmergency()
350 eq(Context.BIND_AUTO_CREATE | Context.BIND_FOREGROUND_SERVICE in testBindToService_SystemDialer_Emergency()
351 | Context.BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS), in testBindToService_SystemDialer_Emergency()
[all …]
DComponentContextFixture.java37 import android.content.Context;
97 public class ComponentContextFixture implements TestFixture<Context> {
123 public Context getApplicationContext() { in getApplicationContext()
182 case Context.AUDIO_SERVICE: in getSystemService()
184 case Context.TELEPHONY_SERVICE: in getSystemService()
186 case Context.APP_OPS_SERVICE: in getSystemService()
188 case Context.NOTIFICATION_SERVICE: in getSystemService()
190 case Context.STATUS_BAR_SERVICE: in getSystemService()
192 case Context.USER_SERVICE: in getSystemService()
194 case Context.TELEPHONY_SUBSCRIPTION_SERVICE: in getSystemService()
[all …]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/util/
DThemes.java18 import android.content.Context;
31 public static int getAttrColor(Context context, int attr) { in getAttrColor()
36 public static int getAttrColor(Context context, @StyleRes int styleResId, int attr) { in getAttrColor()
48 public static ColorStateList getAttrColorStateList(Context context, int attr) { in getAttrColorStateList()
57 public static ColorStateList getAttrColorStateList(Context context, @StyleRes int styleResId, in getAttrColorStateList()
68 public static boolean getAttrBoolean(Context context, int attr) { in getAttrBoolean()
73 public static boolean getAttrBoolean(Context context, @StyleRes int styleResId, int attr) { in getAttrBoolean()
81 public static Drawable getAttrDrawable(Context context, int attr) { in getAttrDrawable()
86 public static Drawable getAttrDrawable(Context context, @StyleRes int styleResId, int attr) { in getAttrDrawable()
94 public static int getAttrInteger(Context context, int attr) { in getAttrInteger()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java19 import android.content.Context;
75 public static String getMultiAudioId(Context context) { in getMultiAudioId()
80 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId()
87 public static String getMultiAudioLanguage(Context context) { in getMultiAudioLanguage()
92 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage()
99 public static int getMultiAudioChannelCount(Context context) { in getMultiAudioChannelCount()
104 public static void setMultiAudioChannelCount(Context context, int channelCount) { in setMultiAudioChannelCount()
112 Context context, int trackType, TvTrackInfo info) { in setDvrPlaybackTrackSettings()
143 public static TvTrackInfo getDvrPlaybackTrackSettings(Context context, int trackType) { in getDvrPlaybackTrackSettings()
172 public static void addContentRatingSystem(Context context, String id) { in addContentRatingSystem()
[all …]
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java21 import android.content.Context;
62 private Context mRealTestContext;
66 public MyMockContext(Context realTestContext) { in MyMockContext()
81 case Context.COUNTRY_DETECTOR: in getSystemService()
83 case Context.APP_OPS_SERVICE: in getSystemService()
85 case Context.USER_SERVICE: in getSystemService()
87 case Context.TELECOM_SERVICE: in getSystemService()
89 case Context.TELEPHONY_SERVICE: in getSystemService()
91 case Context.CARRIER_CONFIG_SERVICE: in getSystemService()
132 "block_number_provider_prefs", Context.MODE_PRIVATE); in initializeContext()
[all …]
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/
DTestInjector.java18 import android.content.Context;
82 public CategoryProvider getCategoryProvider(Context context) { in getCategoryProvider()
90 public PartnerProvider getPartnerProvider(Context context) { in getPartnerProvider()
98 public WallpaperPreferences getPreferences(Context context) { in getPreferences()
106 public WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
114 public WallpaperRefresher getWallpaperRefresher(Context context) { in getWallpaperRefresher()
122 public Requester getRequester(Context unused) { in getRequester()
127 public WallpaperManagerCompat getWallpaperManagerCompat(Context context) { in getWallpaperManagerCompat()
136 public CurrentWallpaperInfoFactory getCurrentWallpaperFactory(Context context) { in getCurrentWallpaperFactory()
145 public LoggingOptInStatusProvider getLoggingOptInStatusProvider(Context context) { in getLoggingOptInStatusProvider()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DIntentProvider.java20 import android.content.Context;
58 public Intent getIntent(Context context) { in getReturnCallIntentProvider()
68 final String number, final Context context, final TelephonyManager telephonyManager) {
71 public Intent getIntent(Context context) {
88 public Intent getIntent(Context context) {
101 public Intent getIntent(Context context) {
110 public void logInteraction(Context context) {
125 public Intent getIntent(Context context) {
130 public void logInteraction(Context context) {
139 public Intent getIntent(Context context) {
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt25 import android.content.Context in <lambda>()
26 import android.content.Context.ALARM_SERVICE in <lambda>()
65 override fun onReceive(context: Context, intent: Intent) { in <lambda>()
96 context: Context, in <lambda>()
102 fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) in <lambda>()
110 context: Context, in <lambda>()
135 override fun cancelScheduledInstanceStateChange(context: Context, instance: AlarmInstance) { in <lambda>()
210 private fun updateNextAlarm(context: Context) { in <lambda>()
227 fun getNextFiringAlarm(context: Context): AlarmInstance? { in <lambda>()
246 private fun updateNextAlarmInSystemSettings(context: Context, nextAlarm: AlarmInstance?) { in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactory.java19 import android.content.Context;
56 protected static Context sAppContext;
63 public static FeatureFactory getFactory(Context context) { in getFactory()
92 public static Context getAppContext() { in getAppContext()
98 public abstract SuggestionFeatureProvider getSuggestionFeatureProvider(Context context); in getSuggestionFeatureProvider()
100 public abstract SupportFeatureProvider getSupportFeatureProvider(Context context); in getSupportFeatureProvider()
104 public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider(Context context); in getPowerUsageFeatureProvider()
106 public abstract DashboardFeatureProvider getDashboardFeatureProvider(Context context); in getDashboardFeatureProvider()
110 public abstract ApplicationFeatureProvider getApplicationFeatureProvider(Context context); in getApplicationFeatureProvider()
115 Context context); in getEnterprisePrivacyFeatureProvider()
[all …]

12345678910>>...237