Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 866) sorted by relevance

12345678910>>...35

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0921/src/android/security/cts/CVE_2021_0921/
DGenMalformedParcel.java17 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/
DCVE_2017_13289.java25 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 …]
DCVE_2017_13286.java27 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 …]
DCVE_2017_13315.java25 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 …]
DCVE_2017_13312.java25 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 …]
DCVE_2017_13288.java26 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/
Dgl2_jni_libone.cpp54 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/
Dpoc.cpp53 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/
Dpoc.cpp34 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/
DImsStreamMediaProfileTest.java42 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 …]
DImsCallProfileTest.java63 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 …]
DImsSsDataTest.java52 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/
DScanRecordTest.java44 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 …]
DAdvertiseDataTest.java43 AdvertiseData data = mAdvertiseDataBuilder.build(); in testEmptyData() local
44 data.writeToParcel(parcel, 0); in testEmptyData()
48 assertEquals(data, dataFromParcel); in testEmptyData()
59 AdvertiseData data = mAdvertiseDataBuilder.setIncludeDeviceName(true).build(); in testEmptyServiceUuid() local
60 data.writeToParcel(parcel, 0); in testEmptyServiceUuid()
64 assertEquals(data, dataFromParcel); in testEmptyServiceUuid()
74 AdvertiseData data = in testEmptyManufacturerData() local
77 data.writeToParcel(parcel, 0); in testEmptyManufacturerData()
81 assertEquals(data, dataFromParcel); in testEmptyManufacturerData()
90 AdvertiseData data = in testEmptyServiceData() local
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioProtocol.cpp36 bool AudioProtocol::handleReply(const uint32_t* data, AudioParam* param) in handleReply() argument
38 if (!checkHeaderId(data, mCommand)) { in handleReply()
41 if (data[1] != 0) { // no endian change for 0 in handleReply()
42 LOGE("error in reply %d", ntohl(data[1])); in handleReply()
45 if (data[2] != 0) { in handleReply()
46 LOGE("payload length %d not zero", ntohl(data[2])); in handleReply()
52 bool AudioProtocol::handleReplyHeader(ClientSocket& socket, uint32_t* data, CommandId& id) in handleReplyHeader() argument
54 if (!socket.readData((char*)data, REPLY_HEADER_SIZE)) { in handleReplyHeader()
58 uint32_t command = ntohl(data[0]); in handleReplyHeader()
60 LOGE("Wrong header %x %x", command, data[0]); in handleReplyHeader()
[all …]
DAudioSignalFactory.cpp31 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); in generateSineWave() local
35 *data = (int16_t)val; in generateSineWave()
36 data++; in generateSineWave()
38 *data = (int16_t)val; in generateSineWave()
39 data++; in generateSineWave()
53 int16_t* data = reinterpret_cast<int16_t*>(buffer->getData()); in generateWhiteNoise() local
59 *data = val; in generateWhiteNoise()
60 data++; in generateWhiteNoise()
62 *data = val; in generateWhiteNoise()
63 data++; in generateWhiteNoise()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUtil.java24 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/
Dpoc.c36 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/tests/tests/security/src/android/security/cts/
DNanoAppBundleTest.java324 Parcel data = Parcel.obtain(); in nanoAppFilterParcel() local
325 int bundleLenPos = data.dataPosition(); in nanoAppFilterParcel()
326 data.writeInt(0xffffffff); in nanoAppFilterParcel()
327 data.writeInt(0x4C444E42); in nanoAppFilterParcel()
328 int bundleStartPos = data.dataPosition(); in nanoAppFilterParcel()
329 data.writeInt(3); in nanoAppFilterParcel()
331 data.writeString(SECURITY_CTS_PACKAGE_NAME); in nanoAppFilterParcel()
332 data.writeInt(4); in nanoAppFilterParcel()
333 data.writeString("android.hardware.location.NanoAppFilter"); in nanoAppFilterParcel()
334 data.writeLong(0); in nanoAppFilterParcel()
[all …]
DAndroidFutureTest.java51 Parcel data = Parcel.obtain(); in createBundle() local
52 data.writeInt(1); in createBundle()
53 data.writeString("a"); in createBundle()
54 data.writeInt(4); in createBundle()
55 data.writeString("com.android.internal.infra.AndroidFuture"); in createBundle()
56 data.writeBoolean(true); in createBundle()
57 data.writeBoolean(true); in createBundle()
58 data.writeBoolean(true); in createBundle()
59 data.writeBoolean(false); in createBundle()
60 data.writeString(className); in createBundle()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java88 final AtomsProto.MobileBytesTransfer data = atom.getMobileBytesTransfer(); in testMobileBytesTransfer()
89 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testMobileBytesTransfer()
90 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransfer()
100 final AtomsProto.MobileBytesTransferByFgBg data = in testMobileBytesTransferByFgBg()
102 if (!data.getIsForeground()) { in testMobileBytesTransferByFgBg()
105 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testMobileBytesTransferByFgBg()
106 data.getRxPackets(), data.getTxPackets(), data.getUid()); in testMobileBytesTransferByFgBg()
116 final AtomsProto.BytesTransferByTagAndMetered data = in testBytesTransferByTagAndMetered()
118 if (data.getTag() != 0 /*app traffic not generated on tag 0*/) { in testBytesTransferByTagAndMetered()
121 return new TransferredBytes(data.getRxBytes(), data.getTxBytes(), in testBytesTransferByTagAndMetered()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DVectorAverage.java33 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/
DMemoryFileTest.java40 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/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/
Dpoc.cpp33 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/
DIntentFilterTest.java363 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testDataSchemes()
364 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme1:foo"), in testDataSchemes()
365 MatchCondition.data(IntentFilter.NO_MATCH_DATA, "scheme2:foo")); in testDataSchemes()
369 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testDataSchemes()
370 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme1:foo"), in testDataSchemes()
371 MatchCondition.data(IntentFilter.MATCH_CATEGORY_SCHEME, "scheme2:foo"), in testDataSchemes()
372 MatchCondition.data(IntentFilter.NO_MATCH_DATA, "scheme3:foo")); in testDataSchemes()
387 MatchCondition.data(IntentFilter.NO_MATCH_DATA, null), in testSchemeSpecificParts()
388 MatchCondition.data(MATCH_CATEGORY_SCHEME_SPECIFIC_PART, "scheme:ssp1"), in testSchemeSpecificParts()
389 MatchCondition.data(MATCH_CATEGORY_SCHEME_SPECIFIC_PART, "scheme:2ssp"), in testSchemeSpecificParts()
[all …]

12345678910>>...35