Home
last modified time | relevance | path

Searched full:role (Results 1 – 14 of 14) sorted by relevance

/platform_testing/libraries/notes-role-test-helper/src/android/platform/helpers/notesrole/
DNotesRoleUtil.kt20 import android.app.role.RoleManager
41 * - Notes role is available.
56 "Notes role should be enabled", in checkAndroidRolePackageAssumptions()
62 /** Returns the Notes role holder package name. */
77 * Sets the Notes role holder to "None" by clearing existing role holders. This is possible
78 * because Notes role is an exclusive role.
92 // Synchronously wait for the role to update. in clearRoleHolder()
99 "Failed to clear notes role holder" in clearRoleHolder()
103 /** Sets the supplied package as the Notes role holder app. */
108 "Trying to set note role to $packageName. Current role holder: " + in setRoleHolder()
[all …]
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DNotesRoleManagerSecondaryUserRule.kt23 import android.app.role.RoleManager
38 * <p>The rule sets the current user's Notes role to "None" before creating a secondary user for the
39 * test and setting the supplied package as it's Notes role holder. The rule also takes care of
40 * deleting the secondary test user and restoring the original user's Notes role holder.
44 * that should be used in the tests. The rule will take care of setting and restoring the role
66 // assertion because not all devices have the Notes role or the required app installed. in starting()
74 // Update original user's notes role holder to none. This helps with confidently verifying in starting()
75 // secondary user CUJs as we avoid the off chance that original user's notes role holder is in starting()
77 // notes role holder is launched in tests. in starting()
91 // Update the secondary user's notes role holder. in starting()
[all …]
DNotesRoleManagerRule.kt18 import android.app.role.RoleManager
29 * that should be used in the tests. The rule will take care of setting and restoring the role
55 // assertion because not all devices have the Notes role or the required app installed. in starting()
66 // Kill the supplied Notes role holder app to avoid issues during verification in test. in starting()
/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DDumpsysUtils.java139 * Fetch the role-holder-name for the role-name under the userid
142 * @param roleName the role name {@link String} to fetch role holder's name.
143 * @param userId the userid {@link int} to fetch role holder's name for the user.
153 "role" /* service */, in getRoleHolder()
160 // Fetch the holder's name for the role in getRoleHolder()
173 * Fetch the role-holder-name for the role-name
176 * @param roleName the role name {@link String} to fetch role holder's name for the current
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dlocal_esim_testbed.yml10 role: "source_device"
12 role: "target_device"
Dlocal_dev_testbed.yml12 role: "source_device"
14 role: "target_device"
Dlocal_nearby_share_testbed.yml13 role: "source_device"
15 role: "target_device"
Dnc_base_test.py66 self.ads, role='source_device'
69 self.ads, role='target_device'
/platform_testing/tests/bettertogether/betocq/
Dcuj_and_test_config.yml26 role: "source_device"
47 role: "target_device"
Dnc_base_test.py77 self.ads, role='source_device'
80 self.ads, role='target_device'
DReadMe.md251 role: "source_device"
256 role: "target_device"
/platform_testing/libraries/notes-role-test-helper/
DAndroid.bp22 name: "notes-role-test-helper",
/platform_testing/libraries/health/rules/
DAndroid.bp33 "notes-role-test-helper",
/platform_testing/tests/bettertogether/betocq/directed_tests/
Dscc_2g_wlan_sta_test.py19 Wifi LAN - The target device starts WFD GO as the role of AP, the source device