Searched refs:eventBundle (Results 1 – 4 of 4) sorted by relevance
97 public void parseBackupManagerMonitorRestoreEventForDumpsys(Bundle eventBundle) { in parseBackupManagerMonitorRestoreEventForDumpsys() argument103 if (eventBundle == null) { in parseBackupManagerMonitorRestoreEventForDumpsys()107 if (!isOpTypeRestore(eventBundle)) { in parseBackupManagerMonitorRestoreEventForDumpsys()112 if (!eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_ID) in parseBackupManagerMonitorRestoreEventForDumpsys()113 || !eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY)) { in parseBackupManagerMonitorRestoreEventForDumpsys()133 int eventCategory = eventBundle.getInt(BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY); in parseBackupManagerMonitorRestoreEventForDumpsys()134 int eventId = eventBundle.getInt(BackupManagerMonitor.EXTRA_LOG_EVENT_ID); in parseBackupManagerMonitorRestoreEventForDumpsys()137 !hasAgentLogging(eventBundle)) { in parseBackupManagerMonitorRestoreEventForDumpsys()144 if (eventBundle.containsKey(BackupManagerMonitor.EXTRA_LOG_EVENT_PACKAGE_NAME)) { in parseBackupManagerMonitorRestoreEventForDumpsys()146 + eventBundle.getString(BackupManagerMonitor.EXTRA_LOG_EVENT_PACKAGE_NAME)); in parseBackupManagerMonitorRestoreEventForDumpsys()[all …]
126 Bundle eventBundle = bundleCaptor.getValue(); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly() local127 assertThat(eventBundle.size()).isEqualTo(2); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()128 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()129 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()147 Bundle eventBundle = bundleCaptor.getValue(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() local148 assertThat(eventBundle.size()).isEqualTo(7); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()149 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()150 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()151 assertThat(eventBundle.getString(EXTRA_LOG_EVENT_PACKAGE_NAME)).isEqualTo("test.package"); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()152 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_PACKAGE_VERSION)).isEqualTo(3); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()[all …]
51 Bundle eventBundle = new Bundle(); in testOnEvent_propagatesToMonitor() local53 mMonitorWrapper.onEvent(eventBundle); in testOnEvent_propagatesToMonitor()55 verify(mMonitor, times(/* wantedNumberOfInvocations */ 1)).onEvent(eq(eventBundle)); in testOnEvent_propagatesToMonitor()
1483 Bundle eventBundle = bundleCaptor.getValue(); in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor() local1485 eventBundle.getParcelableArrayList( in testRunTask_whenFinishBackupSucceeds_sendsAgentLogsToMonitor()