Home
last modified time | relevance | path

Searched refs:language (Results 1 – 25 of 3846) sorted by relevance

12345678910>>...154

/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextLanguageTest.java47 final TextLanguage language = new TextLanguage.Builder() in testTextLanguage() local
55 assertEquals(ID, language.getId()); in testTextLanguage()
56 assertEquals(3, language.getLocaleHypothesisCount()); in testTextLanguage()
57 assertEquals(ULocale.ENGLISH, language.getLocale(0)); in testTextLanguage()
58 assertEquals(ULocale.CHINESE, language.getLocale(1)); in testTextLanguage()
59 assertEquals(ULocale.JAPANESE, language.getLocale(2)); in testTextLanguage()
60 assertEquals(0.6f, language.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testTextLanguage()
61 assertEquals(0.3f, language.getConfidenceScore(ULocale.CHINESE), EPSILON); in testTextLanguage()
62 assertEquals(0.1f, language.getConfidenceScore(ULocale.JAPANESE), EPSILON); in testTextLanguage()
63 assertEquals(BUNDLE_VALUE, language.getExtras().getString(BUNDLE_KEY)); in testTextLanguage()
[all …]
DTextClassifierTest.java340 private static void assertValidResult(TextLanguage language) { in assertValidResult() argument
341 assertNotNull(language); in assertValidResult()
342 assertNotNull(language.getExtras()); in assertValidResult()
343 assertTrue(language.getLocaleHypothesisCount() >= 0); in assertValidResult()
344 for (int i = 0; i < language.getLocaleHypothesisCount(); i++) { in assertValidResult()
345 final ULocale locale = language.getLocale(i); in assertValidResult()
347 final float confidenceScore = language.getConfidenceScore(locale); in assertValidResult()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/playback/
DHdmiCecSystemInformationTest.java78 final String language = originalLanguage.equals("spa") ? "eng" : "spa"; in cect_11_2_6_3_SetValidMenuLanguage() local
82 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in cect_11_2_6_3_SetValidMenuLanguage()
99 final String language = "spb"; in cect_11_2_6_4_SetInvalidMenuLanguage() local
102 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in cect_11_2_6_4_SetInvalidMenuLanguage()
119 final String language = originalLanguage.equals("spa") ? "eng" : "spa"; in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource() local
122 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in cect_11_2_6_5_SetValidMenuLanguageFromInvalidSource()
147 final String language = originalLanguage.equals("spa") ? "eng" : "spa"; in setMenuLanguageNotHandledWhenDisabled() local
150 CecOperand.SET_MENU_LANGUAGE, CecMessage.convertStringToHexParams(language)); in setMenuLanguageNotHandledWhenDisabled()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DAttachedContextActivity.java52 private Context applyLocale(Context context, String language) { in applyLocale() argument
55 configuration.setLocale(new Locale(language)); in applyLocale()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/
DHdmiCecInvalidMessagesTest.java83 final String language = originalLanguage.equals("spa") ? "eng" : "spa"; in cect_12_1_BroadcastReceivedAsDirectlyAddressed() local
88 CecMessage.convertStringToHexParams(language)); in cect_12_1_BroadcastReceivedAsDirectlyAddressed()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoSubject.java76 public void hasLanguage(String language) { in hasLanguage() argument
77 check("getLanguage()").that(actual.getLanguage()).isEqualTo(language); in hasLanguage()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dgetset_relaxed.rscript13 * See the License for the specific language governing permissions and
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0421/
DAndroid.bp13 * See the License for the specific language governing permissions and
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2228/
DAndroid.bp13 * See the License for the specific language governing permissions and
/cts/tests/tests/permission2/CtsLegacyStorageIsolatedWithSharedUid/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/tests/tests/appop/AppWithDuplicateAttribution/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/tests/tests/permission2/CtsStoragePermissionsPreservedUserOptOutSdk30/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/tests/tests/permission2/CtsStoragePermissionsUserOptInSdk22/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/hostsidetests/packagemanager/dynamicmime/common/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/hostsidetests/securitybulletin/securityPatch/Bug-38195738/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/tests/tests/role/CtsRoleTestApp28/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/tests/tests/permission2/CtsStoragePermissionsUserOptOutSdk29/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/libs/view/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/tests/tests/appop/AppInBackground/
DAndroid.bp12 // See the License for the specific language governing permissions and
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-29368/
DAndroid.bp13 * See the License for the specific language governing permissions and
/cts/libs/midi/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/tests/tests/content/
Dfonts_readme.txt14 See the License for the specific language governing permissions and
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/TestStubs.smalis/
DTestStubs.smali12 # See the License for the specific language governing permissions and
/cts/tests/tests/permission2/CtsStoragePermissionsUserDefaultSdk22/
DAndroid.bp13 // See the License for the specific language governing permissions and
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/
DAndroid.bp12 // See the License for the specific language governing permissions and

12345678910>>...154