/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 …]
|
/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/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 | 45 char *data = NULL; in main() local 62 data = malloc(payloadlength); in main() 63 if (data == NULL) { in main() 69 memset(data, 0x41, payloadlength); in main() 70 nla_put(message, 0x4444, payloadlength, data); in main() 75 free(data); in main() 76 data = NULL; in main() 79 data = malloc(payload2length); in main() 80 if (data == NULL) { in main() 85 memset(data, 0x33, payload2length); in main() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanRecordTest.java | 71 ScanRecord data = TestUtils.parseScanRecord(scanRecord); in parser() local 72 assertEquals(0x1a, data.getAdvertiseFlags()); in parser() 77 assertTrue(data.getServiceUuids().contains(uuid1)); in parser() 78 assertTrue(data.getServiceUuids().contains(uuid2)); in parser() 79 assertFalse(data.getServiceUuids().contains(uuid3)); in parser() 80 assertFalse(data.getServiceUuids().contains(uuid4)); in parser() 81 assertFalse(data.getServiceSolicitationUuids().contains(uuid1)); in parser() 82 assertFalse(data.getServiceSolicitationUuids().contains(uuid2)); in parser() 83 assertTrue(data.getServiceSolicitationUuids().contains(uuid3)); in parser() 84 assertTrue(data.getServiceSolicitationUuids().contains(uuid4)); in parser() [all …]
|
D | TransportBlockTest.java | 59 TransportBlock data = new TransportBlock(1, 0, 2, new byte[] { in init() local 61 data.writeToParcel(parcel, 0); in init() 65 assertEquals(data, dataFromParcel); in init() 73 TransportBlock data = new TransportBlock(1, 0, 0, null); in initEmpty() local 74 data.writeToParcel(parcel, 0); in initEmpty() 78 assertEquals(data, dataFromParcel); in initEmpty() 86 TransportBlock data = new TransportBlock(1, 0, 2, new byte[] { in totalBytes() local 88 data.writeToParcel(parcel, 0); in totalBytes() 92 assertEquals(data.totalBytes(), 5); in totalBytes() 94 assertEquals(data, dataFromParcel); in totalBytes() [all …]
|
D | TransportDiscoveryDataTest.java | 62 TransportDiscoveryData data = new TransportDiscoveryData(1, transportBlocks); in initList() local 63 data.writeToParcel(parcel, 0); in initList() 67 assertEquals(data, dataFromParcel); in initList() 75 TransportDiscoveryData data = new TransportDiscoveryData(new byte[] { in initByteArray() local 77 data.writeToParcel(parcel, 0); in initByteArray() 81 assertEquals(data, dataFromParcel); in initByteArray() 89 TransportDiscoveryData data = new TransportDiscoveryData(new byte[] { in getValues() local 91 data.writeToParcel(parcel, 0); in getValues() 95 assertEquals(data.getTransportBlocks().size(), 1); in getValues() 97 assertEquals(data.getTransportBlocks().get(0), dataFromParcel.getTransportBlocks().get(0)); in getValues() [all …]
|
D | AdvertiseDataTest.java | 66 AdvertiseData data = mAdvertiseDataBuilder.build(); in emptyData() local 67 data.writeToParcel(parcel, 0); in emptyData() 71 assertEquals(data, dataFromParcel); in emptyData() 84 AdvertiseData data = mAdvertiseDataBuilder.setIncludeDeviceName(true).build(); in emptyServiceUuid() local 85 data.writeToParcel(parcel, 0); in emptyServiceUuid() 89 assertEquals(data, dataFromParcel); in emptyServiceUuid() 101 AdvertiseData data = in emptyManufacturerData() local 104 data.writeToParcel(parcel, 0); in emptyManufacturerData() 108 assertEquals(data, dataFromParcel); in emptyManufacturerData() 119 AdvertiseData data = in emptyServiceData() local [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/ |
D | BytesTransferredTest.java | 72 final AtomsProto.DataUsageBytesTransfer data = in testDataUsageBytesTransfer() 75 (data.getRatType() > NetworkTypeEnum.NETWORK_TYPE_UNKNOWN_VALUE); in testDataUsageBytesTransfer() 79 assertSubscriptionInfo(data); in testDataUsageBytesTransfer() 81 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testDataUsageBytesTransfer() 82 data.getRxPackets(), data.getTxPackets(), /*appUid=*/-1); in testDataUsageBytesTransfer() 92 final AtomsProto.MobileBytesTransfer data = atom.getMobileBytesTransfer(); in testMobileBytesTransfer() 93 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testMobileBytesTransfer() 94 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransfer() 104 final AtomsProto.MobileBytesTransferByFgBg data = in testMobileBytesTransferByFgBg() 106 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/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/tests/tests/os/src/android/os/cts/ |
D | MemoryFileTest.java | 42 byte[] data = new byte[512]; in testWriteBytes() 45 mMemoryFile.writeBytes(data, 0, 0, 512); in testWriteBytes() 58 byte[] data = new byte[512]; in checkWriteBytesInIllegalParameter() 59 mMemoryFile.writeBytes(data, srcOffset, destOffset, count); in checkWriteBytesInIllegalParameter() 86 byte[] data = new byte[512]; in testAllowPurging() 88 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 95 mMemoryFile.writeBytes(data, 0, 0, 512); in testAllowPurging() 117 byte[] data = new byte[] { 1, 2, 3, 4 }; in testReadBytes() 118 mMemoryFile.writeBytes(data, 0, 0, data.length); in testReadBytes() 141 byte[] data = new byte[512]; in checkReadBytesInIllegalParameter() [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/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/ |
D | AtomTestUtils.java | 91 List<StatsLog.EventMetricData> data, in assertStatesOccurred() argument 96 final List<Integer> dataStates = new ArrayList<>(data.size()); in assertStatesOccurred() 97 for (StatsLog.EventMetricData emd : data) { in assertStatesOccurred() 105 .that(data.size()).isAtLeast(stateSets.size()); in assertStatesOccurred() 132 List<StatsLog.EventMetricData> data, in assertStatesOccurredInOrder() argument 136 assertWithMessage("Number of result states").that(data.size()).isAtLeast(stateSets.size()); in assertStatesOccurredInOrder() 138 for (int dataIndex = 0; dataIndex < data.size(); dataIndex++) { in assertStatesOccurredInOrder() 139 AtomsProto.Atom atom = data.get(dataIndex).getAtom(); in assertStatesOccurredInOrder() 147 + data.get(dataIndex).getAtom().toString()); in assertStatesOccurredInOrder() 152 + data.get(dataIndex).getAtom().toString()); in assertStatesOccurredInOrder() [all …]
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LocalService.java | 71 protected boolean onTransact(int code, Parcel data, Parcel reply, 75 data.enforceInterface(SERVICE_LOCAL); 76 mReportObject = data.readStrongBinder(); 79 data.enforceInterface(SERVICE_LOCAL); 83 data.enforceInterface(SERVICE_LOCAL); 84 mValue = data.readInt(); 87 data.enforceInterface(SERVICE_LOCAL); 91 data.enforceInterface(SERVICE_LOCAL); 95 data.enforceInterface(SERVICE_LOCAL); 99 data.enforceInterface(SERVICE_LOCAL); [all …]
|