CameraServiceProxy: Double retry times when notifying cameraserver

Current retry for notifying cameraserver is 20ms * 30 = 600ms. Double it
to 1.2 seconds to give cameraserver enough time to start up.

Test: Build
Bug: 140414594
Change-Id: I5726212d81bb595a99c9137e073f0da022d0779c
This commit is contained in:
Shuzhen Wang
2019-09-09 15:43:49 -07:00
parent 15348e6969
commit a251ea28b8

View File

@@ -79,7 +79,7 @@ public class CameraServiceProxy extends SystemService
private static final int MSG_SWITCH_USER = 1;
private static final int RETRY_DELAY_TIME = 20; //ms
private static final int RETRY_TIMES = 30;
private static final int RETRY_TIMES = 60;
// Maximum entries to keep in usage history before dumping out
private static final int MAX_USAGE_HISTORY = 100;