nsclient remove debug data that puts stress on the broadcast system 3
This commit is contained in:
parent
621c32d832
commit
e6ce35485a
2 changed files with 0 additions and 14 deletions
|
@ -27,13 +27,6 @@ public class BroadcastDeviceStatus {
|
||||||
intent.putExtras(bundle);
|
intent.putExtras(bundle);
|
||||||
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
|
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
|
||||||
context.sendBroadcast(intent);
|
context.sendBroadcast(intent);
|
||||||
try {
|
|
||||||
List<ResolveInfo> x = context.getPackageManager().queryBroadcastReceivers(intent, 0);
|
|
||||||
|
|
||||||
log.debug("DEVICESTATUS " + x.size() + " receivers");
|
|
||||||
} catch (Exception e){
|
|
||||||
//for testing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
public static void handleNewDeviceStatus(JSONArray statuses, Context context, boolean isDelta) {
|
public static void handleNewDeviceStatus(JSONArray statuses, Context context, boolean isDelta) {
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,6 @@ public class BroadcastSgvs {
|
||||||
intent.putExtras(bundle);
|
intent.putExtras(bundle);
|
||||||
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
|
intent.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
|
||||||
context.sendBroadcast(intent);
|
context.sendBroadcast(intent);
|
||||||
try {
|
|
||||||
List<ResolveInfo> x = context.getPackageManager().queryBroadcastReceivers(intent, 0);
|
|
||||||
|
|
||||||
log.debug("SGV " + x.size() + " receivers");
|
|
||||||
} catch (Exception e){
|
|
||||||
//for testing
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void handleNewSgv(JSONArray sgvs, Context context, boolean isDelta) {
|
public static void handleNewSgv(JSONArray sgvs, Context context, boolean isDelta) {
|
||||||
|
|
Loading…
Reference in a new issue