/cts/tools/cts-device-info/src/com/android/cts/deviceinfo/ |
D | VulkanDeviceInfo.java | 354 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 …]
|
D | SampleDeviceInfo.java | 31 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 …]
|
D | SensorDeviceInfo.java | 66 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/ |
D | MediaDeviceInfo.java | 43 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 …]
|
D | GenericDeviceInfo.java | 66 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 …]
|
D | PackageDeviceInfo.java | 77 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument 89 store.startArray(PACKAGE); in collectDeviceInfo() 91 store.startGroup(); in collectDeviceInfo() 92 store.addResult(NAME, pkg.packageName); in collectDeviceInfo() 93 store.addResult(VERSION_NAME, pkg.versionName); in collectDeviceInfo() 95 collectPermissions(store, pm, pkg); in collectDeviceInfo() 96 collectionApplicationInfo(store, pm, pkg); in collectDeviceInfo() 98 store.addResult(HAS_DEFAULT_NOTIFICATION_ACCESS, in collectDeviceInfo() 101 store.addResult(IS_ACTIVE_ADMIN, deviceAdminPackages.contains(pkg.packageName)); in collectDeviceInfo() 109 store.addResult(DEFAULT_ACCESSIBILITY_SERVICE, isDefaultAccessibilityComponent); in collectDeviceInfo() [all …]
|
D | GraphicsDeviceInfo.java | 35 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 …]
|
D | VintfDeviceInfo.java | 36 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument 41 store.addResult("cpu_info", VintfRuntimeInfo.getCpuInfo()); in collectDeviceInfo() 42 store.addResult("os_name", VintfRuntimeInfo.getOsName()); in collectDeviceInfo() 43 store.addResult("node_name", VintfRuntimeInfo.getNodeName()); in collectDeviceInfo() 44 store.addResult("os_release", VintfRuntimeInfo.getOsRelease()); in collectDeviceInfo() 45 store.addResult("os_version", VintfRuntimeInfo.getOsVersion()); in collectDeviceInfo() 46 store.addResult("hardware_id", VintfRuntimeInfo.getHardwareId()); in collectDeviceInfo() 47 store.addResult("kernel_version", VintfRuntimeInfo.getKernelVersion()); in collectDeviceInfo() 48 store.addResult("sepolicy_version", VintfObject.getSepolicyVersion()); in collectDeviceInfo() 51 store.addListResult("hals", hals == null in collectDeviceInfo() [all …]
|
D | FeatureDeviceInfo.java | 38 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 …]
|
D | ClientIdDeviceInfo.java | 34 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()
|
D | PropertyDeviceInfo.java | 36 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument 38 collectRoProperties(store); in collectDeviceInfo() 44 private void collectRoProperties(DeviceInfoStore store) throws IOException { in collectRoProperties() argument 45 store.startArray("ro_property"); in collectRoProperties() 58 store.startGroup(); in collectRoProperties() 59 store.addResult("name", name); in collectRoProperties() 60 store.addResult("value", value); in collectRoProperties() 61 store.endGroup(); in collectRoProperties() 65 store.endArray(); in collectRoProperties()
|
D | ScreenDeviceInfo.java | 32 protected void collectDeviceInfo(DeviceInfoStore store) throws Exception { in collectDeviceInfo() argument 39 store.addResult("width_pixels", metrics.widthPixels); in collectDeviceInfo() 40 store.addResult("height_pixels", metrics.heightPixels); in collectDeviceInfo() 41 store.addResult("x_dpi", metrics.xdpi); in collectDeviceInfo() 42 store.addResult("y_dpi", metrics.ydpi); in collectDeviceInfo() 43 store.addResult("density", metrics.density); in collectDeviceInfo() 44 store.addResult("density_dpi", metrics.densityDpi); in collectDeviceInfo() 47 store.addResult("screen_size", getScreenSize(configuration)); in collectDeviceInfo() 48 store.addResult("smallest_screen_width_dp", configuration.smallestScreenWidthDp); in collectDeviceInfo()
|
D | LocaleDeviceInfo.java | 42 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 …]
|
D | MemoryDeviceInfo.java | 32 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()
|
D | ConfigurationDeviceInfo.java | 28 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()
|
D | StorageDeviceInfo.java | 35 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/ |
D | TestDeviceInfo.java | 39 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/ |
D | LibraryDeviceInfo.java | 31 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 …]
|
D | ProcessDeviceInfo.java | 29 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/ |
D | SampleHostDeviceInfo.java | 29 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/ |
D | ProvisioningTest.java | 108 static Collection<X509Certificate> createCredential(IdentityCredentialStore store, in createCredential() argument 110 …return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), 0); in createCredential() 113 static Collection<X509Certificate> createCredentialWithAcpId(IdentityCredentialStore store, in createCredentialWithAcpId() argument 116 … return createCredentialWithChallengeAndAcpId(store, credentialName, "SomeChallenge".getBytes(), in createCredentialWithAcpId() 120 static Collection<X509Certificate> createCredentialWithChallenge(IdentityCredentialStore store, in createCredentialWithChallenge() argument 123 return createCredentialWithChallengeAndAcpId(store, credentialName, challenge, 0); in createCredentialWithChallenge() 126 …ic Collection<X509Certificate> createCredentialWithChallengeAndAcpId(IdentityCredentialStore store, in createCredentialWithChallengeAndAcpId() argument 131 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialWithChallengeAndAcpId() 289 IdentityCredentialStore store, in createCredentialMultipleNamespaces() argument 292 wc = store.createCredential(credentialName, "org.iso.18013-5.2019.mdl"); in createCredentialMultipleNamespaces() [all …]
|
D | DynamicAuthTest.java | 66 IdentityCredentialStore store = IdentityCredentialStore.getInstance(appContext); in dynamicAuthTest() local 70 store.deleteCredentialByName(credentialName); in dynamicAuthTest() 71 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthTest() 74 IdentityCredential credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 110 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 233 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 290 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 320 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 334 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() 354 credential = store.getCredentialByName(credentialName, in dynamicAuthTest() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | DeviceReportLog.java | 40 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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | DeviceReportLog.java | 40 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/ |
D | IdentityCredentialAuthentication.java | 155 private void provisionFoo(IdentityCredentialStore store) throws Exception { in provisionFoo() argument 156 store.deleteCredentialByName("test"); in provisionFoo() 157 WritableIdentityCredential wc = store.createCredential("test", in provisionFoo() 176 IdentityCredential credential = store.getCredentialByName("test", in provisionFoo() 214 IdentityCredentialStore store = IdentityCredentialStore.getInstance(this); in startTest() local 215 if (store == null) { in startTest() 223 provisionFoo(store); in startTest() 227 IdentityCredential credentialWithoutAuth = store.getCredentialByName("test", in startTest() 237 final IdentityCredential credentialWithAuth = store.getCredentialByName("test", in startTest() 278 … IdentityCredential credentialWithoutAuth2 = store.getCredentialByName("test", in startTest()
|