/aosp12/build/soong/scripts/ |
H A D | manifest_fixer.py | 152 manifest.insertBefore(application, first) 156 last = application.lastChild 166 application.insertBefore(ul, last) 167 last = application.lastChild 197 manifest.insertBefore(application, first) 201 last = application.lastChild 217 application.insertBefore(ul, last) 251 application.setAttributeNode(attr) 271 application.setAttributeNode(attr) 294 application.setAttributeNode(attr) [all …]
|
/aosp12/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
H A D | UtilsTest.java | 97 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 …]
|
H A D | TvTrackInfoUtilsTest.java | 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() 259 RuntimeEnvironment.application, createAudioTrackInfo("eng", 0), false)); in testAudioTrackCount() 263 RuntimeEnvironment.application, createAudioTrackInfo("eng", 1), false)); in testAudioTrackCount() 267 RuntimeEnvironment.application, createAudioTrackInfo("eng", 2), false)); in testAudioTrackCount() 271 RuntimeEnvironment.application, createAudioTrackInfo("eng", 3), false)); in testAudioTrackCount() 299 RuntimeEnvironment.application, createAudioTrackInfo("kor", 0), true)); in testShowSampleRate() [all …]
|
/aosp12/frameworks/base/tools/aapt2/link/ |
H A D | ManifestFixer_test.cpp | 101 <application> in TEST_F() 108 </application> in TEST_F() 254 </application> in TEST_F() 706 <application> in TEST_F() 764 <application> in TEST_F() 772 <application> in TEST_F() 924 <application> 933 <application> 953 <application> 964 <application> [all …]
|
/aosp12/frameworks/base/mime/java-res/ |
H A D | android.mime.types | 48 ?application/epub+zip epub 49 ?application/lrc lrc 50 ?application/pkix-cert cer 51 ?application/rss+xml rss 52 ?application/sdp sdp 53 ?application/smil+xml smil 59 ?application/vnd.ms-wpl wpl 64 ?application/x-flac flac 65 ?application/x-font pcf 68 ?application/x-pem-file pem [all …]
|
/aosp12/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/partner/ |
H A D | PartnerConfigHelperTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 73 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_withWrongConfigType_shouldThrowException() 75 helper.getDimension(application, TEST_COLOR_RESOURCE_NAME); in getDimension_withWrongConfigType_shouldThrowException() 80 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getDimension_shouldReturnExpectedDimension() 95 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_shouldReturnExpectedColor() 110 PartnerConfigHelper helper = PartnerConfigHelper.get(application); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 114 helper.getColorStateList(application, TEST_COLOR_RESOURCE_NAME); in getColor_whenCacheHasColorStateList_shouldReturnExpectedColor() 134 application, TEST_COLOR_RESOURCE_NAME); in getColorStateList_shouldReturnExpectedColorStateList() 153 helper.getColor(application, TEST_COLOR_RESOURCE_NAME); in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() 157 application, TEST_COLOR_RESOURCE_NAME); in getColorStateList_whenCacheHasColorValue_shouldReturnExpectedColorStateList() [all …]
|
/aosp12/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/source/ |
H A D | MediaSourceViewModel.java | 75 public static MediaSourceViewModel get(@NonNull Application application, int mode) { in get() argument 77 sInstances[mode] = new MediaSourceViewModel(application, mode); in get() 87 private MediaSourceViewModel(@NonNull Application application, int mode) { in MediaSourceViewModel() argument 88 this(application, mode, new InputFactory() { in MediaSourceViewModel() 91 @NonNull Application application, in MediaSourceViewModel() 93 return new MediaBrowserConnector(application, connectedBrowserCallback); in MediaSourceViewModel() 98 return Car.createCar(application); in MediaSourceViewModel() 108 return componentName == null ? null : MediaSource.create(application, in MediaSourceViewModel() 120 MediaSourceViewModel(@NonNull Application application, int mode, in MediaSourceViewModel() argument 122 super(application); in MediaSourceViewModel() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/ |
H A D | SetupFingerprintEnrollFinishTest.java | 24 import static org.robolectric.RuntimeEnvironment.application; 59 Shadows.shadowOf(application.getPackageManager()) in setUp() 62 mFingerprintManager = (FingerprintManager) application.getSystemService( in setUp() 67 application, FINGERPRINT_SUGGESTION_ACTIVITY); in setUp() 73 application, in clickAddAnother_shouldLaunchEnrolling() 88 application, in clickAddAnother_shouldPropagateResults() 113 assertThat(application.getPackageManager().getComponentEnabledSetting( in onActivityResult_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled() 123 assertThat(application.getPackageManager().getComponentEnabledSetting( in onActivityResult_fingerprintCountIsOne_fingerprintSuggestionActivityEnabled() 133 assertThat(application.getPackageManager().getComponentEnabledSetting( in clickNext_fingerprintCountIsNotOne_fingerprintSuggestionActivityDisabled() 143 assertThat(application.getPackageManager().getComponentEnabledSetting( in clickNext_fingerprintCountIsOne_fngerprintSuggestionActivityEnabled() [all …]
|
/aosp12/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/util/ |
H A D | WizardManagerHelperTest.java | 21 import static org.robolectric.RuntimeEnvironment.application; 321 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 1); in testIsUserSetupComplete() 322 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isTrue(); in testIsUserSetupComplete() 324 Settings.Secure.putInt(application.getContentResolver(), "user_setup_complete", 0); in testIsUserSetupComplete() 325 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isFalse(); in testIsUserSetupComplete() 332 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isTrue(); in testIsUserSetupCompleteCompat() 335 assertThat(WizardManagerHelper.isUserSetupComplete(application)).isFalse(); in testIsUserSetupCompleteCompat() 342 assertThat(WizardManagerHelper.isDeviceProvisioned(application)).isTrue(); in testIsDeviceProvisioned() 344 assertThat(WizardManagerHelper.isDeviceProvisioned(application)).isFalse(); in testIsDeviceProvisioned() 351 assertThat(WizardManagerHelper.isDeviceProvisioned(application)).isTrue(); in testIsDeviceProvisionedCompat() [all …]
|
H A D | PartnerTest.java | 20 import static org.robolectric.RuntimeEnvironment.application; 61 Partner partner = Partner.get(application); in get_withPartnerPackage_shouldReturnNonNull() 68 Partner partner = Partner.get(application); in get_noPartnerPackage_shouldReturnNull() 83 Partner partner = Partner.get(application); in get_nonSystemPartnerPackage_shouldIgnoreAndReturnNull() 93 ResourceEntry entry = Partner.getResourceEntry(application, R.integer.suwTransitionDuration); in getResourceEntry_hasOverlay_shouldReturnOverlayValue() 105 final int color = Partner.getColor(application, R.color.suw_color_accent_dark); in getColor_partnerValuePresent_shouldReturnPartnerValue() 115 final CharSequence partnerText = Partner.getText(application, R.string.suw_next_button_label); in getText_partnerValuePresent_shouldReturnPartnerValue() 123 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_partnerValueNotPresent_shouldReturnDefault() 133 ResourceEntry entry = Partner.getResourceEntry(application, R.color.suw_color_accent_dark); in getResourceEntry_directBootUnawareNoValueDefined_shouldReturnDefaultValue() 175 shadowOf(application.getPackageManager()) in injectResources()
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
H A D | ActivityTileTest.java | 51 mContext = RuntimeEnvironment.application; in setUp() 89 assertThat(tile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_noContextOrMetadata_returnNull() 96 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_providedByUri_returnNull() 103 assertThat(mTile.getIcon(RuntimeEnvironment.application).getResId()) in getIcon_hasIconMetadata_returnIcon() 111 assertThat(mTile.getIcon(RuntimeEnvironment.application)).isNull(); in getIcon_transparentColorInMetadata_returnNull() 119 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 122 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isTrue(); in isIconTintable_hasMetadata_shouldReturnIconTintableMetadata() 129 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noIcon_shouldReturnFalse() 137 assertThat(tile.isIconTintable(RuntimeEnvironment.application)).isFalse(); in isIconTintable_noTintableMetadata_shouldReturnFalse() 177 tile.getTitle(RuntimeEnvironment.application); in getTitle_shouldEnsureMetadataNotStale() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
H A D | ServiceListingTest.java | 45 mServiceListing = new ServiceListing.Builder(RuntimeEnvironment.application) in setUp() 69 Settings.Secure.putString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 77 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 79 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 86 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 88 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 95 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad() 97 assertThat(Settings.Secure.getString(RuntimeEnvironment.application.getContentResolver(), in testSaveLoad()
|
/aosp12/system/extras/simpleperf/demo/ |
H A D | README.md | 8 - [Profile a Java application](#profile-a-java-application) 9 - [Profile a Java/C++ application](#profile-a-javac-application) 10 - [Profile a Kotlin application](#profile-a-kotlin-application) 17 …id application for profiling are [here](https://android.googlesource.com/platform/system/extras/+/… 44 ## Profile a Java application 49 1. Build and install the application: 76 ## Profile a Java/C++ application 81 1. Build and install the application: 108 ## Profile a Kotlin application 113 1. Build and install the application: [all …]
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/ |
H A D | DefaultAppListViewModel.java | 48 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()
|
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/ |
H A D | SpecialAppAccessListViewModel.java | 44 public SpecialAppAccessListViewModel(@NonNull Application application) { in SpecialAppAccessListViewModel() argument 45 super(application); in SpecialAppAccessListViewModel() 48 RoleListLiveData liveData = new RoleListLiveData(false, user, application); in SpecialAppAccessListViewModel() 49 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessListViewModel() 50 RoleListSortFunction sortFunction = new RoleListSortFunction(application); in SpecialAppAccessListViewModel() 54 RoleListLiveData workLiveData = new RoleListLiveData(false, workProfile, application); in SpecialAppAccessListViewModel()
|
H A D | SpecialAppAccessViewModel.java | 60 public SpecialAppAccessViewModel(@NonNull Role role, @NonNull Application application) { in SpecialAppAccessViewModel() argument 61 super(application); in SpecialAppAccessViewModel() 66 RoleLiveData roleLiveData = new RoleLiveData(role, user, application); in SpecialAppAccessViewModel() 67 UserHandle workProfile = UserUtils.getWorkProfile(application); in SpecialAppAccessViewModel() 68 RoleSortFunction sortFunction = new RoleSortFunction(application); in SpecialAppAccessViewModel() 72 RoleLiveData workRoleLiveData = new RoleLiveData(role, workProfile, application); in SpecialAppAccessViewModel() 172 public Factory(@NonNull Role role, @NonNull Application application) { in Factory() argument 174 mApplication = application; in Factory()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/ |
H A D | PreferenceUtilTest.java | 38 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testCheckPreferenceType_true() 44 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testCheckPreferenceType_superclass_true() 51 Preference preference = new ListPreference(RuntimeEnvironment.application); in testCheckPreferenceType_false() 59 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testRequirePreferenceType_true() 66 Preference preference = new SwitchPreference(RuntimeEnvironment.application); in testRequirePreferenceType_superclass_true() 72 Preference preference = new ListPreference(RuntimeEnvironment.application); in testRequirePreferenceType_false()
|
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
H A D | AccountSyncPreferenceControllerTest.java | 23 import static org.robolectric.RuntimeEnvironment.application; 67 new PreferenceControllerTestHelper<>(application, in setUp() 75 mPreference = new Preference(application); in setUp() 102 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_notSameAccountType_shouldNotCount() 122 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_adapterInvisible_shouldNotCount() 140 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_notSyncable_shouldNotCount() 161 .isEqualTo(application.getString(R.string.account_sync_summary_all_off)); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount() 180 .isEqualTo(application.getString(R.string.account_sync_summary_all_on)); in refreshUi_masterAutomaticSyncUsed_shouldCount() 200 .isEqualTo(application.getString(R.string.account_sync_summary_all_on)); in refreshUi_automaticSyncEnabled_shouldCount() 244 .isEqualTo(application.getString(R.string.account_sync_summary_some_on, 3, 4)); in refreshUi_someEnabled_shouldSetSummary()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/strictmode/ |
H A D | StrictModeUtils.java | 103 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wallpaper/ |
H A D | WallpaperSuggestionActivityTest.java | 65 final Application application = RuntimeEnvironment.application; in setUp() local 66 WallpaperManager wallpaperManager = WallpaperManager.getInstance(application); in setUp() 67 ShadowApplication shadowApplication = Shadows.shadowOf(application); in setUp() 90 assertThat(WallpaperSuggestionActivity.isSuggestionComplete(RuntimeEnvironment.application)) in hasWallpaperSet_no_shouldReturnFalse() 99 assertThat(WallpaperSuggestionActivity.isSuggestionComplete(RuntimeEnvironment.application)) in hasWallpaperSet_yes_shouldReturnTrue() 108 new ComponentName(RuntimeEnvironment.application, in addExtras_intentFromSetupWizard_extrasHasWallpaperOnlyAndLaunchedSuw() 124 new ComponentName(RuntimeEnvironment.application, in addExtras_intentNotFromSetupWizard_extrasHasFocusWallpaper()
|
/aosp12/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ |
H A D | SwitchItemTest.java | 23 import static org.robolectric.RuntimeEnvironment.application; 53 LayoutInflater inflater = LayoutInflater.from(application); in defaultLayout_baselineAligned_shouldBeFalse() 62 LayoutInflater inflater = LayoutInflater.from(application); in verboseLayout_clipPadding_shouldBeFalse() 65 application, in verboseLayout_clipPadding_shouldBeFalse() 211 View view = LayoutInflater.from(application).inflate(R.layout.suw_items_switch, null); in testAccessibility() 220 ViewGroup root = new FrameLayout(application); in createLayout() 222 TextView titleView = new TextView(application); in createLayout() 226 TextView summaryView = new TextView(application); in createLayout() 230 FrameLayout iconContainer = new FrameLayout(application); in createLayout() 234 ImageView iconView = new ImageView(application); in createLayout() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
H A D | DashboardFeatureProviderImplTest.java | 122 mContext = spy(RuntimeEnvironment.application); in setUp() 158 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_shouldBindAllData() 199 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadata_shouldBindIntent() 213 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 228 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 249 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 250 mActivityInfo.packageName = RuntimeEnvironment.application.getPackageName(); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 276 final Preference preference = new Preference(RuntimeEnvironment.application); in bindPreference_withNullKeyNullPriority_shouldGenerateKeyAndPriority() 408 mActivityInfo.packageName = RuntimeEnvironment.application.getPackageName(); in bindIcon_withStaticIcon_shouldLoadStaticIcon() 426 mActivityInfo.packageName = RuntimeEnvironment.application.getPackageName(); in bindIcon_withIconUri_shouldLoadIconFromContentProvider() [all …]
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
H A D | ValidatedEditTextPreferenceTest.java | 60 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()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
H A D | AnomalyConfigJobServiceTest.java | 31 import static org.robolectric.RuntimeEnvironment.application; 71 mContext = spy(RuntimeEnvironment.application); in setUp() 76 doReturn(application.getSharedPreferences(AnomalyConfigJobService.PREF_DB, in setUp() 79 doReturn(application.getContentResolver()).when(mJobService).getContentResolver(); in setUp() 108 Settings.Global.putInt(application.getContentResolver(), in checkAnomalyConfig_newConfigExist_removeOldConfig() 110 Settings.Global.putString(application.getContentResolver(), Settings.Global.ANOMALY_CONFIG, in checkAnomalyConfig_newConfigExist_removeOldConfig() 121 Settings.Global.putInt(application.getContentResolver(), in checkAnomalyConfig_newConfigExist_uploadNewConfig() 123 Settings.Global.putString(application.getContentResolver(), Settings.Global.ANOMALY_CONFIG, in checkAnomalyConfig_newConfigExist_uploadNewConfig()
|
/aosp12/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/ |
H A D | RuntimePermissionsUpgradeControllerTest.kt | 71 val application = mock(PermissionControllerApplication::class.java) regex 74 whenever(application.applicationContext).thenReturn(application) 76 application) 78 whenever(application.registerComponentCallbacks(any())).thenAnswer { 169 whenever(PermissionControllerApplication.get()).thenReturn(application) 173 whenever(application.getSystemService(ActivityManager::class.java)).thenReturn( 176 whenever(application.getSystemService(LocationManager::class.java)).thenReturn( 178 whenever(application.getSystemService(UserManager::class.java)).thenReturn( 180 whenever(application.getSystemService(JobScheduler::class.java)).thenReturn( 183 whenever(application.packageManager).thenReturn(packageManager) [all …]
|