Home
last modified time | relevance | path

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

12345678910>>...166

/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/Settings/tests/robotests/src/com/android/settings/search2/
DSearchFragmentTest.java20 import android.content.Context;
62 private Context mContext;
85 .getDatabaseSearchLoader(any(Context.class), anyString())) in screenRotate_shouldPersistQuery()
88 .getInstalledAppSearchLoader(any(Context.class), anyString())) in screenRotate_shouldPersistQuery()
90 when(mFeatureFactory.searchFeatureProvider.getSavedQueryLoader(any(Context.class))) in screenRotate_shouldPersistQuery()
114 when(mFeatureFactory.searchFeatureProvider.getSavedQueryLoader(any(Context.class))) in screenRotateEmptyString_ShouldNotCrash()
123 when(mFeatureFactory.searchFeatureProvider.isIndexingComplete(any(Context.class))) in screenRotateEmptyString_ShouldNotCrash()
134 .getDatabaseSearchLoader(any(Context.class), anyString()); in screenRotateEmptyString_ShouldNotCrash()
136 .getInstalledAppSearchLoader(any(Context.class), anyString()); in screenRotateEmptyString_ShouldNotCrash()
142 .getDatabaseSearchLoader(any(Context.class), anyString())) in queryTextChange_shouldTriggerLoader()
[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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DDefaultDialerCacheTest.java20 import android.content.Context;
82 when(mMockDefaultDialerManager.getDefaultDialerApplication(any(Context.class), eq(USER0))) in setUp()
84 when(mMockDefaultDialerManager.getDefaultDialerApplication(any(Context.class), eq(USER1))) in setUp()
86 when(mMockDefaultDialerManager.getDefaultDialerApplication(any(Context.class), eq(USER2))) in setUp()
102 .getDefaultDialerApplication(any(Context.class), eq(USER0)); in testThreeUsers()
104 .getDefaultDialerApplication(any(Context.class), eq(USER1)); in testThreeUsers()
106 .getDefaultDialerApplication(any(Context.class), eq(USER2)); in testThreeUsers()
118 when(mMockDefaultDialerManager.getDefaultDialerApplication(any(Context.class), eq(USER0))) in testDialer1PackageChanged()
122 .getDefaultDialerApplication(any(Context.class), eq(USER0)); in testDialer1PackageChanged()
124 .getDefaultDialerApplication(any(Context.class), eq(USER1)); in testDialer1PackageChanged()
[all …]
DComponentContextFixture.java35 import android.content.Context;
91 public class ComponentContextFixture implements TestFixture<Context> {
110 public Context getApplicationContext() { in getApplicationContext()
164 case Context.AUDIO_SERVICE: in getSystemService()
166 case Context.TELEPHONY_SERVICE: in getSystemService()
168 case Context.APP_OPS_SERVICE: in getSystemService()
170 case Context.NOTIFICATION_SERVICE: in getSystemService()
172 case Context.STATUS_BAR_SERVICE: in getSystemService()
174 case Context.USER_SERVICE: in getSystemService()
176 case Context.TELEPHONY_SUBSCRIPTION_SERVICE: in getSystemService()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSettingsAppWidgetProvider.java25 import android.content.Context;
135 public final void toggleState(Context context) { in toggleState()
199 public final void setImageViewResources(Context context, RemoteViews views) { in setImageViewResources()
246 private final String getContentDescription(Context context, int stateResId) { in getContentDescription()
255 public abstract void onActualStateChange(Context context, Intent intent); in onActualStateChange()
263 protected final void setCurrentState(Context context, int newState) { in setCurrentState()
314 public final int getTriState(Context context) { in getTriState()
342 public abstract int getActualState(Context context); in getActualState()
348 protected abstract void requestStateChange(Context context, boolean desiredState); in requestStateChange()
368 public int getActualState(Context context) { in getActualState()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DPermissionsUtil.java21 import android.content.Context;
35 public static boolean hasPhonePermissions(Context context) { in hasPhonePermissions()
39 public static boolean hasContactsReadPermissions(Context context) { in hasContactsReadPermissions()
43 public static boolean hasLocationPermissions(Context context) { in hasLocationPermissions()
47 public static boolean hasCameraPermissions(Context context) { in hasCameraPermissions()
51 public static boolean hasMicrophonePermissions(Context context) { in hasMicrophonePermissions()
55 public static boolean hasCallLogReadPermissions(Context context) { in hasCallLogReadPermissions()
59 public static boolean hasCallLogWritePermissions(Context context) { in hasCallLogWritePermissions()
63 public static boolean hasCequintPermissions(Context context) { in hasCequintPermissions()
67 public static boolean hasReadVoicemailPermissions(Context context) { in hasReadVoicemailPermissions()
[all …]
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java20 import android.content.Context;
48 public static void showInCallScreen(Context context, boolean showDialpad) { in showInCallScreen()
59 public static void silenceRinger(Context context) { in silenceRinger()
70 public static void cancelMissedCallsNotification(Context context) { in cancelMissedCallsNotification()
80 public static Uri getAdnUriForPhoneAccount(Context context, PhoneAccountHandle handle) { in getAdnUriForPhoneAccount()
92 Context context, String dialString, @Nullable PhoneAccountHandle handle) { in handleMmi()
109 Context context, String uriScheme) { in getDefaultOutgoingPhoneAccount()
116 public static PhoneAccount getPhoneAccount(Context context, PhoneAccountHandle handle) { in getPhoneAccount()
120 public static List<PhoneAccountHandle> getCallCapablePhoneAccounts(Context context) { in getCallCapablePhoneAccounts()
127 public static boolean isInCall(Context context) { in isInCall()
[all …]
/packages/apps/Settings/src/com/android/settings/
DUtils.java37 import android.content.Context;
166 public static boolean updatePreferenceToSpecificActivityOrRemove(Context context, in updatePreferenceToSpecificActivityOrRemove()
211 public static UserManager getUserManager(Context context) { in getUserManager()
229 public static boolean isVoiceCapable(Context context) { in isVoiceCapable()
231 (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); in isVoiceCapable()
235 public static boolean isWifiOnly(Context context) { in isWifiOnly()
237 Context.CONNECTIVITY_SERVICE); in isWifiOnly()
246 public static String getWifiIpAddresses(Context context) { in getWifiIpAddresses()
251 context.getSystemService(Context.CONNECTIVITY_SERVICE); in getWifiIpAddresses()
348 public static void copyMeProfilePhoto(Context context, UserInfo user) { in copyMeProfilePhoto()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java19 import android.content.Context;
104 public static int getPipLayout(Context context) { in getPipLayout()
116 public static void setPipLayout(Context context, @PipLayout int pipLayout) { in setPipLayout()
130 public static int getPipSize(Context context) { in getPipSize()
140 public static void setPipSize(Context context, @PipSize int pipSize) { in setPipSize()
146 public static String getMultiAudioId(Context context) { in getMultiAudioId()
151 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId()
156 public static String getMultiAudioLanguage(Context context) { in getMultiAudioLanguage()
161 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage()
166 public static int getMultiAudioChannelCount(Context context) { in getMultiAudioChannelCount()
[all …]
DUtils.java23 import android.content.Context;
163 public static String getInputIdForChannel(Context context, long channelId) { in getInputIdForChannel()
178 public static void setLastWatchedChannel(Context context, Channel channel) { in setLastWatchedChannel()
202 public static void setRecordingFailedReason(Context context, int reason) { in setRecordingFailedReason()
212 public static void clearRecordingFailedReason(Context context, int reason) { in clearRecordingFailedReason()
219 public static long getLastWatchedChannelId(Context context) { in getLastWatchedChannelId()
224 public static long getLastWatchedChannelIdForInput(Context context, String inputId) { in getLastWatchedChannelIdForInput()
229 public static String getLastWatchedChannelUri(Context context) { in getLastWatchedChannelUri()
237 public static String getLastWatchedTunerInputId(Context context) { in getLastWatchedTunerInputId()
242 private static long getRecordingFailedReasons(Context context) { in getRecordingFailedReasons()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java25 import android.content.Context;
80 public void updateNotification(Context context) { in updateNotification()
90 public void cancelNotifications(Context context) { in cancelNotifications()
99 public void registerPhoneAccount(Context context) { in registerPhoneAccount()
101 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in registerPhoneAccount()
170 public void showAllPhoneAccounts(Context context) { in showAllPhoneAccounts()
172 (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in showAllPhoneAccounts()
181 private NotificationManager getNotificationManager(Context context) { in getNotificationManager()
182 return (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); in getNotificationManager()
188 private Notification getPhoneAccountNotification(Context context) { in getPhoneAccountNotification()
[all …]
/packages/apps/TV/src/com/android/tv/tuner/
DTunerPreferences.java21 import android.content.Context;
60 public static void initialize(final Context context) { in initialize()
90 public static void release(Context context) { in release()
102 public static synchronized void loadPreferences(Context context) { in loadPreferences()
111 private static boolean useContentProvider(Context context) { in useContentProvider()
117 public static int getChannelDataVersion(Context context) { in getChannelDataVersion()
130 public static void setChannelDataVersion(Context context, int version) { in setChannelDataVersion()
141 public static int getScannedChannelCount(Context context) { in getScannedChannelCount()
152 public static void setScannedChannelCount(Context context, int channelCount) { in setScannedChannelCount()
163 public static boolean isScanDone(Context context) { in isScanDone()
[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/dialer/blocking/
DFilteredNumberCompat.java23 import android.content.Context;
61 public static String getIdColumnName(Context context) { in getIdColumnName()
70 public static String getTypeColumnName(Context context) { in getTypeColumnName()
79 public static String getSourceColumnName(Context context) { in getSourceColumnName()
84 public static String getOriginalNumberColumnName(Context context) { in getOriginalNumberColumnName()
95 public static String getCountryIsoColumnName(Context context) { in getCountryIsoColumnName()
100 public static String getE164NumberColumnName(Context context) { in getE164NumberColumnName()
118 public static boolean useNewFiltering(Context context) { in useNewFiltering()
126 public static boolean hasMigratedToNewBlocking(Context context) { in hasMigratedToNewBlocking()
137 public static void setHasMigratedToNewBlocking(Context context, boolean hasMigrated) { in setHasMigratedToNewBlocking()
[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/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java24 import android.content.Context;
53 import static android.content.Context.ALARM_SERVICE;
167 private static void updateNextAlarm(Context context) { in updateNextAlarm()
183 public static AlarmInstance getNextFiringAlarm(Context context) { in getNextFiringAlarm()
202 private static void updateNextAlarmInSystemSettings(Context context, AlarmInstance nextAlarm) { in updateNextAlarmInSystemSettings()
227 private static void updateNextAlarmInAlarmManager(Context context, AlarmInstance nextAlarm) { in updateNextAlarmInAlarmManager()
262 private static void updateParentAlarm(Context context, AlarmInstance instance) { in updateParentAlarm()
305 public static Intent createStateChangeIntent(Context context, String tag, in createStateChangeIntent()
331 private static void scheduleInstanceStateChange(Context ctx, Calendar time, in scheduleInstanceStateChange()
342 private static void cancelScheduledInstanceStateChange(Context ctx, AlarmInstance instance) { in cancelScheduledInstanceStateChange()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProvisioningAnalyticsTracker.java37 import android.content.Context;
94 public void logProvisioningStarted(Context context, ProvisioningParams params) { in logProvisioningStarted()
106 public void logPreProvisioningStarted(Context context, Intent intent) { in logPreProvisioningStarted()
117 public void logCopyAccountStatus(Context context, @CopyAccountStatus int status) { in logCopyAccountStatus()
127 public void logProvisioningCancelled(Context context, @CancelState int cancelState) { in logProvisioningCancelled()
138 public void logProvisioningError(Context context, AbstractProvisioningTask task, in logProvisioningError()
150 public void logProvisioningNotAllowed(Context context, int provisioningErrorCode) { in logProvisioningNotAllowed()
159 public void logProvisioningSessionStarted(Context context) { in logProvisioningSessionStarted()
168 public void logProvisioningSessionCompleted(Context context) { in logProvisioningSessionCompleted()
178 public void logNumberOfTermsDisplayed(Context context, int count) { in logNumberOfTermsDisplayed()
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DNotificationController.java24 import android.content.Context;
100 public void onReceive(Context context, Intent intent) { in onReceive()
146 private void maybeShowNotification(Context context) { in maybeShowNotification()
152 private boolean shouldShowNotification(Context context) { in shouldShowNotification()
155 Context.MODE_PRIVATE); in shouldShowNotification()
167 private void showNotification(Context context) { in showNotification()
224 ((NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE)); in showNotification()
228 private void makeNotificationChannel(Context context) { in makeNotificationChannel()
238 private void cancelNotification(Context context, Intent intent) { in cancelNotification()
250 .getSystemService(Context.NOTIFICATION_SERVICE); in cancelNotification()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DGoogleSource.java29 import android.content.Context;
52 protected void inflate(Context context, int inflateLevel) { in inflate()
73 protected DataKind inflateStructuredName(Context context, int inflateLevel) { in inflateStructuredName()
78 protected DataKind inflateNickname(Context context, int inflateLevel) { in inflateNickname()
83 protected DataKind inflatePhone(Context context, int inflateLevel) { in inflatePhone()
107 protected DataKind inflateEmail(Context context, int inflateLevel) { in inflateEmail()
127 protected DataKind inflateStructuredPostal(Context context, int inflateLevel) { in inflateStructuredPostal()
132 protected DataKind inflateIm(Context context, int inflateLevel) { in inflateIm()
137 protected DataKind inflateOrganization(Context context, int inflateLevel) { in inflateOrganization()
142 protected DataKind inflatePhoto(Context context, int inflateLevel) { in inflatePhoto()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java4 import android.content.Context;
71 private final Context mContext;
73 public AsyncRingtonePlayer(Context context) { in AsyncRingtonePlayer()
163 private static boolean isInTelephoneCall(Context context) {
165 context.getSystemService(Context.TELEPHONY_SERVICE);
172 private static Uri getInCallRingtoneUri(Context context) {
179 private static Uri getFallbackRingtoneUri(Context context) {
245 boolean play(Context context, Uri ringtoneUri, long crescendoDuration);
250 void stop(Context context);
255 boolean adjustVolume(Context context);
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java26 import android.content.Context;
146 private static void writeMetadataDownloadId(final Context context, final String uri, in writeMetadataDownloadId()
158 public static void setDownloadOverMeteredSetting(final Context context, in setDownloadOverMeteredSetting()
172 public static int getDownloadOverMeteredSetting(final Context context) { in getDownloadOverMeteredSetting()
184 public static boolean tryUpdate(final Context context) { in tryUpdate()
224 final Context context, final String metadataUri) { in updateClientsWithMetadataUri()
274 private static boolean maybeCancelUpdateAndReturnIfStillRunning(final Context context, in maybeCancelUpdateAndReturnIfStillRunning()
305 public static void cancelUpdate(final Context context, final String clientId) { in cancelUpdate()
383 final Context context, final CompletedDownloadInfo downloadInfo) { in getDownloadRecordsForCompletedDownloadInfo()
417 /* package */ static void downloadFinished(final Context context, final Intent intent) { in downloadFinished()
[all …]
/packages/apps/Music/src/com/android/music/
DMusicUtils.java24 import android.content.Context;
94 Context context, int numalbums, int numsongs, boolean isUnknown) { in makeAlbumsLabel()
125 Context context, int numalbums, int numsongs, boolean isUnknown) { in makeAlbumsSongsLabel()
155 private static HashMap<Context, ServiceBinder> sConnectionMap =
156 new HashMap<Context, ServiceBinder>();
331 public static long[] getSongListForArtist(Context context, long id) { in getSongListForArtist()
346 public static long[] getSongListForAlbum(Context context, long id) { in getSongListForAlbum()
361 public static long[] getSongListForPlaylist(Context context, long plid) { in getSongListForPlaylist()
375 public static void playPlaylist(Context context, long plid) { in playPlaylist()
382 public static long[] getAllSongs(Context context) { in getAllSongs()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java27 import android.content.Context;
245 public static String getWidgetUpdateAction(Context context) { in getWidgetUpdateAction()
252 public static String getWidgetScheduledUpdateAction(Context context) { in getWidgetScheduledUpdateAction()
259 public static String getSearchAuthority(Context context) { in getSearchAuthority()
272 public static void setTimeZone(Context context, String timeZone) { in setTimeZone()
291 public static String getTimeZone(Context context, Runnable callback) { in getTimeZone()
306 Context context, long startMillis, long endMillis, int flags) { in formatDateRange()
310 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate()
330 public static String[] getSharedPreference(Context context, String key, String[] defaultValue) { in getSharedPreference()
340 public static String getSharedPreference(Context context, String key, String defaultValue) { in getSharedPreference()
[all …]

12345678910>>...166