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

Test: this only adds a log message
Bug: 29748723
Change-Id: I07ca1613c26a34517f5a452ca848aa763a48f8a0
This commit is contained in:
Michal Karpinski
2016-11-25 15:29:55 +00:00
parent a6fa8e5432
commit bcf1c58ec2

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;