/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0921/src/android/security/cts/CVE_2021_0921/ |
D | GenMalformedParcel.java | 17 Parcel data = Parcel.obtain(); in parsingPackageImplParcel() local 18 data.writeInterfaceToken("android.accounts.IAccountAuthenticatorResponse"); in parsingPackageImplParcel() 19 data.writeInt(1); in parsingPackageImplParcel() 20 int bundleLenPos = data.dataPosition(); in parsingPackageImplParcel() 21 data.writeInt(0); in parsingPackageImplParcel() 22 data.writeInt(0x4C444E42); in parsingPackageImplParcel() 23 int bundleStartPos = data.dataPosition(); in parsingPackageImplParcel() 24 data.writeInt(3); in parsingPackageImplParcel() 26 data.writeString("key1"); in parsingPackageImplParcel() 27 data.writeInt(4); in parsingPackageImplParcel() [all …]
|
/cts/hostsidetests/securitybulletin/test-apps/launchanywhere/src/com/android/security/cts/launchanywhere/ |
D | CVE_2017_13289.java | 25 Parcel data = Parcel.obtain(); in generate() local 27 data.writeInterfaceToken(responseName); in generate() 28 data.writeInt(1); in generate() 29 int bundleLenPos = data.dataPosition(); in generate() 30 data.writeInt(0xffffffff); in generate() 31 data.writeInt(0x4C444E42); in generate() 32 int bundleStartPos = data.dataPosition(); in generate() 33 data.writeInt(2); in generate() 35 data.writeString("launchanywhere"); in generate() 36 data.writeInt(4); in generate() [all …]
|
D | CVE_2017_13286.java | 27 Parcel data = Parcel.obtain(); in generate() local 28 data.writeInterfaceToken("android.accounts." + in generate() 30 data.writeInt(1); in generate() 31 int bundleLenPos = data.dataPosition(); in generate() 32 data.writeInt(0xffffffff); in generate() 33 data.writeInt(0x4C444E42); in generate() 34 int bundleStartPos = data.dataPosition(); in generate() 35 data.writeInt(3); in generate() 37 data.writeString("launchanywhere"); in generate() 38 data.writeInt(4); in generate() [all …]
|
D | CVE_2017_13315.java | 25 Parcel data = Parcel.obtain(); in generate() local 26 data.writeInterfaceToken("android.accounts.IAccountAuthenticatorResponse"); in generate() 27 data.writeInt(1); in generate() 28 int bundleLenPos = data.dataPosition(); in generate() 29 data.writeInt(0xffffffff); in generate() 30 data.writeInt(0x4C444E42); in generate() 31 int bundleStartPos = data.dataPosition(); in generate() 32 data.writeInt(3); in generate() 34 data.writeString("launchanywhere"); in generate() 35 data.writeInt(4); in generate() [all …]
|
D | CVE_2017_13312.java | 25 Parcel data = Parcel.obtain(); in generate() local 26 data.writeInterfaceToken("android.accounts.IAccountAuthenticatorResponse"); in generate() 27 data.writeInt(1); in generate() 28 int bundleLenPos = data.dataPosition(); in generate() 29 data.writeInt(0xffffffff); in generate() 30 data.writeInt(0x4C444E42); in generate() 31 int bundleStartPos = data.dataPosition(); in generate() 32 data.writeInt(3); in generate() 40 data.writeString("xjoa8h2"); in generate() 41 data.writeInt(4); in generate() [all …]
|
D | CVE_2017_13288.java | 26 Parcel data = Parcel.obtain(); in generate() local 27 data.writeInterfaceToken("android.accounts." + in generate() 29 data.writeInt(1); in generate() 30 int bundleLenPos = data.dataPosition(); in generate() 31 data.writeInt(0xffffffff); in generate() 32 data.writeInt(0x4C444E42); in generate() 33 int bundleStartPos = data.dataPosition(); in generate() 34 data.writeInt(2); in generate() 36 data.writeString("launchanywhere"); in generate() 37 data.writeInt(4); in generate() [all …]
|
/cts/tests/tests/opengl/libopengltest/ |
D | gl2_jni_libone.cpp | 54 Data data = attachShaderOne(); in Java_android_opengl_cts_GL2JniLibOne_init() local 55 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() 56 LOGI("Shader Count : %d\n", data.mShaderCount); in Java_android_opengl_cts_GL2JniLibOne_init() 57 errorAttachShader = data.mShaderError; in Java_android_opengl_cts_GL2JniLibOne_init() 58 shaderCount = data.mShaderCount; in Java_android_opengl_cts_GL2JniLibOne_init() 60 Data data = attachShaderTwo(); in Java_android_opengl_cts_GL2JniLibOne_init() local 61 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() 62 errorAttachShader = data.mShaderError; in Java_android_opengl_cts_GL2JniLibOne_init() 64 Data data = attachShaderThree(); in Java_android_opengl_cts_GL2JniLibOne_init() local 65 LOGI("Attach Shader Error : %d\n", data.mShaderError); in Java_android_opengl_cts_GL2JniLibOne_init() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/ |
D | poc.cpp | 53 Parcel data, reply; in make_crypto() local 55 data.writeInterfaceToken(String16("android.media.IMediaDrmService")); in make_crypto() 57 drm_binder->transact(MAKE_CRYPTO, data, &reply, 0); in make_crypto() 64 Parcel data, reply; in create_plugin() local 66 data.writeInterfaceToken(String16("android.hardware.ICrypto")); in create_plugin() 70 data.write(uuid, 16); in create_plugin() 72 data.writeInt32(0); in create_plugin() 74 crypto_binder->transact(CREATE_PLUGIN, data, &reply, 0); in create_plugin() 79 Parcel data, reply; in set_heap() local 81 data.writeInterfaceToken(String16("android.hardware.ICrypto")); in set_heap() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 34 Parcel data, reply; in poc() local 35 data.writeInterfaceToken(service->getInterfaceDescriptor()); in poc() 36 data.writeString8(String8("com.android.systemui.doze.DozeScreenBrightness")); in poc() 37 data.writeInt32(0 /*mode*/); in poc() 38 data.writeString16(String16("com.android.systemui")); in poc() 39 err = service->transact(2 /*CREATE_SENSOR_EVENT_CONNECTION*/, data, &reply, 0); in poc() 46 Parcel data, reply; in poc() local 47 data.writeInterfaceToken(binder->getInterfaceDescriptor()); in poc() 48 data.writeInt32(handle); // handle in poc() 49 data.writeInt32(1); // enabled in poc() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsStreamMediaProfileTest.java | 42 ImsStreamMediaProfile data = new ImsStreamMediaProfile( in testParcelUnparcel() local 49 ImsStreamMediaProfile unparceledData = (ImsStreamMediaProfile) parcelUnparcel(data); in testParcelUnparcel() 51 assertEquals(data.getAudioDirection(), unparceledData.getAudioDirection()); in testParcelUnparcel() 52 assertEquals(data.getAudioQuality(), unparceledData.getAudioQuality()); in testParcelUnparcel() 53 assertEquals(data.getRttMode(), unparceledData.getRttMode()); in testParcelUnparcel() 54 assertEquals(data.getVideoDirection(), unparceledData.getVideoDirection()); in testParcelUnparcel() 55 assertEquals(data.getVideoQuality(), unparceledData.getVideoQuality()); in testParcelUnparcel() 65 ImsStreamMediaProfile data = new ImsStreamMediaProfile( in testParcelUnparcelForAudioCodecAttributes() local 71 data.setAudioCodecAttributes( in testParcelUnparcelForAudioCodecAttributes() 75 ImsStreamMediaProfile unparceledData = (ImsStreamMediaProfile) parcelUnparcel(data); in testParcelUnparcelForAudioCodecAttributes() [all …]
|
D | ImsCallProfileTest.java | 63 ImsCallProfile data = new ImsCallProfile(ImsCallProfile.SERVICE_TYPE_NORMAL, in testParcelUnparcel() local 65 data.setCallerNumberVerificationStatus(ImsCallProfile.VERIFICATION_STATUS_PASSED); in testParcelUnparcel() 66 data.setEmergencyServiceCategories(EmergencyNumber.EMERGENCY_SERVICE_CATEGORY_POLICE in testParcelUnparcel() 70 data.setEmergencyUrns(testUrns); in testParcelUnparcel() 71 data.setEmergencyCallRouting(EmergencyNumber.EMERGENCY_CALL_ROUTING_NORMAL); in testParcelUnparcel() 72 data.setEmergencyCallTesting(true); in testParcelUnparcel() 73 data.setHasKnownUserIntentEmergency(true); in testParcelUnparcel() 76 data.writeToParcel(dataParceled, 0); in testParcelUnparcel() 82 assertEquals(data.getServiceType(), unparceledData.getServiceType()); in testParcelUnparcel() 83 assertEquals(data.getCallType(), unparceledData.getCallType()); in testParcelUnparcel() [all …]
|
D | ImsSsDataTest.java | 52 ImsSsData data = new ImsSsData(serviceType, requestType, teleserviceType, serviceClass, in testParcelUnparcel() local 56 data.writeToParcel(parcel, 0); in testParcelUnparcel() 70 ImsSsData data = new ImsSsData(serviceType, ImsSsData.SS_DEACTIVATION, in testServiceTypeCF() local 73 ImsSsData unparceledData = (ImsSsData) parcelUnparcel(data); in testServiceTypeCF() 85 ImsSsData data = new ImsSsData(serviceType, ImsSsData.SS_DEACTIVATION, in testServiceTypeCW() local 88 ImsSsData unparceledData = (ImsSsData) parcelUnparcel(data); in testServiceTypeCW() 99 ImsSsData data = new ImsSsData(serviceType, ImsSsData.SS_DEACTIVATION, in testServiceTypeColr() local 102 ImsSsData unparceledData = (ImsSsData) parcelUnparcel(data); in testServiceTypeColr() 113 ImsSsData data = new ImsSsData(serviceType, ImsSsData.SS_DEACTIVATION, in testServiceTypeColp() local 116 ImsSsData unparceledData = (ImsSsData) parcelUnparcel(data); in testServiceTypeColp() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanRecordTest.java | 44 ScanRecord data = TestUtils.parseScanRecord(scanRecord); in testParser() local 45 assertEquals(0x1a, data.getAdvertiseFlags()); in testParser() 50 assertTrue(data.getServiceUuids().contains(uuid1)); in testParser() 51 assertTrue(data.getServiceUuids().contains(uuid2)); in testParser() 52 assertFalse(data.getServiceUuids().contains(uuid3)); in testParser() 53 assertFalse(data.getServiceUuids().contains(uuid4)); in testParser() 54 assertFalse(data.getServiceSolicitationUuids().contains(uuid1)); in testParser() 55 assertFalse(data.getServiceSolicitationUuids().contains(uuid2)); in testParser() 56 assertTrue(data.getServiceSolicitationUuids().contains(uuid3)); in testParser() 57 assertTrue(data.getServiceSolicitationUuids().contains(uuid4)); in testParser() [all …]
|
D | TransportBlockTest.java | 39 TransportBlock data = new TransportBlock(1, 0, 2, new byte[] { in testInit() local 41 data.writeToParcel(parcel, 0); in testInit() 45 assertEquals(data, dataFromParcel); in testInit() 51 TransportBlock data = new TransportBlock(1, 0, 0, null); in testInitEmpty() local 52 data.writeToParcel(parcel, 0); in testInitEmpty() 56 assertEquals(data, dataFromParcel); in testInitEmpty() 62 TransportBlock data = new TransportBlock(1, 0, 2, new byte[] { in testTotalBytes() local 64 data.writeToParcel(parcel, 0); in testTotalBytes() 68 assertEquals(data.totalBytes(), 5); in testTotalBytes() 70 assertEquals(data, dataFromParcel); in testTotalBytes() [all …]
|
D | TransportDiscoveryDataTest.java | 43 TransportDiscoveryData data = new TransportDiscoveryData(1, transportBlocks); in testInitList() local 44 data.writeToParcel(parcel, 0); in testInitList() 48 assertEquals(data, dataFromParcel); in testInitList() 55 TransportDiscoveryData data = new TransportDiscoveryData(new byte[] { in testInitByteArray() local 57 data.writeToParcel(parcel, 0); in testInitByteArray() 61 assertEquals(data, dataFromParcel); in testInitByteArray() 67 TransportDiscoveryData data = new TransportDiscoveryData(new byte[] { in testGetValues() local 69 data.writeToParcel(parcel, 0); in testGetValues() 73 assertEquals(data.getTransportBlocks().size(), 1); in testGetValues() 75 assertEquals(data.getTransportBlocks().get(0), dataFromParcel.getTransportBlocks().get(0)); in testGetValues() [all …]
|
D | AdvertiseDataTest.java | 48 AdvertiseData data = mAdvertiseDataBuilder.build(); in testEmptyData() local 49 data.writeToParcel(parcel, 0); in testEmptyData() 53 assertEquals(data, dataFromParcel); in testEmptyData() 64 AdvertiseData data = mAdvertiseDataBuilder.setIncludeDeviceName(true).build(); in testEmptyServiceUuid() local 65 data.writeToParcel(parcel, 0); in testEmptyServiceUuid() 69 assertEquals(data, dataFromParcel); in testEmptyServiceUuid() 79 AdvertiseData data = in testEmptyManufacturerData() local 82 data.writeToParcel(parcel, 0); in testEmptyManufacturerData() 86 assertEquals(data, dataFromParcel); in testEmptyManufacturerData() 95 AdvertiseData data = in testEmptyServiceData() local [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 24 public static double mean(double[] data) { in mean() argument 26 return mean.evaluate(data); in mean() 32 public static double std(double[] data) { in std() argument 34 return std.evaluate(data); in std() 40 public static double median(double[] data) { in median() argument 42 median.setData(data); in median() 50 public static Complex[] padZeros(Complex[] data, int length) { in padZeros() argument 52 if (length < data.length) { in padZeros() 53 System.arraycopy(data, 0, result, 0, length); in padZeros() 55 System.arraycopy(data, 0, result, 0, data.length); in padZeros() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0386/ |
D | poc.c | 36 char *data = NULL; in main() local 53 data = malloc(payloadlength); in main() 54 if (data == NULL) { in main() 60 memset(data, 0x41, payloadlength); in main() 61 nla_put(message, 0x4444, payloadlength, data); in main() 66 free(data); in main() 67 data = NULL; in main() 70 data = malloc(payload2length); in main() 71 if (data == NULL) { in main() 76 memset(data, 0x33, payload2length); in main() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 71 final AtomsProto.DataUsageBytesTransfer data = in testDataUsageBytesTransfer() 74 (data.getRatType() > NetworkTypeEnum.NETWORK_TYPE_UNKNOWN_VALUE); in testDataUsageBytesTransfer() 78 assertSubscriptionInfo(data); in testDataUsageBytesTransfer() 80 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testDataUsageBytesTransfer() 81 data.getRxPackets(), data.getTxPackets(), /*appUid=*/-1); in testDataUsageBytesTransfer() 91 final AtomsProto.MobileBytesTransfer data = atom.getMobileBytesTransfer(); in testMobileBytesTransfer() 92 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testMobileBytesTransfer() 93 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransfer() 103 final AtomsProto.MobileBytesTransferByFgBg data = in testMobileBytesTransferByFgBg() 105 if (!data.getIsForeground()) { in testMobileBytesTransferByFgBg() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/ |
D | VectorAverage.java | 33 public void setData(double[] data, boolean replace) { in setData() argument 34 int size = data.length; in setData() 40 System.arraycopy(data, 0, mData, 0, size); in setData() 47 mData[i] += data[i]; in setData() 54 if (data[i] > mData[i]) { in setData() 55 mData[i] = data[i]; in setData() 63 if (data[i] < mData[i]) { in setData() 64 mData[i] = data[i]; in setData() 74 public int getData(double[] data, boolean raw) { in getData() argument 76 if (mData != null && mData.length <= data.length) { in getData() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MemoryFileTest.java | 40 byte[] data = new byte[512]; in testWriteBytes() 43 mMemoryFile.writeBytes(data, 0, 0, 512); in testWriteBytes() 56 byte[] data = new byte[512]; in checkWriteBytesInIllegalParameter() 57 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter() 84 byte[] data = new byte[512]; in testAllowPurging() 86 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 93 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 115 byte[] data = new byte[] { 1, 2, 3, 4 }; in testReadBytes() 116 mMemoryFile.writeBytes(data, 0, 0, data.length); in testReadBytes() 139 byte[] data = new byte[512]; in checkReadBytesInIllegalParameter() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | NanoAppBundleTest.java | 334 Parcel data = Parcel.obtain(); in nanoAppFilterParcel() local 335 int bundleLenPos = data.dataPosition(); in nanoAppFilterParcel() 336 data.writeInt(0xffffffff); in nanoAppFilterParcel() 337 data.writeInt(0x4C444E42); in nanoAppFilterParcel() 338 int bundleStartPos = data.dataPosition(); in nanoAppFilterParcel() 339 data.writeInt(3); in nanoAppFilterParcel() 341 data.writeString(SECURITY_CTS_PACKAGE_NAME); in nanoAppFilterParcel() 342 data.writeInt(4); in nanoAppFilterParcel() 343 data.writeString("android.hardware.location.NanoAppFilter"); in nanoAppFilterParcel() 344 data.writeLong(0); in nanoAppFilterParcel() [all …]
|
D | AndroidFutureTest.java | 52 Parcel data = Parcel.obtain(); in createBundle() local 53 data.writeInt(1); in createBundle() 54 data.writeString("a"); in createBundle() 55 data.writeInt(4); in createBundle() 56 data.writeString("com.android.internal.infra.AndroidFuture"); in createBundle() 57 data.writeBoolean(true); in createBundle() 58 data.writeBoolean(true); in createBundle() 59 data.writeBoolean(true); in createBundle() 60 data.writeBoolean(false); in createBundle() 61 data.writeString(className); in createBundle() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/ |
D | poc.cpp | 33 Parcel data, reply; in thread_getParameter() local 34 data.writeInterfaceToken(params->service->getInterfaceDescriptor()); in thread_getParameter() 36 data.writeInt32(key); in thread_getParameter() 37 err = params->service->transact(/*GET_PARAMETER_ID*/ 31, data, &reply, 0); in thread_getParameter() 57 Parcel data, reply; in main() local 58 data.writeInterfaceToken(interface_name); in main() 59 data.writeStrongBinder(new BBinder()); in main() 61 data.writeInt32(1); in main() 63 err = service->transact(/*CREATE_ID*/ 1, data, &reply, 0); in main() 83 Parcel data, reply; in main() local [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentFilterTest.java | 364 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testDataSchemes() 365 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme1:foo"), in testDataSchemes() 366 MatchCondition.data(IntentFilter.NO_MATCH_DATA, "scheme2:foo")); in testDataSchemes() 370 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testDataSchemes() 371 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme1:foo"), in testDataSchemes() 372 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme2:foo"), in testDataSchemes() 373 MatchCondition.data(IntentFilter.NO_MATCH_DATA, "scheme3:foo")); in testDataSchemes() 388 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testSchemeSpecificParts() 389 MatchCondition.data(MATCH_CATEGORY_SCHEME_SPECIFIC_PART, "scheme:ssp1"), in testSchemeSpecificParts() 390 MatchCondition.data(MATCH_CATEGORY_SCHEME_SPECIFIC_PART, "scheme:2ssp"), in testSchemeSpecificParts() [all …]
|