Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 152) sorted by relevance

1234567

/cts/tests/tests/rscpp/librscpptest/
Drs_jni_object.cpp41 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 …]
Drs_jni.cpp53 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 …]
Drs_jni_element.cpp37 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 …]
Drs_jni_script.cpp51 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 …]
Drs_jni_allocation.cpp34 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/
DRemoteAudio.h48 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 …]
DAudioRemote.h33 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);
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/
Dpoc.cpp35 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/
Dpoc.cpp43 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/tests/tests/drm/lib/
DTestPlugin.h56 …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,
DTestPlugin.cpp113 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-2017-13253/
Dpoc.cpp34 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/hostsidetests/securitybulletin/securityPatch/CVE-2018-9344/
Dpoc.cpp36 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-2016-3747/
Dpoc.cpp40 sp<IOMXNode> node; in fuzzIOMXQcomEnc()
41 sp<IOMX> mOmx; in fuzzIOMXQcomEnc()
61 sp<IMemory> memory; in fuzzIOMXQcomEnc()
76 sp<DummyOMXObserver> observer = new DummyOMXObserver(); in fuzzIOMXQcomEnc()
90 sp<MemoryDealer> dealerIn = new MemoryDealer(inMemSize); in fuzzIOMXQcomEnc()
93 sp<IMemory> memory = dealerIn->allocate(inBufferSize); in fuzzIOMXQcomEnc()
104 sp<MemoryDealer> dealerOut = new MemoryDealer(outMemSize); in fuzzIOMXQcomEnc()
107 sp<IMemory> memory = dealerOut->allocate(outBufferSize); in fuzzIOMXQcomEnc()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0415/
Dpoc.cpp31 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/
DAudioRecordPlayTestCommon.h35 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;
DSignalProcessingInterfaceTest.cpp53 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()
DAudioHardwareTest.cpp32 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()
DAudioLocalTest.cpp31 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()
DClientInterfaceTest.cpp54 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/
DAudioSignalFactory.cpp23 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()
DAudioRemote.cpp33 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()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2460/
Dpoc.cpp33 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/
Dpoc.cpp46 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/
Dpoc.cpp44 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest()
45 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest()
47 sp<IMediaPlayerService> iMediaPlayerService = in doInforLeakTest()
54 sp<IDrm> iDrm = interface_cast<IDrm>(reply.readStrongBinder()); in doInforLeakTest()

1234567