Merge "Disable throttling of SoundTrigger" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1936031cbe
@@ -965,8 +965,9 @@ public class SoundTriggerService extends SystemService {
|
|||||||
MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY,
|
MAX_SOUND_TRIGGER_DETECTION_SERVICE_OPS_PER_DAY,
|
||||||
Integer.MAX_VALUE);
|
Integer.MAX_VALUE);
|
||||||
|
|
||||||
|
// As we currently cannot dropping an op safely, disable throttling
|
||||||
int opsAdded = mNumOps.getOpsAdded();
|
int opsAdded = mNumOps.getOpsAdded();
|
||||||
if (mNumOps.getOpsAdded() >= opsAllowed) {
|
if (false && mNumOps.getOpsAdded() >= opsAllowed) {
|
||||||
try {
|
try {
|
||||||
if (DEBUG || opsAllowed + 10 > opsAdded) {
|
if (DEBUG || opsAllowed + 10 > opsAdded) {
|
||||||
Slog.w(TAG, mPuuid + ": Dropped operation as too many operations "
|
Slog.w(TAG, mPuuid + ": Dropped operation as too many operations "
|
||||||
|
|||||||
Reference in New Issue
Block a user