Home
last modified time | relevance | path

Searched refs:dataProvider (Results 1 – 18 of 18) sorted by relevance

/frameworks/av/media/libstagefright/tests/fuzzers/
DWriterFuzzer.cpp68 [](FuzzedDataProvider *dataProvider, sp<MediaWriter> mediaWriter, sp<MetaData>, int tmpFd) { in __anonc34b20250202()
69 bool valid_fd = dataProvider->ConsumeBool(); in __anonc34b20250202()
78 [](FuzzedDataProvider *dataProvider, sp<MediaWriter> mediaWriter, sp<MetaData>, int tmpFd) { in __anonc34b20250302()
79 bool valid_fd = dataProvider->ConsumeBool(); in __anonc34b20250302()
86 [](FuzzedDataProvider *dataProvider, sp<MediaWriter> mediaWriter, sp<MetaData>, int) { in __anonc34b20250402()
87 mediaWriter->setCaptureRate(dataProvider->ConsumeFloatingPoint<float>()); in __anonc34b20250402()
89 [](FuzzedDataProvider *dataProvider, sp<MediaWriter> mediaWriter, sp<MetaData>, int) { in __anonc34b20250502()
90 mediaWriter->setMaxFileDuration(dataProvider->ConsumeIntegral<int64_t>()); in __anonc34b20250502()
92 [](FuzzedDataProvider *dataProvider, sp<MediaWriter> mediaWriter, sp<MetaData>, int) { in __anonc34b20250602()
93 mediaWriter->setStartTimeOffsetMs(dataProvider->ConsumeIntegral<int>()); in __anonc34b20250602()
[all …]
DFuzzerMediaUtility.cpp30 std::string genMimeType(FuzzedDataProvider *dataProvider) { in genMimeType() argument
31 uint8_t idx = dataProvider->ConsumeIntegralInRange<uint8_t>(0, kMimeTypes.size() - 1); in genMimeType()
35 sp<IMediaExtractor> genMediaExtractor(FuzzedDataProvider *dataProvider, std::string mimeType, in genMediaExtractor() argument
37 uint32_t dataBlobSize = dataProvider->ConsumeIntegralInRange<uint16_t>(0, maxDataAmount); in genMediaExtractor()
38 std::vector<uint8_t> data = dataProvider->ConsumeBytes<uint8_t>(dataBlobSize); in genMediaExtractor()
58 sp<MediaSource> genMediaSource(FuzzedDataProvider *dataProvider, uint16_t maxMediaBlobSize) { in genMediaSource() argument
59 std::string mime = genMimeType(dataProvider); in genMediaSource()
60 sp<IMediaExtractor> extractor = genMediaExtractor(dataProvider, mime, maxMediaBlobSize); in genMediaSource()
69 std::string trackMime = dataProvider->PickValueInArray(kTestedMimeTypes); in genMediaSource()
DFuzzerMediaUtility.h90 std::string genMimeType(FuzzedDataProvider *dataProvider);
91 sp<IMediaExtractor> genMediaExtractor(FuzzedDataProvider *dataProvider, uint16_t dataAmount);
92 sp<MediaSource> genMediaSource(FuzzedDataProvider *dataProvider, uint16_t maxMediaBlobSize);
/frameworks/native/libs/input/
DPropertyMap_fuzz.cpp30 [](FuzzedDataProvider* dataProvider, android::PropertyMap& propertyMap) -> void { in __anon5313a7440202()
31 std::string key = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anon5313a7440202()
34 [](FuzzedDataProvider* dataProvider, android::PropertyMap& /*unused*/) -> void { in __anon5313a7440302()
37 std::string contents = dataProvider->ConsumeRandomLengthString(MAX_FILE_SIZE); in __anon5313a7440302()
46 [](FuzzedDataProvider* dataProvider, android::PropertyMap& propertyMap) -> void { in __anon5313a7440402()
47 std::string key = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anon5313a7440402()
48 std::string val = dataProvider->ConsumeRandomLengthString(MAX_STR_LEN); in __anon5313a7440402()
53 FuzzedDataProvider dataProvider(data, size); in LLVMFuzzerTestOneInput() local
57 while (dataProvider.remaining_bytes() > 0 && opsRun++ < MAX_OPERATIONS) { in LLVMFuzzerTestOneInput()
58 uint8_t op = dataProvider.ConsumeIntegralInRange<uint8_t>(0, operations.size() - 1); in LLVMFuzzerTestOneInput()
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStabilityFuzz.cpp24 FuzzedDataProvider dataProvider(data, size); in LLVMFuzzerTestOneInput() local
28 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
29 callArbitraryFunction(&dataProvider, gStabilityOperations, bbinder); in LLVMFuzzerTestOneInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DSingleTapClassifier.java30 SingleTapClassifier(FalsingDataProvider dataProvider, in SingleTapClassifier() argument
32 super(dataProvider, touchSlop); in SingleTapClassifier()
DLongTapClassifier.java29 LongTapClassifier(FalsingDataProvider dataProvider, in LongTapClassifier() argument
31 super(dataProvider, touchSlop); in LongTapClassifier()
DTapClassifier.java28 TapClassifier(FalsingDataProvider dataProvider, in TapClassifier() argument
30 super(dataProvider); in TapClassifier()
DPointerCountClassifier.java41 PointerCountClassifier(FalsingDataProvider dataProvider) { in PointerCountClassifier() argument
42 super(dataProvider); in PointerCountClassifier()
DDoubleTapClassifier.java39 DoubleTapClassifier(FalsingDataProvider dataProvider, SingleTapClassifier singleTapClassifier, in DoubleTapClassifier() argument
42 super(dataProvider); in DoubleTapClassifier()
DTypeClassifier.java42 TypeClassifier(FalsingDataProvider dataProvider) { in TypeClassifier() argument
43 super(dataProvider); in TypeClassifier()
DFalsingClassifier.java33 FalsingClassifier(FalsingDataProvider dataProvider) { in FalsingClassifier() argument
34 mDataProvider = dataProvider; in FalsingClassifier()
DDiagonalClassifier.java52 DiagonalClassifier(FalsingDataProvider dataProvider, DeviceConfigProxy deviceConfigProxy) { in DiagonalClassifier() argument
53 super(dataProvider); in DiagonalClassifier()
DProximityClassifier.java57 FalsingDataProvider dataProvider, DeviceConfigProxy deviceConfigProxy) { in ProximityClassifier() argument
58 super(dataProvider); in ProximityClassifier()
DDistanceClassifier.java64 DistanceClassifier(FalsingDataProvider dataProvider, DeviceConfigProxy deviceConfigProxy) { in DistanceClassifier() argument
65 super(dataProvider); in DistanceClassifier()
DZigZagClassifier.java64 ZigZagClassifier(FalsingDataProvider dataProvider, DeviceConfigProxy deviceConfigProxy) { in ZigZagClassifier() argument
65 super(dataProvider); in ZigZagClassifier()
/frameworks/av/services/camera/libcameraservice/fuzzer/
DDepthProcessorFuzzer.cpp32 FuzzedDataProvider dataProvider(data, size); in generateDepth16Buffer() local
34 (*depth16Buffer)[i] = dataProvider.ConsumeIntegral<uint16_t>(); in generateDepth16Buffer()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSetting.java279 LegacyPermissionDataProvider dataProvider) {
314 writePackageUserPermissionsProto(proto, PackageProto.USER_PERMISSIONS, users, dataProvider);
1060 List<UserInfo> users, LegacyPermissionDataProvider dataProvider) {
1066 runtimePermissionStates = dataProvider.getLegacyPermissionState(mAppId)