/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/ |
D | UaSecurityProtocolIdentifierTest.java | 81 UaSecurityProtocolIdentifier sp = builder.build(); in testDefaultId() local 82 assertNotNull(sp); in testDefaultId() 83 assertEquals(UaSecurityProtocolIdentifier.ORG_NONE, sp.getOrg()); in testDefaultId() 84 assertArrayEquals(sp.toByteArray(), PROTO_DEFAULT); in testDefaultId() 90 UaSecurityProtocolIdentifier sp = testCreate3GppSpId( in testValid3gppId() local 92 assertNotNull(sp); in testValid3gppId() 93 assertEquals(UaSecurityProtocolIdentifier.ORG_3GPP, sp.getOrg()); in testValid3gppId() 94 assertEquals(PROTO_3GPP_PLAIN_ID[i], sp.getProtocol()); in testValid3gppId() 95 assertEquals(0, sp.getTlsCipherSuite()); in testValid3gppId() 96 assertArrayEquals(sp.toByteArray(), PROTO_3GPP_PLAIN[i]); in testValid3gppId() [all …]
|
/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_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_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 …]
|
/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-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/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-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() 50 const sp<IGraphicBufferProducer> &bufferProducer) { in setVideoSurfaceTexture() 112 status_t setNextPlayer(const sp<IMediaPlayer> &player) { return OK; } in setNextPlayer() 115 const sp<VolumeShaper::Configuration> &configuration, in applyVolumeShaper() 116 const sp<VolumeShaper::Operation> &operation) { in applyVolumeShaper() 119 sp<VolumeShaper::State> getVolumeShaperState(int id) { return NULL; } in getVolumeShaperState() 144 sp<IBinder> binder = in main() 146 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder); in main() [all …]
|
/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/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/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 | 34 sp<IServiceManager> sm = defaultServiceManager(); in main() 35 sp<IBinder> MeidaPlayerService = sm->checkService(String16("media.player")); in main() 38 sp<IMediaPlayerService> iMPService = in main() 44 sp<IMediaRecorder> recorder = iMPService->createMediaRecorder(attributionSource); in main() 57 sp<IGraphicBufferProducer> iGBP = recorder->querySurfaceMediaSource(); 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()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/ |
D | poc.cpp | 40 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-2016-2419/ |
D | poc.cpp | 43 sp<IServiceManager> sm = defaultServiceManager(); in doInforLeakTest() 44 sp<IBinder> mediaPlayerSevice = sm->checkService(String16("media.player")); in doInforLeakTest() 46 sp<IMediaPlayerService> iMediaPlayerService = in doInforLeakTest() 53 sp<IBinder> iDrm(reply.readStrongBinder()); in doInforLeakTest()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0484/ |
D | poc.cpp | 26 sp<IServiceManager> serviceManager = defaultServiceManager(); in main() 31 sp<IBinder> mediaPlayerService = serviceManager->getService(String16("media.player")); in main() 36 sp<IMediaPlayerService> iMediaPlayerService = in main() 47 sp<IMediaPlayer> iMediaPlayer = iMediaPlayerService->create(mediaPlayer); 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-2021-0330/ |
D | poc.cpp | 32 sp<IServiceManager> sm = defaultServiceManager(); in trigger_onUserStarted() 33 sp<IBinder> service = sm->checkService(String16("storaged")); in trigger_onUserStarted() 61 sp<IServiceManager> sm = defaultServiceManager(); in main() 62 sp<IBinder> service = sm->checkService(String16("storaged")); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-137878930/ |
D | poc.cpp | 27 using ::android::sp; 41 static Vector<sp<IDrmFactory>> drmFactories; 42 static sp<IDrmPlugin> drmPlugin; 43 static sp<::android::hardware::drm::V1_1::IDrmPlugin> drmPluginV1_1; 63 sp<IServiceManager> serviceManager = IServiceManager::getService(); in makeDrmFactories() 96 static sp<IDrmPlugin> makeDrmPlugin(const sp<IDrmFactory> &factory, in makeDrmPlugin() 99 sp<IDrmPlugin> plugin; in makeDrmPlugin() 101 [&](Status status, const sp<IDrmPlugin> &hPlugin) { in makeDrmPlugin()
|