Home
last modified time | relevance | path

Searched refs:application (Results 1 – 25 of 1324) sorted by relevance

12345678910>>...53

/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DUtilsTest.java97 RuntimeEnvironment.application, in testSameDateAndTime()
106 RuntimeEnvironment.application, in testSameDateAndTime()
119 RuntimeEnvironment.application, in testDurationWithinToday()
128 RuntimeEnvironment.application, in testDurationWithinToday()
141 RuntimeEnvironment.application, in testDurationFromYesterdayToToday()
150 RuntimeEnvironment.application, in testDurationFromYesterdayToToday()
159 RuntimeEnvironment.application, in testDurationFromYesterdayToToday()
168 RuntimeEnvironment.application, in testDurationFromYesterdayToToday()
181 RuntimeEnvironment.application, in testDurationFromTodayToTomorrow()
190 RuntimeEnvironment.application, in testDurationFromTodayToTomorrow()
[all …]
DTvTrackInfoUtilsTest.java202 TvTrackInfoUtils.needToShowSampleRate(RuntimeEnvironment.application, trackList)); in needToShowSampleRate_false()
210 TvTrackInfoUtils.needToShowSampleRate(RuntimeEnvironment.application, trackList)); in needToShowSampleRate_sameLanguageAndChannelCount()
218 TvTrackInfoUtils.needToShowSampleRate(RuntimeEnvironment.application, trackList)); in needToShowSampleRate_sameLanguageNoChannelCount()
231 RuntimeEnvironment.application, createAudioTrackInfo("kor"), false)); in testAudioTrackLanguage()
235 RuntimeEnvironment.application, createAudioTrackInfo("eng"), false)); in testAudioTrackLanguage()
239 RuntimeEnvironment.application, createAudioTrackInfo(null), false)); in testAudioTrackLanguage()
243 RuntimeEnvironment.application, createAudioTrackInfo(""), false)); in testAudioTrackLanguage()
247 RuntimeEnvironment.application, createAudioTrackInfo("abc"), false)); in testAudioTrackLanguage()
255 RuntimeEnvironment.application, createAudioTrackInfo("eng", -1), false)); in testAudioTrackCount()
259 RuntimeEnvironment.application, createAudioTrackInfo("eng", 0), false)); in testAudioTrackCount()
[all …]
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/
DMediaSourceViewModel.java69 MediaBrowserConnector createMediaBrowserConnector(@NonNull Application application, in createMediaBrowserConnector() argument
82 public static MediaSourceViewModel get(@NonNull Application application) { in get() argument
84 sInstance = new MediaSourceViewModel(application); in get()
94 private MediaSourceViewModel(@NonNull Application application) { in MediaSourceViewModel() argument
95 this(application, new InputFactory() { in MediaSourceViewModel()
98 @NonNull Application application, in MediaSourceViewModel()
100 return new MediaBrowserConnector(application, connectedBrowserCallback); in MediaSourceViewModel()
106 return token == null ? null : new MediaControllerCompat(application, token); in MediaSourceViewModel()
111 return Car.createCar(application); in MediaSourceViewModel()
121 return componentName == null ? null : MediaSource.create(application, in MediaSourceViewModel()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DSetupFingerprintEnrollFinishTest.java23 import static org.robolectric.RuntimeEnvironment.application;
58 Shadows.shadowOf(application.getPackageManager()) in setUp()
61 mFingerprintManager = (FingerprintManager) application.getSystemService( in setUp()
66 application, FINGERPRINT_SUGGESTION_ACTIVITY); in setUp()
72 application, in clickAddAnother_shouldLaunchEnrolling()
87 application, in clickAddAnother_shouldPropagateResults()
112 assertThat(application.getPackageManager().getComponentEnabledSetting( in onActivityResult_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
122 assertThat(application.getPackageManager().getComponentEnabledSetting( in onActivityResult_fingerprintCountIsOne_fingerprintSuggestionActivityEnabled()
132 assertThat(application.getPackageManager().getComponentEnabledSetting( in clickNext_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled()
142 assertThat(application.getPackageManager().getComponentEnabledSetting( in clickNext_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java105 mContext = spy(RuntimeEnvironment.application); in setUp()
106 doReturn(RuntimeEnvironment.application).when(mActivity).getApplicationContext(); in setUp()
129 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_shouldBindAllData()
149 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadata_shouldBindIntent()
163 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
178 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
200 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
201 mActivityInfo.packageName = RuntimeEnvironment.application.getPackageName(); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
228 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_withNullKeyNullPriority_shouldGenerateKeyAndPriority()
239 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noSummary_shouldSetSummaryToPlaceholder()
[all …]
/packages/apps/TV/tests/robotests/src/com/android/tv/data/epg/
DEpgFetcherImplTest.java78 @Config(sdk = ConfigConstants.SDK, application = EpgFetcherImplTest.TestApp.class)
141 mTestApp = (TestApp) RuntimeEnvironment.application; in setup()
142 Shadows.shadowOf(RuntimeEnvironment.application) in setup()
144 mDatabaseHelper = new EpgContentProvider.EpgDatabaseHelper(RuntimeEnvironment.application); in setup()
145 CommonPreferences.initialize(RuntimeEnvironment.application); in setup()
146 PostalCodeUtils.setLastPostalCode(RuntimeEnvironment.application, "90210"); in setup()
147 EpgFetchHelper.setLastLineupId(RuntimeEnvironment.application, "test90210"); in setup()
153 new FakeTvInputManagerHelper(RuntimeEnvironment.application); in setup()
154 mContentResolver = RuntimeEnvironment.application.getContentResolver(); in setup()
157 RuntimeEnvironment.application, in setup()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncPreferenceControllerTest.java23 import static org.robolectric.RuntimeEnvironment.application;
67 new PreferenceControllerTestHelper<>(application, in setUp()
75 mPreference = new Preference(application); in setUp()
100 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_notSameAccountType_shouldNotCount()
118 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_adapterInvisible_shouldNotCount()
134 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_notSyncable_shouldNotCount()
153 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount()
170 .isEqualTo(application.getString(R.string.account_sync_summary_all_on)); in refreshUi_masterAutomaticSyncUsed_shouldCount()
188 .isEqualTo(application.getString(R.string.account_sync_summary_all_on)); in refreshUi_automaticSyncEnabled_shouldCount()
224 .isEqualTo(application.getString(R.string.account_sync_summary_some_on, 3, 4)); in refreshUi_someEnabled_shouldSetSummary()
DAccountDetailsPreferenceControllerTest.java21 import static org.robolectric.RuntimeEnvironment.application;
63 new PreferenceControllerTestHelper<>(application, in setUp()
69 mPreference = new Preference(application); in setUp()
81 mController = new PreferenceControllerTestHelper<>(application, in checkInitialized_accountSetAndUserHandleSet_doesNothing()
91 mController = new PreferenceControllerTestHelper<>(application, in checkInitialized_nullAccount_throwsIllegalStateException()
100 mController = new PreferenceControllerTestHelper<>(application, in checkInitialized_nullUserHandle_throwsIllegalStateException()
135 return Shadow.extract(AccountManager.get(application)); in getShadowAccountManager()
/packages/apps/TV/tests/robotests/src/com/android/tv/data/
DProgramDataManagerTest.java58 @Config(sdk = ConfigConstants.SDK, application = TestSingletonApp.class)
76 RuntimeEnvironment.application, mClock, TimeUnit.DAYS.toMillis(1)); in setUp()
78 new FakeTvInputManagerHelper(RuntimeEnvironment.application); in setUp()
80 ContentResolver contentResolver = RuntimeEnvironment.application.getContentResolver(); in setUp()
83 RuntimeEnvironment.application, in setUp()
89 RuntimeEnvironment.application, in setUp()
91 RuntimeEnvironment.application.getContentResolver(), in setUp()
122 ProgramInfo programAt = stub.build(RuntimeEnvironment.application, index); in testProgramUtils()
163 ProgramInfo programInfoAt = stub.build(RuntimeEnvironment.application, index); in testGetPrograms()
197 ProgramInfo nextProgramInfo = stub.build(RuntimeEnvironment.application, index + 1); in testCurrentProgramListener()
[all …]
DProgramTest.java173 assertThat(program.getEpisodeContentDescription(RuntimeEnvironment.application)).isNull(); in getEpisodeContentDescription_blank()
184 assertThat(program.getEpisodeContentDescription(RuntimeEnvironment.application)) in getEpisodeContentDescription_seasonEpisodeAndTitle()
195 assertThat(program.getEpisodeContentDescription(RuntimeEnvironment.application)) in getEpisodeContentDescription_EpisodeAndTitle()
203 assertThat(program.getEpisodeContentDescription(RuntimeEnvironment.application)) in getEpisodeContentDescription_seasonEpisode()
210 assertThat(program.getEpisodeContentDescription(RuntimeEnvironment.application)) in getEpisodeContentDescription_EpisodeTitle()
217 assertThat(program.getEpisodeDisplayTitle(RuntimeEnvironment.application)).isNull(); in getEpisodeDisplayTitle_blank()
228 assertThat(program.getEpisodeDisplayTitle(RuntimeEnvironment.application)) in getEpisodeDisplayTitle_seasonEpisodeAndTitle()
239 assertThat(program.getEpisodeDisplayTitle(RuntimeEnvironment.application)) in getEpisodeDisplayTitle_EpisodeTitle()
247 assertThat(program.getEpisodeDisplayTitle(RuntimeEnvironment.application)) in getEpisodeDisplayTitle_seasonEpisode()
254 assertThat(program.getEpisodeDisplayTitle(RuntimeEnvironment.application)) in getEpisodeDisplayTitle_episode()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteViewModel.java45 public FavoriteViewModel(Application application) { in FavoriteViewModel() argument
46 super(application); in FavoriteViewModel()
47 mFavoriteNumberRepository = FavoriteNumberRepository.getRepository(application); in FavoriteViewModel()
48 mBluetoothFavoriteContacts = new BluetoothFavoriteContactsLiveData(application); in FavoriteViewModel()
55 contactList.add(new Header(application.getString(R.string.phone_favorites))); in FavoriteViewModel()
58 contactList.add(new Header(application.getString(R.string.local_favorites))); in FavoriteViewModel()
68 contactList.add(new Header(application.getString(R.string.phone_favorites))); in FavoriteViewModel()
71 contactList.add(new Header(application.getString(R.string.local_favorites))); in FavoriteViewModel()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalAlbum.java61 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument
64 mApplication = application; in LocalAlbum()
65 mResolver = application.getContentResolver(); in LocalAlbum()
86 mNotifier = new ChangeNotifier(this, mBaseUri, application); in LocalAlbum()
89 public LocalAlbum(Path path, GalleryApp application, int bucketId, in LocalAlbum() argument
91 this(path, application, bucketId, isImage, in LocalAlbum()
93 application.getContentResolver(), bucketId)); in LocalAlbum()
163 GalleryApp application, boolean isImage, ArrayList<Integer> ids) { in getMediaItemById() argument
184 ContentResolver resolver = application.getContentResolver(); in getMediaItemById()
185 DataManager dataManager = application.getDataManager(); in getMediaItemById()
[all …]
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DContextualViewModel.java54 public ContextualViewModel(Application application) { in ContextualViewModel() argument
55 this(application, getCarProjectionManager(application)); in ContextualViewModel()
64 ContextualViewModel(Application application, CarProjectionManager carProjectionManager) { in ContextualViewModel() argument
65 super(application); in ContextualViewModel()
70 new ProjectionContextualInfoLiveData(application, carProjectionManager), in ContextualViewModel()
71 new WeatherContextualInfoLiveData(application) in ContextualViewModel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DValidatedEditTextPreferenceTest.java60 new View(RuntimeEnvironment.application))); in setUp()
61 mPreference = new ValidatedEditTextPreference(RuntimeEnvironment.application); in setUp()
74 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_emptyEditText_shouldNotSetSelection()
87 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_nonemptyEditText_shouldSetSelection()
99 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_hasValidator_shouldBindToEditText()
110 final EditText editText = spy(new EditText(RuntimeEnvironment.application)); in bindDialogView_isPassword_shouldSetInputType()
124 final TextView textView = spy(new TextView(RuntimeEnvironment.application)); in bindViewHolder_isPassword_shouldSetInputType()
137 final TextView textView = spy(new TextView(RuntimeEnvironment.application)); in bindViewHolder_isNotPassword_shouldNotAutoCorrectText()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyConfigJobServiceTest.java31 import static org.robolectric.RuntimeEnvironment.application;
68 mContext = spy(RuntimeEnvironment.application); in setUp()
73 doReturn(application.getSharedPreferences(AnomalyConfigJobService.PREF_DB, in setUp()
76 doReturn(application.getContentResolver()).when(mJobService).getContentResolver(); in setUp()
105 Settings.Global.putInt(application.getContentResolver(), in checkAnomalyConfig_newConfigExist_removeOldConfig()
107 Settings.Global.putString(application.getContentResolver(), Settings.Global.ANOMALY_CONFIG, in checkAnomalyConfig_newConfigExist_removeOldConfig()
118 Settings.Global.putInt(application.getContentResolver(), in checkAnomalyConfig_newConfigExist_uploadNewConfig()
120 Settings.Global.putString(application.getContentResolver(), Settings.Global.ANOMALY_CONFIG, in checkAnomalyConfig_newConfigExist_uploadNewConfig()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DSpecialAppAccessViewModel.java57 public SpecialAppAccessViewModel(@NonNull Role role, @NonNull Application application) { in SpecialAppAccessViewModel() argument
58 super(application); in SpecialAppAccessViewModel()
63 RoleLiveData roleLiveData = new RoleLiveData(role, user, application); in SpecialAppAccessViewModel()
64 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessViewModel()
65 RoleSortFunction sortFunction = new RoleSortFunction(application); in SpecialAppAccessViewModel()
69 RoleLiveData workRoleLiveData = new RoleLiveData(role, workProfile, application); in SpecialAppAccessViewModel()
169 public Factory(@NonNull Role role, @NonNull Application application) { in Factory() argument
171 mApplication = application; in Factory()
DSpecialAppAccessListViewModel.java41 public SpecialAppAccessListViewModel(@NonNull Application application) { in SpecialAppAccessListViewModel() argument
42 super(application); in SpecialAppAccessListViewModel()
45 RoleListLiveData liveData = new RoleListLiveData(false, user, application); in SpecialAppAccessListViewModel()
46 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessListViewModel()
47 RoleListSortFunction sortFunction = new RoleListSortFunction(application); in SpecialAppAccessListViewModel()
51 RoleListLiveData workLiveData = new RoleListLiveData(false, workProfile, application); in SpecialAppAccessListViewModel()
DDefaultAppListViewModel.java48 public DefaultAppListViewModel(@NonNull Application application) { in DefaultAppListViewModel() argument
49 super(application); in DefaultAppListViewModel()
52 RoleListSortFunction sortFunction = new RoleListSortFunction(application); in DefaultAppListViewModel()
53 mLiveData = Transformations.map(new RoleListLiveData(true, mUser, application), in DefaultAppListViewModel()
55 mWorkProfile = UserUtils.getWorkProfile(application); in DefaultAppListViewModel()
57 mWorkProfile, application), sortFunction) : null; in DefaultAppListViewModel()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetupChooseLockPatternTest.java21 import static org.robolectric.RuntimeEnvironment.application;
68 application.getPackageManager().setComponentEnabledSetting( in setUp()
69 new ComponentName(application, SetupRedactionInterstitial.class), in setUp()
75 application, in setUp()
76 new IntentBuilder(application) in setUp()
86 ShadowPackageManager spm = Shadows.shadowOf(application.getPackageManager()); in chooseLockSaved_shouldEnableRedactionInterstitial()
87 ComponentName cname = new ComponentName(application, SetupRedactionInterstitial.class); in chooseLockSaved_shouldEnableRedactionInterstitial()
185 .isEqualTo(application.getString(R.string.skip_label)); in createActivity_enterPattern_clearButtonShouldBeShown()
191 .isEqualTo(application.getString(R.string.lockpattern_retry_button_text)); in createActivity_enterPattern_clearButtonShouldBeShown()
DSetupChooseLockPasswordTest.java21 import static org.robolectric.RuntimeEnvironment.application;
86 application, in createActivity_shouldNotCrash()
87 new IntentBuilder(application).build()); in createActivity_shouldNotCrash()
124 Intent intent = new IntentBuilder(application).build(); in createActivity_clickDifferentOption_extrasShouldBePropagated()
126 intent = SetupChooseLockPassword.modifyIntentForSetup(application, intent); in createActivity_clickDifferentOption_extrasShouldBePropagated()
183 .isEqualTo(application.getString(R.string.lockpassword_clear_label)); in createActivity_inputPasswordInConfirmStage_clearButtonShouldBeShown()
189 application, in createSetupChooseLockPassword()
190 new IntentBuilder(application).build()); in createSetupChooseLockPassword()
DSetNewPasswordActivityTest.java80 mProvisioned = Settings.Global.getInt(RuntimeEnvironment.application.getContentResolver(), in setUp()
86 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in tearDown()
93 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testChooseLockGeneric()
107 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testSetupChooseLockGeneric()
124 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordExtraWithoutPermission()
148 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordExtraWithPermission()
178 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordExtraInvalidValue()
206 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordExtraNoneComplexity()
234 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewPasswordWithoutExtra()
261 Settings.Global.putInt(RuntimeEnvironment.application.getContentResolver(), in testLaunchChooseLock_setNewParentProfilePasswordExtraWithPermission()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceUtilTest.java39 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testCheckPreferenceType_true()
45 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testCheckPreferenceType_superclass_true()
52 Preference preference = new ListPreference(RuntimeEnvironment.application); in testCheckPreferenceType_false()
60 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testRequirePreferenceType_true()
67 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testRequirePreferenceType_superclass_true()
73 Preference preference = new ListPreference(RuntimeEnvironment.application); in testRequirePreferenceType_false()
/packages/apps/Dialer/java/com/android/dialer/strictmode/
DStrictModeUtils.java103 public static void warmupSharedPrefs(Application application) { in warmupSharedPrefs() argument
107 if (UserManagerCompat.isUserUnlocked(application)) { in warmupSharedPrefs()
109 PreferenceManager.getDefaultSharedPreferences(application); in warmupSharedPrefs()
112 application.getSharedPreferences(application.getPackageName(), Context.MODE_PRIVATE); in warmupSharedPrefs()
119 StorageComponent.get(application).unencryptedSharedPrefs(); in warmupSharedPrefs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DDndPreferenceControllerTest.java77 mContext = RuntimeEnvironment.application; in setUp()
106 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin()
119 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable()
132 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable()
145 new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_bypassDnd()
157 new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_noBypassDnd()
169 new RestrictedSwitchPreference(RuntimeEnvironment.application); in testOnPreferenceChange_on()
187 new RestrictedSwitchPreference(RuntimeEnvironment.application); in testOnPreferenceChange_off()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wallpaper/
DWallpaperSuggestionActivityTest.java55 final Application application = RuntimeEnvironment.application; in setUp() local
56 WallpaperManager wallpaperManager = WallpaperManager.getInstance(application); in setUp()
57 ShadowApplication shadowApplication = Shadows.shadowOf(application); in setUp()
80 assertThat(WallpaperSuggestionActivity.isSuggestionComplete(RuntimeEnvironment.application)) in hasWallpaperSet_no_shouldReturnFalse()
89 assertThat(WallpaperSuggestionActivity.isSuggestionComplete(RuntimeEnvironment.application)) in hasWallpaperSet_yes_shouldReturnTrue()

12345678910>>...53