/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_object.cpp | 41 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 47 sp<ScriptC_clear_object> ms_clear = new ScriptC_clear_object(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 49 sp<const Element> element = Element::BOOLEAN(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 50 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); in Java_android_cts_rscpp_RSObjectTest_testClearObjectElement() 69 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 75 sp<ScriptC_clear_object> ms_clear = new ScriptC_clear_object(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 77 sp<const Type> type= Type::create(mRS, Element::I8(mRS), 1, 0, 0); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 78 sp<Allocation> mOut = Allocation::createSized(mRS, Element::I32(mRS), ObjectNum); in Java_android_cts_rscpp_RSObjectTest_testClearObjectType() 97 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() 103 sp<ScriptC_clear_object> ms_clear = new ScriptC_clear_object(mRS); in Java_android_cts_rscpp_RSObjectTest_testClearObjectAllocation() [all …]
|
D | rs_jni.cpp | 53 sp<const Element> makeElement(const sp<RS> &rs, RsDataType dt, int vecSize) { in makeElement() 72 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSInitTest_initTest() 93 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSBlurTest_blurTest() 96 sp<const Element> e; in Java_android_cts_rscpp_RSBlurTest_blurTest() 103 sp<Allocation> inputAlloc = Allocation::createSized2D(rs, e, X, Y); in Java_android_cts_rscpp_RSBlurTest_blurTest() 104 sp<Allocation> outputAlloc = Allocation::createSized2D(rs, e, X, Y); in Java_android_cts_rscpp_RSBlurTest_blurTest() 105 sp<ScriptIntrinsicBlur> blur = ScriptIntrinsicBlur::create(rs, e); in Java_android_cts_rscpp_RSBlurTest_blurTest() 134 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() 137 sp<const Element> e = Element::A_8(rs); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() 139 sp<Allocation> inputAlloc = Allocation::createSized2D(rs, e, X, Y); in Java_android_cts_rscpp_RSConvolveTest_convolveTest() [all …]
|
D | rs_jni_element.cpp | 37 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testCreatePixel() 69 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testCreateVector() 95 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testPrebuiltElements() 164 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 169 sp<const Element> ALLOCATION = Element::ALLOCATION(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 171 sp<const Element> BOOLEAN = Element::BOOLEAN(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 172 sp<const Element> ELEMENT = Element::ELEMENT(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 173 sp<const Element> F32 = Element::F32(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 174 sp<const Element> F32_2 = Element::F32_2(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() 175 sp<const Element> F32_3 = Element::F32_3(mRS); in Java_android_cts_rscpp_RSElementTest_testIsCompatible() [all …]
|
D | rs_jni_script.cpp | 51 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSScriptTest_testSet() 59 sp<const Type> t = Type::create(mRS, Element::I32(mRS), 8, 0, 0); in Java_android_cts_rscpp_RSScriptTest_testSet() 60 sp<Allocation> alloc = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSScriptTest_testSet() 62 sp<ScriptC_primitives> script = new ScriptC_primitives(mRS); in Java_android_cts_rscpp_RSScriptTest_testSet() 91 sp<RS> mRS = new RS(); in Java_android_cts_rscpp_RSScriptTest_testInstance() 99 sp<const Type> t = Type::create(mRS, Element::I32(mRS), 1, 0, 0); in Java_android_cts_rscpp_RSScriptTest_testInstance() 100 sp<Allocation> ai1 = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSScriptTest_testInstance() 101 sp<Allocation> ai2 = Allocation::createTyped(mRS, t); in Java_android_cts_rscpp_RSScriptTest_testInstance() 102 sp<ScriptC_instance> instance_1 = new ScriptC_instance(mRS); in Java_android_cts_rscpp_RSScriptTest_testInstance() 103 sp<ScriptC_instance> instance_2 = new ScriptC_instance(mRS); in Java_android_cts_rscpp_RSScriptTest_testInstance() [all …]
|
D | rs_jni_allocation.cpp | 34 static void createTypedHelper (const sp<RS> &rs, sp<const Element> e) { in createTypedHelper() 61 sp<RS> rs = new RS(); in Java_android_cts_rscpp_RSAllocationTest_typedTest() 125 static sp<const Element> makeElement(const sp<RS> &rs, RsDataType dt, int vecSize) { in makeElement() 145 static bool helperCopy1D(const sp<RS> &rs, int cellCount, int offset, int count, bool copyRange, in helperCopy1D() 151 sp<Allocation> alloc = nullptr; in helperCopy1D() 191 static bool helperFloatAllocationCopy1D(const sp<RS> &rs, int cellCount, int offset, int count) { in helperFloatAllocationCopy1D() 194 sp<Allocation> srcA = Allocation::createSized(rs, Element::F32(rs), cellCount); in helperFloatAllocationCopy1D() 195 sp<Allocation> dstA = Allocation::createSized(rs, Element::F32(rs), cellCount); in helperFloatAllocationCopy1D() 237 static bool helperCopy2D(const sp<RS> &rs, int xElems, int yElems, in helperCopy2D() 243 sp<Allocation> alloc = nullptr; in helperCopy2D() [all …]
|
/cts/suite/audio_quality/lib/include/audio/ |
D | RemoteAudio.h | 48 bool downloadData(const android::String8& name, android::sp<Buffer>& buffer, int& id); 57 android::sp<Buffer>& buffer); 76 void sendCommand(android::sp<android::MessageHandler>& command); 79 bool waitForCompletion(android::sp<android::MessageHandler>& command, int timeInMSec); 82 android::sp<android::MessageHandler>& commandHandler); 84 void doStop(android::sp<android::MessageHandler>& commandHandler, AudioProtocol::CommandId id); 86 CommandHandler* toCommandHandler(android::sp<android::MessageHandler>& command) { in toCommandHandler() 105 android::sp<android::Looper> mLooper; 142 android::sp<android::MessageHandler> mDownloadHandler; 143 android::sp<android::MessageHandler> mPlaybackHandler; [all …]
|
D | AudioRemote.h | 33 explicit AudioRemote(android::sp<RemoteAudio>& remote); 37 android::sp<RemoteAudio> mRemote; 45 explicit AudioRemotePlayback(android::sp<RemoteAudio>& remote); 47 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1); 55 explicit AudioRemoteRecording(android::sp<RemoteAudio>& remote); 57 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
|
D | AudioSignalFactory.h | 30 static android::sp<Buffer> generateSineWave(AudioHardware::BytesPerSample BPS, 33 static android::sp<Buffer> generateWhiteNoise(AudioHardware::BytesPerSample BPS, 35 static android::sp<Buffer> generateZeroSound(AudioHardware::BytesPerSample BPS,
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/ |
D | poc.cpp | 35 status_t setDataSource(const sp<IMediaHTTPService> &httpService, in setDataSource() 43 status_t setDataSource(const sp<IStreamSource> &source) { return OK; } in setDataSource() 45 status_t setDataSource(const sp<IDataSource> &source) { return OK; } in setDataSource() 48 const sp<IGraphicBufferProducer> &bufferProducer) { in setVideoSurfaceTexture() 110 status_t setNextPlayer(const sp<IMediaPlayer> &player) { return OK; } in setNextPlayer() 113 const sp<VolumeShaper::Configuration> &configuration, in applyVolumeShaper() 114 const sp<VolumeShaper::Operation> &operation) { in applyVolumeShaper() 117 sp<VolumeShaper::State> getVolumeShaperState(int id) { return NULL; } in getVolumeShaperState() 142 sp<IBinder> binder = in main() 144 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder); in main() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3746/ |
D | poc.cpp | 43 sp<IMemory> memory; in fuzzIOMXQcomVpx() 44 sp<IOMXNode> mOMXNode; in fuzzIOMXQcomVpx() 45 sp<IOMX> mOmx; in fuzzIOMXQcomVpx() 60 sp<DummyOMXObserver> observerDec = new DummyOMXObserver(); in fuzzIOMXQcomVpx() 80 sp<MemoryDealer> dealerIn = new MemoryDealer(inSize); in fuzzIOMXQcomVpx() 100 sp<AMessage> inputFormat = new AMessage; in fuzzIOMXQcomVpx() 101 sp<MediaCodecBuffer> codecDataIn; in fuzzIOMXQcomVpx() 106 sp<MemoryDealer> dealerOut = new MemoryDealer(outSize); in fuzzIOMXQcomVpx() 119 sp<AMessage> outputFormat = new AMessage; in fuzzIOMXQcomVpx() 120 sp<MediaCodecBuffer> codecDataOut; in fuzzIOMXQcomVpx()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13253/ |
D | poc.cpp | 34 sp<IServiceManager> sm = defaultServiceManager(); in main() 35 sp<IBinder> binder = sm->getService(String16("media.drm")); in main() 36 sp<IMediaDrmService> service = interface_cast<IMediaDrmService>(binder); in main() 41 sp<ICrypto> crypto = service->makeCrypto(); in main() 56 sp<MemoryHeapBase> heap = new MemoryHeapBase(0x2000); in main() 58 sp<MemoryBase> sourceMemory = new MemoryBase(heap, 0, 0x2000); in main() 59 sp<MemoryBase> destMemory = new MemoryBase(heap, 0x1fff, 1); in main()
|
/cts/tests/tests/drm/lib/ |
D | TestPlugin.h | 56 …status_t onConsumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, int action, bool reserve); 59 int uniqueId, sp<DecryptHandle>& decryptHandle, int playbackStatus, int64_t position); 77 int uniqueId, sp<DecryptHandle>& decryptHandle, int fd, off64_t offset, off64_t length); 80 int uniqueId, sp<DecryptHandle>& decryptHandle, const char* uri); 82 status_t onCloseDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle); 84 status_t onInitializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, 87 status_t onDecrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId, 90 … status_t onFinalizeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId); 92 ssize_t onPread(int uniqueId, sp<DecryptHandle>& decryptHandle,
|
D | TestPlugin.cpp | 113 status_t TestPlugIn::onConsumeRights(int uniqueId, sp<DecryptHandle>& decryptHandle, in onConsumeRights() 118 status_t TestPlugIn::onSetPlaybackStatus(int uniqueId, sp<DecryptHandle>& decryptHandle, in onSetPlaybackStatus() 150 … int uniqueId, sp<DecryptHandle>& decryptHandle, int fd, off64_t offset, off64_t length) { in onOpenDecryptSession() 155 int uniqueId, sp<DecryptHandle>& decryptHandle, const char* uri) { in onOpenDecryptSession() 159 status_t TestPlugIn::onCloseDecryptSession(int uniqueId, sp<DecryptHandle>& decryptHandle) { in onCloseDecryptSession() 163 status_t TestPlugIn::onInitializeDecryptUnit(int uniqueId, sp<DecryptHandle>& decryptHandle, in onInitializeDecryptUnit() 168 status_t TestPlugIn::onDecrypt(int uniqueId, sp<DecryptHandle>& decryptHandle, in onDecrypt() 174 int uniqueId, sp<DecryptHandle>& decryptHandle, int decryptUnitId) { in onFinalizeDecryptUnit() 178 ssize_t TestPlugIn::onPread(int uniqueId, sp<DecryptHandle>& decryptHandle, in onPread()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9344/ |
D | poc.cpp | 36 static sp<IDescramblerBase> descramblerBase; 49 sp<ICas> cas; in main() 51 sp<IDescrambler> descrambler; in main() 53 Return<sp<IDescramblerBase>> returnDescrambler(NULL); in main() 58 sp<IMediaCasService> casService = IMediaCasService::getService("default"); in main() 63 sp<ICasListener> listener; in main() 84 descramblerBase = (sp<IDescramblerBase>)returnDescrambler; in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0415/ |
D | poc.cpp | 31 sp<IGraphicBufferProducer> bufferProducer = in start2() 32 *(sp<IGraphicBufferProducer> *)args; in start2() 42 sp<Fence> fence; in start2() 53 sp<IGraphicBufferProducer> bufferProducer = NULL; in main() 54 sp<IGraphicBufferConsumer> bufferConsumer = NULL; in main()
|
/cts/suite/audio_quality/test/ |
D | AudioRecordPlayTestCommon.h | 35 android::sp<Buffer> mBufferRecording; 36 android::sp<Buffer> mBufferPlayback; 37 android::sp<AudioHardware> mAudioRecordingHw; 38 android::sp<AudioHardware> mAudioPlaybackHw; 85 virtual android::sp<AudioHardware> createRecordingHw() = 0; 86 virtual android::sp<AudioHardware> createPlaybackHw() = 0;
|
D | AudioHardwareTest.cpp | 32 android::sp<AudioHardware> playback = AudioHardware::createAudioHw(true, true); in TEST_F() 34 android::sp<AudioHardware> recording = AudioHardware::createAudioHw(true, false); in TEST_F() 41 android::sp<AudioHardware> playback = AudioHardware::createAudioHw(false, true, testCase); in TEST_F() 43 android::sp<AudioHardware> recording = AudioHardware::createAudioHw(false, false, testCase); in TEST_F()
|
D | AudioLocalTest.cpp | 31 android::sp<Buffer> mBufferPassed; 54 virtual bool doPlaybackOrRecord(android::sp<Buffer>& buffer) { in doPlaybackOrRecord() 71 android::sp<AudioHardware> createAudioHw() { in createAudioHw() 72 android::sp<AudioHardware> hw(new AudioPlayerDummy()); in createAudioHw()
|
D | SignalProcessingInterfaceTest.cpp | 53 android::sp<Buffer> in0(new Buffer(160000, 160000, true)); in TEST_F() 58 android::sp<Buffer> in1(new Buffer(8, 8, false)); in TEST_F() 67 android::sp<Buffer> out0(new Buffer(160000, 160000, true)); in TEST_F() 72 android::sp<Buffer> out1(new Buffer(8, 8, false)); in TEST_F() 149 android::sp<Buffer> in0(new Buffer(16, 16, true)); in TEST_F() 154 android::sp<Buffer> in1(new Buffer(16, 16, true)); in TEST_F() 159 android::sp<Buffer> in2(new Buffer(8, 8, false)); in TEST_F() 164 android::sp<Buffer> in3(new Buffer(8, 8, false)); in TEST_F() 175 android::sp<Buffer> out0(new Buffer(16, 16, true)); in TEST_F() 180 android::sp<Buffer> out1(new Buffer(8, 8, false)); in TEST_F()
|
D | ClientInterfaceTest.cpp | 54 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F() 63 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F() 67 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, in TEST_F() 82 android::sp<RemoteAudio>& audio(client->getAudio()); in TEST_F() 86 android::sp<Buffer> buffer(new Buffer(samples * 2, samples * 2, false)); in TEST_F()
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioRemote.cpp | 33 AudioRemote::AudioRemote(android::sp<RemoteAudio>& remote) in AudioRemote() 39 AudioRemotePlayback::AudioRemotePlayback(android::sp<RemoteAudio>& remote) in AudioRemotePlayback() 45 bool AudioRemotePlayback::startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition) in startPlaybackOrRecord() 66 AudioRemoteRecording::AudioRemoteRecording(android::sp<RemoteAudio>& remote) in AudioRemoteRecording() 72 bool AudioRemoteRecording::startPlaybackOrRecord(android::sp<Buffer>& buffer, in startPlaybackOrRecord()
|
D | AudioSignalFactory.cpp | 23 android::sp<Buffer> AudioSignalFactory::generateSineWave(AudioHardware::BytesPerSample BPS, in generateSineWave() 28 android::sp<Buffer> buffer(new Buffer(bufferSize)); in generateSineWave() 45 android::sp<Buffer> AudioSignalFactory::generateWhiteNoise(AudioHardware::BytesPerSample BPS, in generateWhiteNoise() 49 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateWhiteNoise() 70 android::sp<Buffer> AudioSignalFactory::generateZeroSound(AudioHardware::BytesPerSample BPS, in generateZeroSound() 74 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); in generateZeroSound()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2460/ |
D | poc.cpp | 33 sp<IServiceManager> sm = defaultServiceManager(); in main() 34 sp<IBinder> MeidaPlayerService = sm->checkService(String16("media.player")); in main() 37 sp<IMediaPlayerService> iMPService = in main() 40 sp<IMediaRecorder> recorder = in main() 54 sp<IGraphicBufferProducer> iGBP = recorder->querySurfaceMediaSource(); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/ |
D | poc.cpp | 46 sp<IBinder> crypto_binder; 50 sp<IServiceManager> sm = defaultServiceManager(); in make_crypto() 51 sp<IBinder> drm_binder = sm->getService(String16("media.drm")); in make_crypto() 83 sp<IMemoryHeap> heap = new MyMemoryHeap(fd); in set_heap() 110 sp<MemoryDealer> memoryDealer = new MemoryDealer(4096 * 4); in decrypt() 111 sp<IMemory> mem = memoryDealer->allocate(4096 * 4); in decrypt()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2419/ |
D | poc.cpp | 45 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() 46 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest() 48 sp<IMediaPlayerService> iMediaPlayerService = in doInforLeakTest() 55 sp<IDrm> iDrm = interface_cast<IDrm>(reply.readStrongBinder()); in doInforLeakTest()
|