Home
last modified time | relevance | path

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

123

/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/
DVulkanDeviceInfo.java519 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
522 emitDeviceGroups(store, instance); in collectDeviceInfo()
523 emitLayers(store, instance); in collectDeviceInfo()
524 emitExtensions(store, instance); in collectDeviceInfo()
525 emitDevices(store, instance); in collectDeviceInfo()
529 emitInstanceApiVersion(store, instance); in collectDeviceInfo()
537 private static void emitDeviceGroups(DeviceInfoStore store, JSONObject parent) in emitDeviceGroups() argument
540 store.startArray(convertName(KEY_DEVICE_GROUPS)); in emitDeviceGroups()
543 store.startGroup(); in emitDeviceGroups()
545 emitLongArray(store, deviceGroup, KEY_DEVICES); 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 …]
DDisplayDeviceInfo.java39 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
42 store.startArray(HDR_CAPABILITIES); in collectDeviceInfo()
51 store.startGroup(); in collectDeviceInfo()
56 store.addArrayResult(SUPPORTED_HDR_TYPES, hdrTypes); in collectDeviceInfo()
60 store.addResult(MAX_LUMINANCE, hdrCapabilities.getDesiredMaxLuminance()); in collectDeviceInfo()
61 store.addResult(MAX_AVERAGE_LUMINANCE, in collectDeviceInfo()
63 store.addResult(MIN_LUMINANCE, hdrCapabilities.getDesiredMinLuminance()); in collectDeviceInfo()
65 store.endGroup(); in collectDeviceInfo()
68 store.endArray(); // HDR_CAPABILITIES in collectDeviceInfo()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DMediaDeviceInfo.java40 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
42 store.startArray("media_codec_info"); in collectDeviceInfo()
45 store.startGroup(); in collectDeviceInfo()
46 store.addResult("name", info.getName()); in collectDeviceInfo()
48 store.addResult("canonical", info.getCanonicalName()); in collectDeviceInfo()
50 store.addResult("encoder", info.isEncoder()); in collectDeviceInfo()
52 store.addResult("alias", info.isAlias()); in collectDeviceInfo()
53 store.addResult("software", info.isSoftwareOnly()); in collectDeviceInfo()
54 store.addResult("hardware", info.isHardwareAccelerated()); in collectDeviceInfo()
55 store.addResult("vendor", info.isVendor()); in collectDeviceInfo()
[all …]
DHapticsDeviceInfo.java44 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
45 collectVibratorInfo(store, "system_vibrator", in collectDeviceInfo()
50 store.startArray("manager_vibrators"); in collectDeviceInfo()
52 collectVibratorInfo(store, ANONYMOUS_GROUP_NAME, manager.getVibrator(id)); in collectDeviceInfo()
54 store.endArray(); in collectDeviceInfo()
57 collectHapticsDeviceConfig(store); in collectDeviceInfo()
60 store.addResult("audio_manager_is_haptic_playback_supported", in collectDeviceInfo()
64 store.addResult("haptic_generator_is_available", HapticGenerator.isAvailable()); in collectDeviceInfo()
72 private void collectVibratorInfo(DeviceInfoStore store, String groupName, Vibrator vibrator) in collectVibratorInfo() argument
76 store.startGroup(); // Within an array. in collectVibratorInfo()
[all …]
DPermissionDeviceInfo.java41 protected void collectDeviceInfo(@NonNull DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
43 collectSignaturePermissionAllowlists(store); in collectDeviceInfo()
47 private static void collectSignaturePermissionAllowlists(@NonNull DeviceInfoStore store) in collectSignaturePermissionAllowlists() argument
49 store.startArray(SIGNATURE_PERMISSION_ALLOWLISTS); in collectSignaturePermissionAllowlists()
50 collectSignaturePermissionAllowlist(store, "system"); in collectSignaturePermissionAllowlists()
51 collectSignaturePermissionAllowlist(store, "vendor"); in collectSignaturePermissionAllowlists()
52 collectSignaturePermissionAllowlist(store, "product"); in collectSignaturePermissionAllowlists()
53 collectSignaturePermissionAllowlist(store, "system-ext"); in collectSignaturePermissionAllowlists()
54 collectSignaturePermissionAllowlist(store, "apex"); in collectSignaturePermissionAllowlists()
55 store.endArray(); // "signature_permission_allowlists" in collectSignaturePermissionAllowlists()
[all …]
DGnssDeviceInfo.java45 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
50 store.addResult("gnss_hardware_model_name", UNKNOWN_GNSS_NAME); in collectDeviceInfo()
53 collectGnssHardwareModelName(store, locationManager); in collectDeviceInfo()
55 collectGnssCapabilities(store, locationManager.getGnssCapabilities()); in collectDeviceInfo()
57 collectAccumulatedDeltaRangeMeasurements(store, locationManager); in collectDeviceInfo()
65 DeviceInfoStore store, LocationManager locationManager) throws IOException { in collectGnssHardwareModelName() argument
67 store.addResult("gnss_hardware_model_name", NO_GNSS_HARDWARE); in collectGnssHardwareModelName()
75 store.addResult("gnss_hardware_model_name", UNKNOWN_GNSS_NAME); in collectGnssHardwareModelName()
78 store.addResult("gnss_hardware_model_name", gnssHardwareModelName); in collectGnssHardwareModelName()
82 private void collectGnssCapabilities(DeviceInfoStore store, GnssCapabilities gnssCapabilities) in collectGnssCapabilities() argument
[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 …]
DPackageDeviceInfo.java123 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
144 store.startArray(PACKAGE); in collectDeviceInfo()
146 store.startGroup(); in collectDeviceInfo()
147 store.addResult(NAME, pkg.packageName); in collectDeviceInfo()
148 store.addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo()
150 collectRequestedPermissions(store, pm, platformPermissions, pkg); in collectDeviceInfo()
151 collectDefinedPermissions(store, platformPermissions, pkg); in collectDeviceInfo()
153 collectionApplicationInfo(store, pm, pkg); in collectDeviceInfo()
155 store.addResult(HAS_DEFAULT_NOTIFICATION_ACCESS, in collectDeviceInfo()
158 store.addResult(IS_ACTIVE_ADMIN, deviceAdminPackages.contains(pkg.packageName)); 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 …]
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 …]
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 …]
DScreenDeviceInfo.java53 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
61 store.addResult("width_pixels", metrics.widthPixels); in collectDeviceInfo()
62 store.addResult("height_pixels", metrics.heightPixels); in collectDeviceInfo()
63 store.addResult("x_dpi", metrics.xdpi); in collectDeviceInfo()
64 store.addResult("y_dpi", metrics.ydpi); in collectDeviceInfo()
65 store.addResult("density", metrics.density); in collectDeviceInfo()
66 store.addResult("density_dpi", metrics.densityDpi); in collectDeviceInfo()
69 store.addResult("screen_size", getScreenSize(configuration)); in collectDeviceInfo()
70 store.addResult("smallest_screen_width_dp", configuration.smallestScreenWidthDp); in collectDeviceInfo()
73 addDisplayFeaturesIfPresent(store); in collectDeviceInfo()
[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()
DBiometricsDeviceInfo.java106 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument
131 store.startArray(BIOMETRIC_PROPERTIES); in collectDeviceInfo()
134 store.startGroup(); in collectDeviceInfo()
135 store.addResult(SENSOR_ID, props.getSensorId()); in collectDeviceInfo()
136 store.addResult(SENSOR_MODALITY, in collectDeviceInfo()
138 store.addResult(STRENGTH, propertyStrengthToSensorStrength(props.getSensorStrength())); in collectDeviceInfo()
139 store.addResult(CURRENT_STRENGTH, in collectDeviceInfo()
141 store.startArray(COMPONENT_INFO); in collectDeviceInfo()
143 store.startGroup(); in collectDeviceInfo()
144 store.addResult(COMPONENT_INFO_COMPONENT_ID, info.getComponentId()); in collectDeviceInfo()
[all …]
DInputDeviceInfo.kt32 override fun collectDeviceInfo(store: DeviceInfoStore) { in collectDeviceInfo()
33 collectInputInfo(store, "input") in collectDeviceInfo()
46 private fun collectInputInfo(store: DeviceInfoStore, groupName: String) { in collectInputInfo()
47 store.startGroup(groupName) in collectInputInfo()
51 store.addResult("palm_rejection_enabled", palmRejectionEnabled) in collectInputInfo()
56 store.addResult("velocitytracker_strategy", velocityTrackerStrategyValue) in collectInputInfo()
58 store.endGroup() in collectInputInfo()
/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/
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 …]
DNativeDeviceInfo.java32 private void collectMemCG(ITestDevice device, HostInfoStore store) throws Exception { in collectMemCG() argument
35 store.startGroup("memcg"); in collectMemCG()
39 store.addResult("enabled", memcg_enabled); in collectMemCG()
40 if (memcg_enabled) store.addResult("version", tokens[1].equals("0") ? "2" : "1"); in collectMemCG()
42 store.addResult("version", -3); in collectMemCG()
44 store.addResult("version", -1); in collectMemCG()
46 store.addResult("version", -2); in collectMemCG()
48 store.endGroup(); in collectMemCG()
51 private void collectMGLRU(ITestDevice device, HostInfoStore store) throws Exception { in collectMGLRU() argument
56 store.addResult("mglru_enabled", Integer.decode(commandResult.getStdout().trim())); in collectMGLRU()
[all …]
DPropertyDeviceInfo.java34 protected void collectDeviceInfo(HostInfoStore store) throws Exception { in collectDeviceInfo() argument
35 store.startArray("ro_property"); in collectDeviceInfo()
52 parseProps(commandResult.getStdout(), store); in collectDeviceInfo() local
54 store.endArray(); in collectDeviceInfo()
58 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()
/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/hostsidetests/classpath/src/android/classpath/cts/
DClasspathDeviceInfo.java91 HostInfoStore store = new HostInfoStore(jsonFile); in testCollectClasspathDeviceInfo() local
92 store.open(); in testCollectClasspathDeviceInfo()
93 store.startArray("jars"); in testCollectClasspathDeviceInfo()
94 collectClasspathsJars(store); in testCollectClasspathDeviceInfo()
95 collectSharedLibraries(store); in testCollectClasspathDeviceInfo()
96 store.endArray(); in testCollectClasspathDeviceInfo()
97 store.close(); in testCollectClasspathDeviceInfo()
120 private void collectClasspathsJars(HostInfoStore store) throws Exception { in collectClasspathsJars() argument
121 collectClasspathJarInfo(store, BOOTCLASSPATH); in collectClasspathsJars()
122 collectClasspathJarInfo(store, SYSTEMSERVERCLASSPATH); in collectClasspathsJars()
[all …]
/cts/tests/tests/identity/src/android/security/identity/cts/
DProvisioningTest.java119 static Collection<X509Certificate> createCredential(IdentityCredentialStore store, in createCredential() argument
121 …return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), 0); in createCredential()
124 static Collection<X509Certificate> createCredentialWithAcpId(IdentityCredentialStore store, in createCredentialWithAcpId() argument
127 … return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), in createCredentialWithAcpId()
131 static Collection<X509Certificate> createCredentialWithChallenge(IdentityCredentialStore store, in createCredentialWithChallenge() argument
134 return createCredentialWithChallengeAndAcpId(store, credentialName, challenge, 0); in createCredentialWithChallenge()
137 …ic Collection<X509Certificate> createCredentialWithChallengeAndAcpId(IdentityCredentialStore store, in createCredentialWithChallengeAndAcpId() argument
142 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialWithChallengeAndAcpId()
300 IdentityCredentialStore store, in createCredentialMultipleNamespaces() argument
303 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialMultipleNamespaces()
[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 …]

123