You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3、After 10 seconds, the phone call starts while USB is off.
4、Finally, after the phone call is finished, Monsoon data collection completes and USB is re-enabled.
5、The test retrieves any cached events or data from the device.
mobly can not make continue connection to the device after USB is re-enabled.I try to add _forward_device_port in CallbackHandlerBase.waitAndGet, move make_connection_with_forwarded_port action to the CallbackHandlerBase.waitAndGet. But not successful,Have you tried it? Or am I thinking wrong?
09-20 06:16:08.907 10613 10632 V NotificationManager: com.google.android.mobly.snippet.example5: notifyAsUser(1, Notification(channel=msl_channel shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x22 color=0x00000000 vis=PRIVATE))
09-20 06:16:08.908 10613 10632 I com.google.android.mobly.snippet.example5.SnippetRunner:194: Sending protocol message: SNIPPET SERVING, PORT 35373
09-20 06:16:08.909 10613 10632 I com.google.android.mobly.snippet.example5.SnippetRunner:161: Snippet server started for process 10613 on port 35373
09-20 06:16:08.954 10613 10633 D TrafficStats: tagSocket(84) with statsTag=0xffffffff, statsUid=-1
09-20 06:16:08.955 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:211: Received: {"cmd": "initiate", "uid": -1}
09-20 06:16:08.956 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:218: Initiate a new session
09-20 06:16:08.957 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:253: Sent: {"uid":1,"status":true}
09-20 06:16:08.957 10613 10634 V com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:105: Server thread 44 started.
09-20 06:16:08.957 10613 10634 D com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:108: Handling RPC connection in 44
09-20 06:16:08.957 10613 10634 D com.google.android.mobly.snippet.example5.JsonRpcServer:51: UID 1
09-20 06:16:08.958 10613 10634 V com.google.android.mobly.snippet.example5.JsonRpcServer:54: Session 1 Received: {"id": 0, "method": "scheduleRpc", "params": ["asyncMakeToast", 15000, ["message"]]}
09-20 06:16:08.959 10613 10634 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.schedulerpc.ScheduleRpcSnippet
09-20 06:16:08.959 10613 10634 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.schedulerpc.ScheduleRpcSnippet#scheduleRpc
09-20 06:16:08.960 10613 10634 V com.google.android.mobly.snippet.example5.JsonRpcServer:116: Session 1 Sent: {"id":0,"result":null,"callback":"1-0","error":null}
09-20 06:16:18.984 10613 10633 D TrafficStats: tagSocket(86) with statsTag=0xffffffff, statsUid=-1
09-20 06:16:18.986 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:211: Received: {"cmd": "continue", "uid": 1}
09-20 06:16:18.986 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:230: Continue an existing session
09-20 06:16:18.986 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:231: keys: [1]
09-20 06:16:18.987 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:253: Sent: {"uid":1,"status":true}
09-20 06:16:18.987 10613 10650 V com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:105: Server thread 46 started.
09-20 06:16:18.987 10613 10650 D com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:108: Handling RPC connection in 46
09-20 06:16:18.987 10613 10650 D com.google.android.mobly.snippet.example5.JsonRpcServer:51: UID 1
09-20 06:16:18.989 10613 10650 V com.google.android.mobly.snippet.example5.JsonRpcServer:54: Session 1 Received: {"id": 0, "method": "eventWaitAndGet", "params": ["1-0", "asyncMakeToast", 120000]}
09-20 06:16:18.990 10613 10650 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.event.EventSnippet
09-20 06:16:18.990 10613 10650 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.event.EventSnippet#eventWaitAndGet
09-20 06:16:23.962 10613 10636 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet
09-20 06:16:23.963 10613 10636 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet#asyncMakeToast
09-20 06:16:23.964 10613 10636 V com.google.android.mobly.snippet.example5.EventCache:94: Posted event(1-0|asyncMakeToast)
09-20 06:16:23.965 10613 10659 D com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet$AsyncTask:59: Sleeping for 10s before posting an event.
09-20 06:16:23.967 10613 10650 V com.google.android.mobly.snippet.example5.JsonRpcServer:116: Session 1 Sent: {"id":0,"result":{"callbackId":"1-0","name":"asyncMakeToast","time":1695161783961,"data":{"result":"null","callback":"1-0","id":"0","error":"null"}},"callback":null,"error":null}
09-20 06:16:24.182 2755 3672 I ActivityManager: Killing 10613:com.google.android.mobly.snippet.example5/u0a265 (adj 0): stop com.google.android.mobly.snippet.example5 due to start instr
09-20 06:16:23.527 1 1 I : [1:1127:logd.klogd] MZ VendorHooks: [3672:binder:2755_3] sig 9 to [10613:nippet.example5] state=S
The text was updated successfully, but these errors were encountered:
https://github.com/google/mobly-snippet-lib/tree/master/examples/ex5_schedule_rpc#why-this-is-needed:
3、After 10 seconds, the phone call starts while USB is off.
4、Finally, after the phone call is finished, Monsoon data collection completes and USB is re-enabled.
5、The test retrieves any cached events or data from the device.
mobly can not make continue connection to the device after USB is re-enabled.I try to add _forward_device_port in CallbackHandlerBase.waitAndGet, move make_connection_with_forwarded_port action to the CallbackHandlerBase.waitAndGet. But not successful,Have you tried it? Or am I thinking wrong?
09-20 06:16:08.907 10613 10632 V NotificationManager: com.google.android.mobly.snippet.example5: notifyAsUser(1, Notification(channel=msl_channel shortcut=null contentView=null vibrate=null sound=null defaults=0x0 flags=0x22 color=0x00000000 vis=PRIVATE))
09-20 06:16:08.908 10613 10632 I com.google.android.mobly.snippet.example5.SnippetRunner:194: Sending protocol message: SNIPPET SERVING, PORT 35373
09-20 06:16:08.909 10613 10632 I com.google.android.mobly.snippet.example5.SnippetRunner:161: Snippet server started for process 10613 on port 35373
09-20 06:16:08.954 10613 10633 D TrafficStats: tagSocket(84) with statsTag=0xffffffff, statsUid=-1
09-20 06:16:08.955 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:211: Received: {"cmd": "initiate", "uid": -1}
09-20 06:16:08.956 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:218: Initiate a new session
09-20 06:16:08.957 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:253: Sent: {"uid":1,"status":true}
09-20 06:16:08.957 10613 10634 V com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:105: Server thread 44 started.
09-20 06:16:08.957 10613 10634 D com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:108: Handling RPC connection in 44
09-20 06:16:08.957 10613 10634 D com.google.android.mobly.snippet.example5.JsonRpcServer:51: UID 1
09-20 06:16:08.958 10613 10634 V com.google.android.mobly.snippet.example5.JsonRpcServer:54: Session 1 Received: {"id": 0, "method": "scheduleRpc", "params": ["asyncMakeToast", 15000, ["message"]]}
09-20 06:16:08.959 10613 10634 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.schedulerpc.ScheduleRpcSnippet
09-20 06:16:08.959 10613 10634 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.schedulerpc.ScheduleRpcSnippet#scheduleRpc
09-20 06:16:08.960 10613 10634 V com.google.android.mobly.snippet.example5.JsonRpcServer:116: Session 1 Sent: {"id":0,"result":null,"callback":"1-0","error":null}
09-20 06:16:18.984 10613 10633 D TrafficStats: tagSocket(86) with statsTag=0xffffffff, statsUid=-1
09-20 06:16:18.986 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:211: Received: {"cmd": "continue", "uid": 1}
09-20 06:16:18.986 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:230: Continue an existing session
09-20 06:16:18.986 10613 10633 D com.google.android.mobly.snippet.example5.SimpleServer:231: keys: [1]
09-20 06:16:18.987 10613 10633 V com.google.android.mobly.snippet.example5.SimpleServer:253: Sent: {"uid":1,"status":true}
09-20 06:16:18.987 10613 10650 V com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:105: Server thread 46 started.
09-20 06:16:18.987 10613 10650 D com.google.android.mobly.snippet.example5.SimpleServer$ConnectionThread:108: Handling RPC connection in 46
09-20 06:16:18.987 10613 10650 D com.google.android.mobly.snippet.example5.JsonRpcServer:51: UID 1
09-20 06:16:18.989 10613 10650 V com.google.android.mobly.snippet.example5.JsonRpcServer:54: Session 1 Received: {"id": 0, "method": "eventWaitAndGet", "params": ["1-0", "asyncMakeToast", 120000]}
09-20 06:16:18.990 10613 10650 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.event.EventSnippet
09-20 06:16:18.990 10613 10650 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.event.EventSnippet#eventWaitAndGet
09-20 06:16:23.962 10613 10636 D com.google.android.mobly.snippet.example5.SnippetManager:259: Constructing class com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet
09-20 06:16:23.963 10613 10636 D com.google.android.mobly.snippet.example5.SnippetManager:286: Invoking RPC method class com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet#asyncMakeToast
09-20 06:16:23.964 10613 10636 V com.google.android.mobly.snippet.example5.EventCache:94: Posted event(1-0|asyncMakeToast)
09-20 06:16:23.965 10613 10659 D com.google.android.mobly.snippet.example5.ExampleScheduleRpcSnippet$AsyncTask:59: Sleeping for 10s before posting an event.
09-20 06:16:23.967 10613 10650 V com.google.android.mobly.snippet.example5.JsonRpcServer:116: Session 1 Sent: {"id":0,"result":{"callbackId":"1-0","name":"asyncMakeToast","time":1695161783961,"data":{"result":"null","callback":"1-0","id":"0","error":"null"}},"callback":null,"error":null}
09-20 06:16:24.182 2755 3672 I ActivityManager: Killing 10613:com.google.android.mobly.snippet.example5/u0a265 (adj 0): stop com.google.android.mobly.snippet.example5 due to start instr
09-20 06:16:23.527 1 1 I : [1:1127:logd.klogd] MZ VendorHooks: [3672:binder:2755_3] sig 9 to [10613:nippet.example5] state=S
The text was updated successfully, but these errors were encountered: