Searched refs:context (Results 1 - 25 of 4971) sorted by relevance

1234567891011>>

/packages/apps/Contacts/src/com/android/contacts/model/account/
H A DDeviceLocalAccountType.java24 public DeviceLocalAccountType(Context context, boolean groupsEditable) { argument
25 super(context);
29 public DeviceLocalAccountType(Context context) { argument
30 this(context, false);
39 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { argument
43 new AccountDisplayInfo(account, getDisplayLabel(context), getDisplayLabel(context),
44 getDisplayIcon(context), true), this);
H A DFallbackAccountType.java33 private FallbackAccountType(Context context, String resPackageName) { argument
44 addDataKindStructuredName(context);
45 addDataKindName(context);
46 addDataKindPhoneticName(context);
47 addDataKindNickname(context);
48 addDataKindPhone(context);
49 addDataKindEmail(context);
50 addDataKindStructuredPostal(context);
51 addDataKindIm(context);
52 addDataKindOrganization(context);
66 getDisplayIcon(Context context) argument
73 FallbackAccountType(Context context) argument
82 createWithPackageNameForTest(Context context, String resPackageName) argument
105 wrapAccount(Context context, AccountWithDataSet account) argument
[all...]
/packages/apps/Settings/src/com/android/settings/fingerprint/
H A DFingerprintEnrollSuggestionActivity.java25 public static boolean isSuggestionComplete(Context context) { argument
26 if (!Utils.hasFingerprintHardware(context)
27 || !FingerprintSuggestionActivity.isFingerprintEnabled(context)
28 || !Utils.hasFingerprintHardware(context)) {
31 return Utils.getFingerprintManagerOrNull(context).hasEnrolledFingerprints();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DTransactionContextTest.java33 TransactionContext context = new TransactionContext(false);
34 context.markRawContactDirtyAndChanged(1L, false);
35 context.rawContactUpdated(1L);
36 context.rawContactInserted(1L, 1L);
37 context.syncStateUpdated(1L, new Object());
39 context.clearExceptSearchIndexUpdates();
41 Set<Long> newDirty = context.getDirtyRawContactIds();
42 Set<Long> newChanged = context.getChangedRawContactIds();
43 Set<Long> newInserted = context.getInsertedRawContactIds();
44 Set<Long> newUpdated = context
[all...]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
H A DFallbackAccountType.java28 private FallbackAccountType(Context context, String resPackageName) { argument
39 addDataKindStructuredName(context);
40 addDataKindDisplayName(context);
41 addDataKindPhoneticName(context);
42 addDataKindNickname(context);
43 addDataKindPhone(context);
44 addDataKindEmail(context);
45 addDataKindStructuredPostal(context);
46 addDataKindIm(context);
47 addDataKindOrganization(context);
60 FallbackAccountType(Context context) argument
69 createWithPackageNameForTest(Context context, String resPackageName) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/main/
H A DMain.java24 boolean isNewUiEnabled(Context context); argument
27 void createNewUiLauncherShortcut(Context context); argument
29 void disableComponentForTesting(Context context); argument
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/experiment/
H A DExperimentFeatureProvider.java23 public long getMaxSuggestionDisplayCount(Context context) { argument
27 public boolean isPredictiveRingerEnabled(Context context) { return false; } argument
29 public boolean isPredictiveBluetoothDrivingEnabled(Context context) { return false; } argument
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DGridItemThumbnail.java27 public GridItemThumbnail(Context context) { argument
28 super(context);
31 public GridItemThumbnail(Context context, AttributeSet attrs) { argument
32 super(context, attrs);
35 public GridItemThumbnail(Context context, AttributeSet attrs, int defStyle) { argument
36 super(context, attrs, defStyle);
/packages/apps/TV/src/com/android/tv/menu/
H A DSimpleCardView.java25 public SimpleCardView(Context context) { argument
26 this(context, null, 0);
29 public SimpleCardView(Context context, AttributeSet attrs) { argument
30 this(context, attrs, 0);
33 public SimpleCardView(Context context, AttributeSet attrs, int defStyle) { argument
34 super(context, attrs, defStyle);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DNonOverlappingRelativeLayout.java22 public NonOverlappingRelativeLayout(Context context) { argument
23 this(context, null);
26 public NonOverlappingRelativeLayout(Context context, AttributeSet attrs) { argument
27 super(context, attrs, 0);
30 public NonOverlappingRelativeLayout(Context context, AttributeSet attrs, int defStyle) { argument
31 super(context, attrs, defStyle);
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DAnimatedListView.java25 public AnimatedListView(Context context) { argument
26 this(context, null);
29 public AnimatedListView(Context context, AttributeSet attrs) { argument
30 this(context, attrs, 0);
33 public AnimatedListView(Context context, AttributeSet attrs, int defStyle) { argument
34 super(context, attrs, defStyle);
/packages/apps/Car/libs/car-list/src/com/android/car/list/
H A DInterceptTouchRelativeLayout.java30 public InterceptTouchRelativeLayout(Context context) { argument
31 super(context);
34 public InterceptTouchRelativeLayout(Context context, AttributeSet attrs) { argument
35 super(context, attrs);
38 public InterceptTouchRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) { argument
39 super(context, attrs, defStyleAttr);
43 Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
44 super(context, attrs, defStyleAttr, defStyleRes);
42 InterceptTouchRelativeLayout( Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) argument
/packages/apps/Contacts/src/com/android/contacts/util/
H A DSharedPreferenceUtil.java64 public static boolean getHamburgerPromoDisplayedBefore(Context context) { argument
65 return getSharedPreferences(context)
69 public static void setHamburgerPromoDisplayedBefore(Context context) { argument
70 getSharedPreferences(context).edit()
73 new BackupManager(context).dataChanged();
76 public static boolean getHamburgerMenuClickedBefore(Context context) { argument
77 return getSharedPreferences(context)
81 public static void setHamburgerMenuClickedBefore(Context context) { argument
82 getSharedPreferences(context).edit()
85 new BackupManager(context)
88 getHamburgerPromoTriggerActionHappenedBefore(Context context) argument
93 setHamburgerPromoTriggerActionHappenedBefore(Context context) argument
109 getShouldShowHamburgerPromo(Context context) argument
115 getSharedPreferences(Context context) argument
120 getSharedPreferencesFilename(Context context) argument
124 getNumOfDismissesForAutoSyncOff(Context context) argument
128 resetNumOfDismissesForAutoSyncOff(Context context) argument
137 incNumOfDismissesForAutoSyncOff(Context context) argument
148 getNumOfDismissesforAccountSyncOff(Context context, String accountName) argument
152 resetNumOfDismissesForAccountSyncOff(Context context, String accountName) argument
161 incNumOfDismissesForAccountSyncOff(Context context, String accountName) argument
168 persistSimStates(Context context, Collection<SimCard> sims) argument
193 restoreSimStates(Context context, List<SimCard> sims) argument
204 getImportedSims(Context context) argument
209 getDismissedSims(Context context) argument
214 getRestoredDevices(Context context) argument
219 getDismissedDevices(Context context) argument
224 addRestoredDevice(Context context, String deviceId) argument
232 addDismissedDevice(Context context, String deviceId) argument
240 removeDismissedDevice(Context context, String deviceId) argument
248 isWelcomeCardDismissed(Context context) argument
253 setWelcomeCardDismissed(Context context, boolean isDismissed) argument
259 clear(Context context) argument
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DProgressCategoryBase.java24 public ProgressCategoryBase(Context context) { argument
25 super(context);
28 public ProgressCategoryBase(Context context, AttributeSet attrs) { argument
29 super(context, attrs);
32 public ProgressCategoryBase(Context context, AttributeSet attrs, int defStyleAttr) { argument
33 super(context, attrs, defStyleAttr);
36 public ProgressCategoryBase(Context context, AttributeSet attrs, int defStyleAttr, argument
38 super(context, attrs, defStyleAttr, defStyleRes);
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
H A DVvm3VoicemailMessageCreator.java77 final Context context,
81 new VoicemailTosMessageCreator(context, status, statusReader).maybeCreateTosMessage();
88 context.getString(R.string.vvm3_error_vms_dns_failure_title),
89 getCustomerSupportString(context, R.string.vvm3_error_vms_dns_failure_message),
90 VoicemailErrorMessage.createRetryAction(context, status),
91 createCallCustomerSupportAction(context));
96 context.getString(R.string.vvm3_error_vmg_dns_failure_title),
97 getCustomerSupportString(context, R.string.vvm3_error_vmg_dns_failure_message),
98 VoicemailErrorMessage.createRetryAction(context, status),
99 createCallCustomerSupportAction(context));
76 create( final Context context, final VoicemailStatus status, final VoicemailStatusReader statusReader) argument
282 getCustomerSupportString(Context context, int id) argument
291 createCallCustomerSupportAction(final Context context) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/
H A DMainComponent.java36 public static boolean isNewUiEnabled(Context context) { argument
37 return ConfigProviderBindings.get(context).getBoolean("is_nui_shortcut_enabled", false);
40 public static void createNewUiLauncherShortcut(Context context) { argument
41 enableComponent(context);
43 createLauncherShortcutO(context);
45 createLauncherShortcutPreO(context);
49 public static boolean isNuiComponentEnabled(Context context) { argument
50 if (!isNewUiEnabled(context)) {
53 return context
55 .getComponentEnabledSetting(new ComponentName(context, getComponentNam
64 enableComponent(Context context) argument
74 createLauncherShortcutO(Context context) argument
84 createLauncherShortcutPreO(Context context) argument
98 getIntent(Context context) argument
106 getShowCallLogIntent(Context context) argument
114 getShowVoicemailIntent(Context context) argument
[all...]
/packages/apps/Settings/src/com/android/settings/enterprise/
H A DEnterprisePrivacySettings.java54 protected List<AbstractPreferenceController> createPreferenceControllers(Context context) { argument
55 return buildPreferenceControllers(context, true /* async */);
58 private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, argument
61 controllers.add(new NetworkLogsPreferenceController(context));
62 controllers.add(new BugReportsPreferenceController(context));
63 controllers.add(new SecurityLogsPreferenceController(context));
67 context, async));
69 new AdminGrantedLocationPermissionsPreferenceController(context, async));
71 new AdminGrantedMicrophonePermissionPreferenceController(context, async));
73 context, asyn
94 isPageEnabled(Context context) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/common/
H A DDpUtil.java24 public static float pxToDp(Context context, float px) { argument
25 return px / context.getResources().getDisplayMetrics().density;
28 public static float dpToPx(Context context, float dp) { argument
29 return dp * context.getResources().getDisplayMetrics().density;
/packages/apps/Dialer/java/com/android/incallui/util/
H A DAccessibilityUtil.java24 public static boolean isAccessibilityEnabled(Context context) { argument
26 context.getSystemService(AccessibilityManager.class);
30 public static boolean isTouchExplorationEnabled(Context context) { argument
32 context.getSystemService(AccessibilityManager.class);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationPager.java26 public ConversationPager(Context context) { argument
27 this(context, null);
30 public ConversationPager(Context context, AttributeSet attrs) { argument
31 super(context, attrs);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DContactInteraction.java29 String getViewHeader(Context context); argument
30 String getViewBody(Context context); argument
31 String getViewFooter(Context context); argument
32 Drawable getIcon(Context context); argument
33 Drawable getBodyIcon(Context context); argument
34 Drawable getFooterIcon(Context context); argument
35 Spannable getContentDescription(Context context); argument
/packages/apps/DeskClock/src/com/android/deskclock/
H A DRingtonePreviewKlaxon.java29 public static void stop(Context context) { argument
31 getAsyncRingtonePlayer(context).stop();
34 public static void start(Context context, Uri uri) { argument
35 stop(context);
37 getAsyncRingtonePlayer(context).play(uri, 0);
40 private static synchronized AsyncRingtonePlayer getAsyncRingtonePlayer(Context context) { argument
42 sAsyncRingtonePlayer = new AsyncRingtonePlayer(context.getApplicationContext());
/packages/apps/Launcher2/src/com/android/launcher2/
H A DHolographicImageView.java28 public HolographicImageView(Context context) { argument
29 this(context, null);
32 public HolographicImageView(Context context, AttributeSet attrs) { argument
33 this(context, attrs, 0);
36 public HolographicImageView(Context context, AttributeSet attrs, int defStyle) { argument
37 super(context, attrs, defStyle);
39 mHolographicHelper = new HolographicViewHelper(context);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DMainProcessInitializer.java29 public static void initialize(Context context) { argument
31 MainProcessInitializer.class, context, R.string.main_process_initializer_class)
32 .init(context);
35 protected void init(Context context) { argument
36 FileLog.setDir(context.getApplicationContext().getFilesDir());
37 IconShapeOverride.apply(context);
38 SessionCommitReceiver.applyDefaultUserPrefs(context);
/packages/apps/Settings/src/com/android/settings/slices/
H A DSlicesFeatureProviderImpl.java17 public SlicesIndexer getSliceIndexer(Context context) { argument
19 mSlicesIndexer = new SlicesIndexer(context);
25 public SliceDataConverter getSliceDataConverter(Context context) { argument
27 mSliceDataConverter = new SliceDataConverter(context.getApplicationContext());
33 public void indexSliceDataAsync(Context context) { argument
34 SlicesIndexer indexer = getSliceIndexer(context);
39 public void indexSliceData(Context context) { argument
40 SlicesIndexer indexer = getSliceIndexer(context);
45 public WifiCallingSliceHelper getNewWifiCallingSliceHelper(Context context) { argument
46 return new WifiCallingSliceHelper(context);
[all...]

Completed in 1002 milliseconds

1234567891011>>