From 98f6ac3cd3a03f212d48bc499a57c4e047b45118 Mon Sep 17 00:00:00 2001 From: Aleksandar Kiridzic Date: Tue, 29 Nov 2022 22:17:38 +0000 Subject: [PATCH] speech: Update recognition-service resource Adding an attribute to the recognition-service resource which will limit the maximum number of concurrent sessions ongoing with the same recognition implementation. The default value of attribute is 1 (no concurrency), maintaining the back-compatibility. Each recognition service implementation can override this value for itself to the extent they find suitable. Bug: 260713947 Test: n/a Change-Id: I84d4856c8bb99a73f2b542c207429c5dcc7e1e91 --- core/api/current.txt | 1 + core/res/res/values/attrs.xml | 3 +++ core/res/res/values/public-staging.xml | 1 + 3 files changed, 5 insertions(+) diff --git a/core/api/current.txt b/core/api/current.txt index dab32d25deab4..bf7d370ede14e 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -1041,6 +1041,7 @@ package android { field public static final int max = 16843062; // 0x1010136 field public static final int maxAspectRatio = 16844128; // 0x1010560 field public static final int maxButtonHeight = 16844029; // 0x10104fd + field public static final int maxConcurrentSessionsCount; field public static final int maxDate = 16843584; // 0x1010340 field public static final int maxEms = 16843095; // 0x1010157 field public static final int maxHeight = 16843040; // 0x1010120 diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 2d832bc71684d..79464937ff30e 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -8955,6 +8955,9 @@ + +