Merge "Logging when the new batch of network logs broadcast is sent to DO"

This commit is contained in:
TreeHugger Robot
2016-11-25 17:16:35 +00:00
committed by Android (Google) Code Review

View File

@@ -106,6 +106,8 @@ final class NetworkLoggingHandler extends Handler {
Bundle extras = new Bundle();
extras.putLong(DeviceAdminReceiver.EXTRA_NETWORK_LOGS_TOKEN, mCurrentFullBatchToken);
extras.putInt(DeviceAdminReceiver.EXTRA_NETWORK_LOGS_COUNT, mFullBatch.size());
Log.d(TAG, "Sending network logging batch broadcast to device owner, batchToken: "
+ mCurrentFullBatchToken);
mDpm.sendDeviceOwnerCommand(DeviceAdminReceiver.ACTION_NETWORK_LOGS_AVAILABLE, extras);
} else {
mFullBatch = null;