Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8859dacd authored by Rubin Xu's avatar Rubin Xu
Browse files

Increase timeout for setDefaultDialerApplication

Bug: 273275144
Test: DefaultDialerApplicationTest#setDefaultDialerApplication_unchanged
Change-Id: I5b5b72060de79cd31a4a8bcf37914afb94b55646
parent a9977819
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11276,7 +11276,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                    RoleManager.ROLE_DIALER, packageName, 0, UserHandle.of(callerUserId),
                    AsyncTask.THREAD_POOL_EXECUTOR, callback);
            try {
                future.get(5, TimeUnit.SECONDS);
                future.get(20, TimeUnit.SECONDS);
            } catch (TimeoutException e) {
                throw new IllegalArgumentException("Timeout when setting the app as the dialer", e);
            } catch (ExecutionException e) {