Home
last modified time | relevance | path

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

12345678910>>...226

/packages/apps/Messaging/src/com/android/messaging/ui/
DUIIntents.java22 import android.content.Context;
113 public abstract void launchPermissionCheckActivity(final Context context); in launchPermissionCheckActivity()
115 public abstract void launchConversationListActivity(final Context context); in launchConversationListActivity()
121 public void launchConversationActivity(final Context context, in launchConversationActivity()
130 public abstract void launchConversationActivity(final Context context, in launchConversationActivity()
138 public abstract void launchConversationActivityWithParentStack(Context context, in launchConversationActivityWithParentStack()
144 public abstract void launchConversationActivityNewTask(final Context context, in launchConversationActivityNewTask()
150 public abstract void launchCreateNewConversationActivity(final Context context, in launchCreateNewConversationActivity()
156 public abstract void launchDebugMmsConfigActivity(final Context context); in launchDebugMmsConfigActivity()
161 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 LiveWallpaperStatusChecker getLiveWallpaperStatusChecker(Context context); in getLiveWallpaperStatusChecker()
49 LoggingOptInStatusProvider getLoggingOptInStatusProvider(Context context); in getLoggingOptInStatusProvider()
51 NetworkStatusNotifier getNetworkStatusNotifier(Context context); in getNetworkStatusNotifier()
53 PartnerProvider getPartnerProvider(Context context); in getPartnerProvider()
[all …]
DBaseWallpaperInjector.java18 import android.content.Context;
56 public synchronized PartnerProvider getPartnerProvider(Context context) { in getPartnerProvider()
64 public synchronized WallpaperPreferences getPreferences(Context context) { in getPreferences()
72 public synchronized WallpaperPersister getWallpaperPersister(Context context) { in getWallpaperPersister()
80 public synchronized WallpaperRefresher getWallpaperRefresher(Context context) { in getWallpaperRefresher()
88 public synchronized Requester getRequester(Context context) { in getRequester()
96 public synchronized WallpaperManagerCompat getWallpaperManagerCompat(Context context) { in getWallpaperManagerCompat()
104 public synchronized CurrentWallpaperInfoFactory getCurrentWallpaperFactory(Context context) { in getCurrentWallpaperFactory()
113 public synchronized LiveWallpaperStatusChecker getLiveWallpaperStatusChecker(Context context) { in getLiveWallpaperStatusChecker()
122 public synchronized NetworkStatusNotifier getNetworkStatusNotifier(Context context) { in getNetworkStatusNotifier()
[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/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/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/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DMyMockContext.java21 import android.content.Context;
62 private Context mRealTestContext;
65 public MyMockContext(Context realTestContext) { in MyMockContext()
80 case Context.COUNTRY_DETECTOR: in getSystemService()
82 case Context.APP_OPS_SERVICE: in getSystemService()
84 case Context.USER_SERVICE: in getSystemService()
86 case Context.TELECOM_SERVICE: in getSystemService()
88 case Context.TELEPHONY_SERVICE: in getSystemService()
90 case Context.CARRIER_CONFIG_SERVICE: in getSystemService()
131 "block_number_provider_prefs", Context.MODE_PRIVATE); in initializeContext()
[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/PermissionController/src/com/android/packageinstaller/role/model/
DRoleBehavior.java19 import android.content.Context;
42 @NonNull Context context) { in isAvailableAsUser()
50 default List<String> getDefaultHolders(@NonNull Role role, @NonNull Context context) { in getDefaultHolders()
58 default String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
66 @NonNull Context context) { in isVisibleAsUser()
75 @NonNull Context context) { in getManageIntentAsUser()
84 @NonNull Context context) {} in preparePreferenceAsUser()
92 @NonNull UserHandle user, @NonNull Context context) {} in prepareApplicationPreferenceAsUser()
99 @NonNull Context context) { in getConfirmationMessage()
108 @NonNull Context context) { in getQualifyingPackagesAsUser()
[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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java37 import android.content.Context;
95 public class ComponentContextFixture implements TestFixture<Context> {
121 public Context getApplicationContext() { in getApplicationContext()
175 case Context.AUDIO_SERVICE: in getSystemService()
177 case Context.TELEPHONY_SERVICE: in getSystemService()
179 case Context.APP_OPS_SERVICE: in getSystemService()
181 case Context.NOTIFICATION_SERVICE: in getSystemService()
183 case Context.STATUS_BAR_SERVICE: in getSystemService()
185 case Context.USER_SERVICE: in getSystemService()
187 case Context.TELEPHONY_SUBSCRIPTION_SERVICE: in getSystemService()
[all …]
/packages/apps/Settings/src/com/android/settings/overlay/
DFeatureFactory.java19 import android.content.Context;
55 protected static Context sAppContext;
62 public static FeatureFactory getFactory(Context context) { in getFactory()
91 public static Context getAppContext() { in getAppContext()
97 public abstract SuggestionFeatureProvider getSuggestionFeatureProvider(Context context); in getSuggestionFeatureProvider()
99 public abstract SupportFeatureProvider getSupportFeatureProvider(Context context); in getSupportFeatureProvider()
103 public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider(Context context); in getPowerUsageFeatureProvider()
105 public abstract DashboardFeatureProvider getDashboardFeatureProvider(Context context); in getDashboardFeatureProvider()
109 public abstract ApplicationFeatureProvider getApplicationFeatureProvider(Context context); in getApplicationFeatureProvider()
114 Context context); in getEnterprisePrivacyFeatureProvider()
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorUtils.java20 import android.content.Context;
47 public static void populateDatabase(@NonNull Context context) { in populateDatabase()
56 public static void populateVoicemail(@NonNull Context context) { in populateVoicemail()
65 public static void populateVoicemailFast(@NonNull Context context) { in populateVoicemailFast()
74 public static void fastPopulateDatabase(@NonNull Context context) { in fastPopulateDatabase()
83 public static void cleanDatabase(@NonNull Context context) { in cleanDatabase()
92 public static void clearPreferredSim(Context context) { in clearPreferredSim()
101 public static void syncVoicemail(@NonNull Context context) { in syncVoicemail()
106 public static void sharePersistentLog(@NonNull Context context) { in sharePersistentLog()
123 public static void addVoicemailNotifications(@NonNull Context context, int notificationNum) { in addVoicemailNotifications()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/overlay/
DFeatureFactory.java19 import android.content.Context;
55 protected static Context sAppContext;
62 public static FeatureFactory getFactory(Context context) { in getFactory()
91 public static Context getAppContext() { in getAppContext()
97 public abstract SuggestionFeatureProvider getSuggestionFeatureProvider(Context context); in getSuggestionFeatureProvider()
99 public abstract SupportFeatureProvider getSupportFeatureProvider(Context context); in getSupportFeatureProvider()
103 public abstract PowerUsageFeatureProvider getPowerUsageFeatureProvider(Context context); in getPowerUsageFeatureProvider()
105 public abstract DashboardFeatureProvider getDashboardFeatureProvider(Context context); in getDashboardFeatureProvider()
109 public abstract ApplicationFeatureProvider getApplicationFeatureProvider(Context context); in getApplicationFeatureProvider()
114 Context context); in getEnterprisePrivacyFeatureProvider()
[all …]

12345678910>>...226