/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/ |
D | UaSecurityProtocolIdentifierTest.java | 99 UaSecurityProtocolIdentifier sp = builder.build(); in testDefaultId() local 100 assertNotNull(sp); in testDefaultId() 101 assertEquals(UaSecurityProtocolIdentifier.ORG_NONE, sp.getOrg()); in testDefaultId() 102 assertArrayEquals(sp.toByteArray(), PROTO_DEFAULT); in testDefaultId() 112 UaSecurityProtocolIdentifier sp = testCreate3GppSpId( in testValid3gppId() local 114 assertNotNull(sp); in testValid3gppId() 115 assertEquals(UaSecurityProtocolIdentifier.ORG_3GPP, sp.getOrg()); in testValid3gppId() 116 assertEquals(PROTO_3GPP_PLAIN_ID[i], sp.getProtocol()); in testValid3gppId() 117 assertEquals(0, sp.getTlsCipherSuite()); in testValid3gppId() 118 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 …]
|
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/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-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/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-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/hostsidetests/securitybulletin/securityPatch/CVE-2016-3747/ |
D | poc.cpp | 40 sp<IOMXNode> node; in fuzzIOMXQcomEnc() 41 sp<IOMX> mOmx; in fuzzIOMXQcomEnc() 60 sp<IMemory> memory; in fuzzIOMXQcomEnc() 75 sp<DummyOMXObserver> observer = new DummyOMXObserver(); in fuzzIOMXQcomEnc() 89 sp<MemoryDealer> dealerIn = new MemoryDealer(inMemSize); in fuzzIOMXQcomEnc() 92 sp<IMemory> memory = dealerIn->allocate(inBufferSize); in fuzzIOMXQcomEnc() 103 sp<MemoryDealer> dealerOut = new MemoryDealer(outMemSize); in fuzzIOMXQcomEnc() 106 sp<IMemory> memory = dealerOut->allocate(outBufferSize); in fuzzIOMXQcomEnc()
|
/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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0484/ |
D | poc.cpp | 27 sp<IServiceManager> serviceManager = defaultServiceManager(); in main() 30 sp<IBinder> mediaPlayerService = serviceManager->getService(String16("media.player")); in main() 33 sp<IMediaPlayerService> iMediaPlayerService = in main() 37 sp<MediaPlayer> mediaPlayer = new MediaPlayer(); in main() 40 sp<IMediaPlayer> iMediaPlayer = iMediaPlayerService->create(mediaPlayer); in main()
|
/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-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/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()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0241/ |
D | poc.cpp | 40 void setListener(const sp<IStreamListener> &listener __attribute__((unused))) {} in setListener() 41 void setBuffers(const Vector<sp<IMemory>> &buffers __attribute__((unused))) {} in setBuffers() 54 const sp<StreamSource> source = new StreamSource(); in main() 57 sp<NuPlayer::NuPlayerStreamListener> listener = in main()
|
/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/CVE-2017-13253/ |
D | poc.cpp | 39 using ::android::sp; 58 void setHeapBase(const sp<ICryptoPlugin> &plugin) { in setHeapBase() 59 sp<MemoryDealer> memoryDealer = new MemoryDealer(kHeapSize); in setHeapBase() 60 sp<IMemoryHeap> memoryHeap = memoryDealer->getMemoryHeap(); in setHeapBase() 62 sp<HidlMemory> hidlMemory = fromHeap(memoryHeap); in setHeapBase() 105 sp<V1_2::ICryptoPlugin> plugin_1_2 = V1_2::ICryptoPlugin::castFrom(plugin); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9313/ |
D | poc.cpp | 35 sp<IOmx> omx = new implementation::Omx(); in main() 39 sp<IOMX> mOMX = new utils::LWOmx(omx); in main() 43 sp<IOMXNode> mOMXNode = nullptr; in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2482/ |
D | poc.cpp | 51 sp<IMemory> memory; in fuzzIOMXSetParameterChangeCount() 52 sp<IOMXNode> node = 0; in fuzzIOMXSetParameterChangeCount() 53 sp<IOMX> mOmx; in fuzzIOMXSetParameterChangeCount() 72 sp<DummyOMXObserver> observerDec = new DummyOMXObserver(); in fuzzIOMXSetParameterChangeCount() 82 sp<MemoryDealer> dealerIn = new MemoryDealer(memSize); in fuzzIOMXSetParameterChangeCount()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-20357/ |
D | poc.cpp | 36 sp<SurfaceComposerClient> surfaceComposerClient = new SurfaceComposerClient(); in main() 39 sp<SurfaceControl> surfaceControl = in main() 42 sp<SurfaceControl> newSurfaceControl = new SurfaceControl(surfaceControl); in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0226/ |
D | poc.cpp | 26 sp < IServiceManager > sm = defaultServiceManager(); in main() 31 sp < IBinder > service = sm->checkService(name); in main() 40 sp < IBinder > binder = reply1.readStrongBinder(); in main()
|