Home
last modified time | relevance | path

Searched refs:store (Results 1 – 25 of 47) sorted by relevance

12

/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DVulkanDeviceInfo.java354 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
357 emitDeviceGroups(store, instance); in collectDeviceInfo()
358 emitLayers(store, instance); in collectDeviceInfo()
359 emitExtensions(store, instance); in collectDeviceInfo()
360 emitDevices(store, instance); in collectDeviceInfo()
367 private static void emitDeviceGroups(DeviceInfoStore store, JSONObject parent) in emitDeviceGroups() argument
370 store.startArray(convertName(KEY_DEVICE_GROUPS)); in emitDeviceGroups()
373 store.startGroup(); in emitDeviceGroups()
375 emitLongArray(store, deviceGroup, KEY_DEVICES); in emitDeviceGroups()
376 emitBoolean(store, deviceGroup, KEY_SUBSET_ALLOCATION); in emitDeviceGroups()
[all …]
DSampleDeviceInfo.java31 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
39 store.startGroup("foo"); in collectDeviceInfo()
40 store.addResult("foo_boolean", Boolean.TRUE); in collectDeviceInfo()
43 store.startGroup("bar"); in collectDeviceInfo()
44 store.addListResult("bar_string", Arrays.asList(new String[] { in collectDeviceInfo()
49 store.addArrayResult("bar_boolean", booleans); in collectDeviceInfo()
50 store.addArrayResult("bar_double", doubles); in collectDeviceInfo()
51 store.addArrayResult("bar_int", ints); in collectDeviceInfo()
52 store.addArrayResult("bar_long", longs); in collectDeviceInfo()
53 store.addArrayResult("bar_float", floats); in collectDeviceInfo()
[all …]
DSensorDeviceInfo.java66 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
70 store.startArray(SENSOR); in collectDeviceInfo()
72 store.startGroup(); in collectDeviceInfo()
73 store.addResult(REPORTING_MODE, sensor.getReportingMode()); in collectDeviceInfo()
74 store.addResult(NAME, sensor.getName()); in collectDeviceInfo()
75 store.addResult(VENDOR, sensor.getVendor()); in collectDeviceInfo()
76 store.addResult(TYPE, sensor.getType()); in collectDeviceInfo()
77 store.addResult(VERSION, sensor.getVersion()); in collectDeviceInfo()
78 store.addResult(MAXIMUM_RANGE, sensor.getMaximumRange()); in collectDeviceInfo()
79 store.addResult(RESOLUTION, sensor.getResolution()); in collectDeviceInfo()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DMediaDeviceInfo.java43 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
45 store.startArray("media_codec_info"); in collectDeviceInfo()
48 store.startGroup(); in collectDeviceInfo()
49 store.addResult("name", info.getName()); in collectDeviceInfo()
51 store.addResult("canonical", info.getCanonicalName()); in collectDeviceInfo()
53 store.addResult("encoder", info.isEncoder()); in collectDeviceInfo()
55 store.addResult("alias", info.isAlias()); in collectDeviceInfo()
56 store.addResult("software", info.isSoftwareOnly()); in collectDeviceInfo()
57 store.addResult("hardware", info.isHardwareAccelerated()); in collectDeviceInfo()
58 store.addResult("vendor", info.isVendor()); in collectDeviceInfo()
[all …]
DGraphicsDeviceInfo.java35 private static void storeValue(DeviceInfoStore store, String name, float[] valueArray, in storeValue() argument
38 store.addResult(name, valueArray[0]); in storeValue()
40 store.addArrayResult(name, valueArray); in storeValue()
44 private static void storeValue(DeviceInfoStore store, String name, int[] valueArray, in storeValue() argument
47 store.addResult(name, valueArray[0]); in storeValue()
49 store.addArrayResult(name, valueArray); in storeValue()
53 private static void storeValue(DeviceInfoStore store, String name, long[] valueArray, in storeValue() argument
56 store.addResult(name, valueArray[0]); in storeValue()
58 store.addArrayResult(name, valueArray); in storeValue()
63 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
[all …]
DGenericDeviceInfo.java66 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
67 store.addResult(BUILD_ID, Build.ID); in collectDeviceInfo()
68 store.addResult(BUILD_PRODUCT, Build.PRODUCT); in collectDeviceInfo()
69 store.addResult(BUILD_DEVICE, Build.DEVICE); in collectDeviceInfo()
70 store.addResult(BUILD_BOARD, Build.BOARD); in collectDeviceInfo()
71 store.addResult(BUILD_MANUFACTURER, Build.MANUFACTURER); in collectDeviceInfo()
72 store.addResult(BUILD_BRAND, Build.BRAND); in collectDeviceInfo()
73 store.addResult(BUILD_MODEL, Build.MODEL); in collectDeviceInfo()
74 store.addResult(BUILD_TYPE, Build.TYPE); in collectDeviceInfo()
75 store.addResult(BUILD_FINGERPRINT, Build.FINGERPRINT); in collectDeviceInfo()
[all …]
DVintfDeviceInfo.java37 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
42 store.addResult("cpu_info", VintfRuntimeInfo.getCpuInfo()); in collectDeviceInfo()
43 store.addResult("os_name", VintfRuntimeInfo.getOsName()); in collectDeviceInfo()
44 store.addResult("node_name", VintfRuntimeInfo.getNodeName()); in collectDeviceInfo()
45 store.addResult("os_release", VintfRuntimeInfo.getOsRelease()); in collectDeviceInfo()
46 store.addResult("os_version", VintfRuntimeInfo.getOsVersion()); in collectDeviceInfo()
47 store.addResult("hardware_id", VintfRuntimeInfo.getHardwareId()); in collectDeviceInfo()
48 store.addResult("kernel_version", VintfRuntimeInfo.getKernelVersion()); in collectDeviceInfo()
49 store.addResult("sepolicy_version", VintfObject.getSepolicyVersion()); in collectDeviceInfo()
52 store.addListResult("hals", hals == null in collectDeviceInfo()
[all …]
DPackageDeviceInfo.java85 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
104 store.startArray(PACKAGE); in collectDeviceInfo()
106 store.startGroup(); in collectDeviceInfo()
107 store.addResult(NAME, pkg.packageName); in collectDeviceInfo()
108 store.addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo()
110 collectPermissions(store, pm, platformPermissions, pkg); in collectDeviceInfo()
111 collectionApplicationInfo(store, pm, pkg); in collectDeviceInfo()
113 store.addResult(HAS_DEFAULT_NOTIFICATION_ACCESS, in collectDeviceInfo()
116 store.addResult(IS_ACTIVE_ADMIN, deviceAdminPackages.contains(pkg.packageName)); in collectDeviceInfo()
124 store.addResult(DEFAULT_ACCESSIBILITY_SERVICE, isDefaultAccessibilityComponent); in collectDeviceInfo()
[all …]
DFeatureDeviceInfo.java38 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
41 store.startArray("feature"); in collectDeviceInfo()
58 addFeature(store, featureInfo.name, type, true, version); in collectDeviceInfo()
60 addFeature(store, featureInfo.name, type, true); in collectDeviceInfo()
69 addFeature(store, featureName, "sdk", hasFeature); in collectDeviceInfo()
72 store.endArray(); in collectDeviceInfo()
99 DeviceInfoStore store, in addFeature() argument
103 store.startGroup(); in addFeature()
104 store.addResult("name", name); in addFeature()
105 store.addResult("type", type); in addFeature()
[all …]
DClientIdDeviceInfo.java34 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
36 collectClientIds(store); in collectDeviceInfo()
42 private void collectClientIds(DeviceInfoStore store) throws IOException { in collectClientIds() argument
43 store.startArray("client_id"); in collectClientIds()
46 store.startGroup(); in collectClientIds()
47 store.addResult("name", name); in collectClientIds()
48 store.addResult("value", clientIds.get(name)); in collectClientIds()
49 store.endGroup(); in collectClientIds()
51 store.endArray(); in collectClientIds()
DScreenDeviceInfo.java43 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
50 store.addResult("width_pixels", metrics.widthPixels); in collectDeviceInfo()
51 store.addResult("height_pixels", metrics.heightPixels); in collectDeviceInfo()
52 store.addResult("x_dpi", metrics.xdpi); in collectDeviceInfo()
53 store.addResult("y_dpi", metrics.ydpi); in collectDeviceInfo()
54 store.addResult("density", metrics.density); in collectDeviceInfo()
55 store.addResult("density_dpi", metrics.densityDpi); in collectDeviceInfo()
58 store.addResult("screen_size", getScreenSize(configuration)); in collectDeviceInfo()
59 store.addResult("smallest_screen_width_dp", configuration.smallestScreenWidthDp); in collectDeviceInfo()
65 store.addResult("wm_jetpack_version", wmJetpackVersion); in collectDeviceInfo()
[all …]
DLocaleDeviceInfo.java42 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
49 store.addListResult("locale", locales); in collectDeviceInfo()
58 store.addListResult("icu_locale", icuLocales); in collectDeviceInfo()
60 collectLocaleDataFilesInfo(store); in collectDeviceInfo()
68 private void collectLocaleDataFilesInfo(DeviceInfoStore store) throws IOException { in collectLocaleDataFilesInfo() argument
70 store.startArray("icu_data_file_info"); in collectLocaleDataFilesInfo()
92 store.startGroup(); in collectLocaleDataFilesInfo()
93 store.addResult("file_path", datFile.getPath()); in collectLocaleDataFilesInfo()
95 store.addResult("file_sha256", sha256Hash); in collectLocaleDataFilesInfo()
96 store.endGroup(); in collectLocaleDataFilesInfo()
[all …]
DMemoryDeviceInfo.java32 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
35 store.addResult("low_ram_device", activityManager.isLowRamDevice()); in collectDeviceInfo()
36 store.addResult("memory_class", activityManager.getMemoryClass()); in collectDeviceInfo()
37 store.addResult("large_memory_class", activityManager.getLargeMemoryClass()); in collectDeviceInfo()
41 store.addResult("total_memory", memoryInfo.totalMem); in collectDeviceInfo()
DConfigurationDeviceInfo.java28 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
30 store.addResult("touchscreen", con.touchscreen); in collectDeviceInfo()
31 store.addResult("navigation", con.navigation); in collectDeviceInfo()
32 store.addResult("keyboard", con.keyboard); in collectDeviceInfo()
DStorageDeviceInfo.java35 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
56 store.addResult("num_physical", physical); in collectDeviceInfo()
57 store.addResult("num_emulated", emulated); in collectDeviceInfo()
59 store.addListResult("raw_partition", scanPartitions()); in collectDeviceInfo()
/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/
DTestDeviceInfo.java39 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
42 store.addResult("test_boolean", true); in collectDeviceInfo()
43 store.addResult("test_double", 1.23456789); in collectDeviceInfo()
44 store.addResult("test_int", 123456789); in collectDeviceInfo()
45 store.addResult("test_long", Long.MAX_VALUE); in collectDeviceInfo()
46 store.addResult("test_string", "test string"); in collectDeviceInfo()
51 store.addListResult("test_strings", list); in collectDeviceInfo()
54 store.startGroup("test_group"); in collectDeviceInfo()
55 store.addResult("test_boolean", false); in collectDeviceInfo()
56 store.addResult("test_double", 9.87654321); in collectDeviceInfo()
[all …]
/cts/hostsidetests/edi/src/android/edi/cts/
DClasspathDeviceInfo.java51 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
55 store.startArray("jars"); in collectDeviceInfo()
56 collectClasspathsJars(store); in collectDeviceInfo()
57 collectSharedLibraryJars(store); in collectDeviceInfo()
58 store.endArray(); in collectDeviceInfo()
61 private void collectClasspathsJars(HostInfoStore store) throws Exception { in collectClasspathsJars() argument
62 collectClasspathJarInfo(store, BOOTCLASSPATH); in collectClasspathsJars()
63 collectClasspathJarInfo(store, SYSTEMSERVERCLASSPATH); in collectClasspathsJars()
67 private void collectClasspathJarInfo(HostInfoStore store, ClasspathType classpath) in collectClasspathJarInfo() argument
71 store.startGroup(); in collectClasspathJarInfo()
[all …]
DLibraryDeviceInfo.java31 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
35 collectSystemLibs(store); in collectDeviceInfo()
36 collectVendorLibs(store); in collectDeviceInfo()
37 collectFrameworkJars(store); in collectDeviceInfo()
40 private void collectSystemLibs(HostInfoStore store) throws Exception { in collectSystemLibs() argument
41 store.startArray("lib"); in collectSystemLibs()
42 collectFileDetails(store, "/system/lib", ".so"); in collectSystemLibs()
43 store.endArray(); in collectSystemLibs()
46 private void collectVendorLibs(HostInfoStore store) throws Exception { in collectVendorLibs() argument
47 store.startArray("vendor_lib"); in collectVendorLibs()
[all …]
DPropertyDeviceInfo.java34 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
35 store.startArray("ro_property"); in collectDeviceInfo()
53 parseProps(commandResult.getStdout(), store); in collectDeviceInfo() local
55 store.endArray(); in collectDeviceInfo()
59 private void parseProps(String stdout, HostInfoStore store) throws Exception { in parseProps() argument
70 store.startGroup(); in parseProps()
71 store.addResult("name", name); in parseProps()
72 store.addResult("value", value); in parseProps()
73 store.endGroup(); in parseProps()
DProcessDeviceInfo.java29 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
32 store.addListResult("approved_root_processes", new ArrayList<String>(approved)); in collectDeviceInfo()
34 store.addListResult("unapproved_root_processes", new ArrayList<String>(unapproved)); in collectDeviceInfo()
/cts/hostsidetests/sample/src/android/sample/cts/
DSampleHostDeviceInfo.java29 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
33 store.startGroup("product"); in collectDeviceInfo()
34 store.addResult("model", getProperty("ro.product.model")); in collectDeviceInfo()
35 store.addResult("brand", getProperty("ro.product.brand")); in collectDeviceInfo()
36 store.addResult("name", getProperty("ro.product.name")); in collectDeviceInfo()
37 store.addResult("device", getProperty("ro.product.device")); in collectDeviceInfo()
38 store.addResult("board", getProperty("ro.product.board")); in collectDeviceInfo()
41 store.addListResult("abi", Arrays.asList(abi.split(","))); in collectDeviceInfo()
42 store.endGroup(); // product in collectDeviceInfo()
44 store.startGroup("version"); in collectDeviceInfo()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DProvisioningTest.java109 static Collection<X509Certificate> createCredential(IdentityCredentialStore store, in createCredential() argument
111 …return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), 0); in createCredential()
114 static Collection<X509Certificate> createCredentialWithAcpId(IdentityCredentialStore store, in createCredentialWithAcpId() argument
117 … return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), in createCredentialWithAcpId()
121 static Collection<X509Certificate> createCredentialWithChallenge(IdentityCredentialStore store, in createCredentialWithChallenge() argument
124 return createCredentialWithChallengeAndAcpId(store, credentialName, challenge, 0); in createCredentialWithChallenge()
127 …ic Collection<X509Certificate> createCredentialWithChallengeAndAcpId(IdentityCredentialStore store, in createCredentialWithChallengeAndAcpId() argument
132 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialWithChallengeAndAcpId()
290 IdentityCredentialStore store, in createCredentialMultipleNamespaces() argument
293 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialMultipleNamespaces()
[all …]
DDynamicAuthTest.java68 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthTest() local
72 store.deleteCredentialByName(credentialName); in dynamicAuthTest()
73 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthTest()
76 IdentityCredential credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
112 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
235 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
292 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
322 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
336 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
356 credential = store.getCredentialByName(credentialName, in dynamicAuthTest()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceReportLog.java40 private ReportLogDeviceInfoStore store; field in DeviceReportLog
59 store = new ReportLogDeviceInfoStore(jsonFile, mStreamName); in DeviceReportLog()
60 store.open(); in DeviceReportLog()
75 store.addResult(message, value); in addValue()
88 store.addResult(message, value); in addValue()
102 store.addArrayResult(message, values); in addValues()
115 store.addArrayResult(message, values); in addValues()
127 store.addResult(message, value); in addValue()
139 store.addResult(message, value); in addValue()
151 store.addResult(message, value); in addValue()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthentication.java111 private void provisionFoo(IdentityCredentialStore store) throws Exception { in provisionFoo() argument
112 store.deleteCredentialByName("test"); in provisionFoo()
113 WritableIdentityCredential wc = store.createCredential("test", in provisionFoo()
132 IdentityCredential credential = store.getCredentialByName("test", in provisionFoo()
171 IdentityCredentialStore store = IdentityCredentialStore.getInstance(this); in startTest() local
172 if (store == null) { in startTest()
194 provisionFoo(store); in startTest()
198 IdentityCredential credentialWithoutAuth = store.getCredentialByName("test", in startTest()
209 final IdentityCredential credentialWithAuth = store.getCredentialByName("test", in startTest()
233 IdentityCredential credentialWithoutAuth2 = store.getCredentialByName( in startTest()

12