Home
last modified time | relevance | path

Searched refs:importance (Results 1 – 19 of 19) sorted by relevance

/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DUidImportanceListener.java47 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
50 + "): " + importance); in onUidImportance()
52 mLastValue = importance; in onUidImportance()
DServiceProcessController.java223 int importance = mAm.getPackageImportance(mServicePackage); in ensureProcessGone() local
224 if (importance != ActivityManager.RunningAppProcessInfo.IMPORTANCE_GONE) { in ensureProcessGone()
226 + importance); in ensureProcessGone()
/cts/tests/app/GetBindingUidImportanceTest/src/android/app/cts/getbindinguidimportance/
DActivityManager_getBindingUidImportanceTest.java186 private static void assertImportanceNotCached(int importance) { in assertImportanceNotCached() argument
187 if (importance < 0) { in assertImportanceNotCached()
190 if (importance > IMPORTANCE_SERVICE) { in assertImportanceNotCached()
191 fail("Importance should be non cached, but was " + importance); in assertImportanceNotCached()
195 public static void assertImportanceGone(int importance) { in assertImportanceGone() argument
196 assertEquals("Importance should seem to be GONE", importance, IMPORTANCE_GONE); in assertImportanceGone()
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/
DTestService.java42 int importance = NotificationManager.IMPORTANCE_DEFAULT; in getNotificationChannelId() local
43 NotificationChannel channel = new NotificationChannel(CHANNEL_ID, name, importance); in getNotificationChannelId()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DInstallConstraintsTest.kt173 val importance = getPackageImportance(TestApp.A) in <lambda>() constant
174 importance > ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in <lambda>()
205 val importance = getPackageImportance(TestApp.A) in <lambda>() constant
206 importance > ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in <lambda>()
305 val importance = getPackageImportance(TestApp.A) in <lambda>() constant
306 importance > ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in <lambda>()
345 val importance = getPackageImportance(HelloWorldUsingSdk1.packageName) in <lambda>() constant
346 importance > ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in <lambda>()
453 val importance = getPackageImportance(TestApp.A) in <lambda>() constant
454 importance > ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in <lambda>()
/cts/tests/tests/security/src/android/security/cts/
DTestForegroundService.java74 final int importance = NotificationManager.IMPORTANCE_DEFAULT; in createNotificationChannelId() local
76 NOTIFICATION_CHANNEL_ID, name, importance); in createNotificationChannelId()
DActivityManagerTest.java352 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
/cts/tests/app/app/src/android/app/stubs/
DBootCompletedFgs.java90 final int importance = NotificationManager.IMPORTANCE_DEFAULT; in createNotificationChannelId() local
92 NOTIFICATION_CHANNEL_ID, name, importance); in createNotificationChannelId()
DCommandReceiver.java666 int importance = NotificationManager.IMPORTANCE_LOW; in maybeCreateNotificationChannel() local
668 new NotificationChannel(mNotificationChannelId, name.toString(), importance); in maybeCreateNotificationChannel()
/cts/tests/tests/display/src/android/display/cts/
DDisplayEventTest.java245 mUidImportanceListener = (uid, importance) -> { in setUp()
246 if (uid == mUid && importance == IMPORTANCE_CACHED) { in setUp()
247 Log.d(TAG, "Listener " + uid + " becomes " + importance); in setUp()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21088/src/android/security/cts/CVE_2023_21088/
DPocActivity.java84 if (appProcess.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in isAppOnForeground()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40111/src/android/security/cts/CVE_2023_40111/
DPocActivity.java121 if (appProcess.importance == ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND in isAppOnForeground()
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/
DBackgroundReceiver.java96 && appInfo.importance >= RunningAppProcessInfo.IMPORTANCE_SERVICE) { in isAppInBackground()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerTestActivityBase.java257 private void changeCodecImportance(MediaCodec codec, int importance) { in changeCodecImportance() argument
259 params.putInt(MediaFormat.KEY_IMPORTANCE, importance); in changeCodecImportance()
/cts/tests/app/src/android/app/cts/
DServiceTest.java1678 IsolatedConnectionInfo(int group, int importance, int strong) { in IsolatedConnectionInfo() argument
1680 mImportance = importance; in IsolatedConnectionInfo()
1682 mInstanceName = group + "_" + importance; in IsolatedConnectionInfo()
1699 void setImportance(int importance) { in setImportance() argument
1700 mImportance = importance; in setImportance()
DActivityManagerTest.java570 assertTrue(ra.importance >= RunningAppProcessInfo.IMPORTANCE_FOREGROUND);
571 assertTrue(ra.importance < RunningAppProcessInfo.IMPORTANCE_GONE);
612 assertEquals(RunningAppProcessInfo.IMPORTANCE_FOREGROUND, ra.importance);
1717 if (info.importance in killBackgroundProcesses()
2169 public void onUidImportance(int uid, int importance) { in testAddOnUidImportanceListener()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DMockSatelliteServiceManager.java294 public void onUidImportance(int uid, int importance) { in onUidImportance() argument
295 if (importance != IMPORTANCE_GONE) return; in onUidImportance()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputManagerTest.java1020 && appProcess.importance == RunningAppProcessInfo.IMPORTANCE_FOREGROUND) { in checkIsForeground()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt4831 field public int importance;
6977 field public static final String EDIT_IMPORTANCE = "importance";
23661 …roid.media.codec.flags.codec_importance") public static final String KEY_IMPORTANCE = "importance";