Add settings for individual NAS components
Test: robotest Bug: 127825514 Change-Id: I4359bb548d10b39652bb8c263fa685d595d7a9ea
This commit is contained in:
@@ -339,6 +339,27 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public void allowAssistantCapability(String capability, boolean allowed) {
|
||||
try {
|
||||
if (allowed) {
|
||||
sINM.allowAssistantCapability(capability);
|
||||
} else {
|
||||
sINM.disallowAssistantCapability(capability);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getAssistantCapabilities(String pkg) {
|
||||
try {
|
||||
return sINM.getAllowedAssistantCapabilities(pkg);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
}
|
||||
return new ArrayList<>();
|
||||
}
|
||||
|
||||
protected void recordAggregatedUsageEvents(Context context, AppRow appRow) {
|
||||
long now = System.currentTimeMillis();
|
||||
long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK);
|
||||
|
Reference in New Issue
Block a user