Home
last modified time | relevance | path

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

123

/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_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_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_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);
DAudioSignalFactory.h30 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,
DAudioLocal.h38 virtual bool startPlaybackOrRecord(android::sp<Buffer>& buffer, int numberRepetition = 1);
47 virtual bool doPlaybackOrRecord(android::sp<Buffer>& buffer) = 0;
73 android::sp<Buffer> mBuffer;
/cts/hostsidetests/security/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/suite/audio_quality/lib/src/audio/
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()
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()
/cts/hostsidetests/security/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/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;
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()
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()
DAudioRecordPlayLocalTest.cpp25 android::sp<AudioHardware> createRecordingHw() { in createRecordingHw()
29 android::sp<AudioHardware> createPlaybackHw() { in createPlaybackHw()
DAudioSignalFactoryTest.cpp25 void testSignalBasic(android::sp<Buffer>& buffer, int maxPositive, in testSignalBasic()
44 android::sp<Buffer> buffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS, in TEST_F()
53 android::sp<Buffer> buffer = AudioSignalFactory::generateWhiteNoise(AudioHardware::E2BPS, in TEST_F()
/cts/hostsidetests/security/securityPatch/CVE-2016-2419/
Dpoc.cpp45 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()
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/
DSmsMessage_SubmitPduTest.java26 SmsMessage.SubmitPdu sp = new SmsMessage.SubmitPdu(); in testToString() local
27 assertNotNull(sp.toString()); in testToString()
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h43 bool registerBuffer(const android::String8& name, android::sp<Buffer>& buffer);
45 bool updateBuffer(const android::String8& name, android::sp<Buffer>& buffer);
47 android::sp<Buffer> findBuffer(const android::String8& name);
48 typedef std::pair<android::String8, android::sp<Buffer> > BufferPair;
52 android::sp<RemoteAudio>& getRemoteAudio();
132 std::map<android::String8, android::sp<Buffer> > mBufferList;
DTaskInput.h35 android::sp<AudioHardware> mHw;
36 android::sp<Buffer> mBuffer;
/cts/suite/audio_quality/lib/src/
DClientImpl.h38 virtual android::sp<RemoteAudio>& getAudio() { in getAudio()
44 android::sp<RemoteAudio> mAudio;

123