Searched full:role (Results 1 – 14 of 14) sorted by relevance
20 import android.app.role.RoleManager41 * - 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 possible78 * 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 …]
23 import android.app.role.RoleManager38 * <p>The rule sets the current user's Notes role to "None" before creating a secondary user for the39 * test and setting the supplied package as it's Notes role holder. The rule also takes care of40 * 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 role66 // 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 …]
18 import android.app.role.RoleManager29 * that should be used in the tests. The rule will take care of setting and restoring the role55 // 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()
139 * Fetch the role-holder-name for the role-name under the userid142 * @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-name176 * @param roleName the role name {@link String} to fetch role holder's name for the current
10 role: "source_device"12 role: "target_device"
12 role: "source_device"14 role: "target_device"
13 role: "source_device"15 role: "target_device"
66 self.ads, role='source_device'69 self.ads, role='target_device'
26 role: "source_device"47 role: "target_device"
77 self.ads, role='source_device'80 self.ads, role='target_device'
251 role: "source_device"256 role: "target_device"
22 name: "notes-role-test-helper",
33 "notes-role-test-helper",
19 Wifi LAN - The target device starts WFD GO as the role of AP, the source device