Home
last modified time | relevance | path

Searched refs:instance (Results 126 - 150 of 2258) sorted by relevance

12345678910>>...91

/third_party/libphonenumber/cpp/src/phonenumbers/base/memory/
H A Dsingleton_unsafe.h34 static T* instance = NULL; in GetInstance() local
35 if (!instance) { in GetInstance()
36 instance = new T(); in GetInstance()
38 DCHECK(instance->thread_checker_.CalledOnValidThread()); in GetInstance()
39 return instance; in GetInstance()
/third_party/python/Lib/test/
H A Dtest_fileinput.py576 instance = MockFileInput()
577 instance._file = object()
578 fileinput._state = instance
582 self.assertIs(instance, fileinput._state, "fileinput._state")
589 fileinput._state is set to the returned instance."""
590 instance = MockFileInput()
591 instance._file = None
592 fileinput._state = instance
600 instance."""
644 instance
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
H A DvktApiExternalMemoryTests.cpp253 vk::VkInstance instance, in createTestDevice()
407 return createCustomDevice(context.getTestContext().getCommandLine().isValidationEnabled(), vkp, instance, vki, physicalDevice, &deviceCreateInfo); in createTestDevice()
953 const CustomInstance instance (createTestInstance(context, params.externalType, 0u, 0u)); in testSemaphoreQueries()
954 const vk::InstanceDriver& vki (instance.getDriver()); in testSemaphoreQueries()
955 const vk::VkPhysicalDevice device (vk::chooseDevice(vki, instance, context.getTestContext().getCommandLine())); in testSemaphoreQueries()
1040 const CustomInstance instance (createTestInstance(context, config.externalType, 0u, 0u)); in testSemaphoreWin32Create()
1041 const vk::InstanceDriver& vki (instance.getDriver()); in testSemaphoreWin32Create()
1042 const vk::VkPhysicalDevice physicalDevice (vk::chooseDevice(vki, instance, context.getTestContext().getCommandLine())); in testSemaphoreWin32Create()
1048 const vk::Unique<vk::VkDevice> device (createTestDevice(context, vkp, instance, vki, physicalDevice, config.externalType, 0u, 0u, queueFamilyIndex)); in testSemaphoreWin32Create()
1049 const vk::DeviceDriver vkd (vkp, instance, *devic in testSemaphoreWin32Create()
251 createTestDevice(const Context& context, const vk::PlatformInterface& vkp, vk::VkInstance instance, const vk::InstanceInterface& vki, vk::VkPhysicalDevice physicalDevice, const vk::VkExternalSemaphoreHandleTypeFlags externalSemaphoreTypes, const vk::VkExternalMemoryHandleTypeFlags externalMemoryTypes, const vk::VkExternalFenceHandleTypeFlags externalFenceTypes, deUint32 queueFamilyIndex, bool useDedicatedAllocs = false, void * protectedFeatures = DE_NULL) createTestDevice() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
H A DvkRenderDocUtil.cpp107 void RenderDocUtil::startFrame (vk::VkInstance instance) in startFrame() argument
111 m_priv->m_api->StartFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(instance), DE_NULL); in startFrame()
113 (void) instance; in startFrame()
117 void RenderDocUtil::endFrame (vk::VkInstance instance) in endFrame() argument
121 m_priv->m_api->EndFrameCapture(RENDERDOC_DEVICEPOINTER_FROM_VKINSTANCE(instance), DE_NULL); in endFrame()
123 (void) instance; in endFrame()
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
H A Dmain.cpp49 static void WaitForDebugger(HINSTANCE instance) in WaitForDebugger() argument
53 HRSRC dialog = FindResource(instance, MAKEINTRESOURCE(IDD_DIALOG1), RT_DIALOG); in WaitForDebugger()
54 DLGTEMPLATE *dialogTemplate = (DLGTEMPLATE *)LoadResource(instance, dialog); in WaitForDebugger()
55 DialogBoxIndirect(instance, dialogTemplate, NULL, DebuggerWaitDialogProc); in WaitForDebugger()
60 extern "C" BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) in DllMain() argument
72 WaitForDebugger(instance); in DllMain()
/third_party/ltp/testcases/kernel/mce-test/stress/tools/page-poisoning/
H A Dpage-poisoning.c59 static int instance = 0; // index of the child process. variable
115 {"instance", 0, 0, 'i'},
362 ipc->test[instance].id = testid; in dirty_anonymous()
367 ipc->test[instance].result = TEST_PASS; in dirty_anonymous()
378 ipc->test[instance].id = testid; in dirty_anonymous_unmap()
384 ipc->test[instance].result = TEST_PASS; in dirty_anonymous_unmap()
395 ipc->test[instance].id = testid; in mlocked_anonymous()
400 ipc->test[instance].result = TEST_PASS; in mlocked_anonymous()
429 ipc->test[instance].id = testid; in file_clean()
432 ipc->test[instance] in file_clean()
[all...]
/third_party/skia/third_party/externals/oboe/apps/OboeTester/app/src/main/cpp/
H A Djni-bridge.cpp307 Java_com_google_sample_oboe_manualtest_OboeAudioStream_getFormat(JNIEnv *env, jobject instance, jint streamIndex) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getFormat() argument
383 Java_com_google_sample_oboe_manualtest_OboeAudioStream_getLatency(JNIEnv *env, jobject instance, jint streamIndex) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getLatency() argument
393 Java_com_google_sample_oboe_manualtest_OboeAudioStream_getCpuLoad(JNIEnv *env, jobject instance, jint streamIndex) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getCpuLoad() argument
404 Java_com_google_sample_oboe_manualtest_OboeAudioStream_getState(JNIEnv *env, jobject instance, jint streamIndex) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_getState() argument
430 jobject instance, in Java_com_google_sample_oboe_manualtest_AudioInputTester_getPeakLevel()
454 Java_com_google_sample_oboe_manualtest_OboeAudioStream_isMMap(JNIEnv *env, jobject instance, jint streamIndex) { in Java_com_google_sample_oboe_manualtest_OboeAudioStream_isMMap() argument
493 jobject instance, in Java_com_google_sample_oboe_manualtest_TestAudioActivity_setActivityType()
501 jobject instance, in Java_com_google_sample_oboe_manualtest_TestInputActivity_saveWaveFile()
513 jobject instance, in Java_com_google_sample_oboe_manualtest_TestInputActivity_setMinimumFramesBeforeRead()
521 jobject instance, in Java_com_google_sample_oboe_manualtest_EchoActivity_setDelayTime()
429 Java_com_google_sample_oboe_manualtest_AudioInputTester_getPeakLevel(JNIEnv *env, jobject instance, jint index) Java_com_google_sample_oboe_manualtest_AudioInputTester_getPeakLevel() argument
492 Java_com_google_sample_oboe_manualtest_TestAudioActivity_setActivityType(JNIEnv *env, jobject instance, jint activityType) Java_com_google_sample_oboe_manualtest_TestAudioActivity_setActivityType() argument
500 Java_com_google_sample_oboe_manualtest_TestInputActivity_saveWaveFile(JNIEnv *env, jobject instance, jstring fileName) Java_com_google_sample_oboe_manualtest_TestInputActivity_saveWaveFile() argument
512 Java_com_google_sample_oboe_manualtest_TestInputActivity_setMinimumFramesBeforeRead(JNIEnv *env, jobject instance, jint numFrames) Java_com_google_sample_oboe_manualtest_TestInputActivity_setMinimumFramesBeforeRead() argument
520 Java_com_google_sample_oboe_manualtest_EchoActivity_setDelayTime(JNIEnv *env, jobject instance, jdouble delayTimeSeconds) Java_com_google_sample_oboe_manualtest_EchoActivity_setDelayTime() argument
528 Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getAnalyzerProgress(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getAnalyzerProgress() argument
534 Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getMeasuredLatency(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getMeasuredLatency() argument
540 Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getMeasuredConfidence(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getMeasuredConfidence() argument
546 Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getBackgroundRMS(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getBackgroundRMS() argument
552 Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getSignalRMS(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_RoundTripLatencyActivity_getSignalRMS() argument
558 Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getMeasuredResult(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getMeasuredResult() argument
565 Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getAnalyzerState(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getAnalyzerState() argument
571 Java_com_google_sample_oboe_manualtest_AnalyzerActivity_isAnalyzerDone(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_AnalyzerActivity_isAnalyzerDone() argument
577 Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getResetCount(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_AnalyzerActivity_getResetCount() argument
584 Java_com_google_sample_oboe_manualtest_GlitchActivity_getGlitchCount(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_GlitchActivity_getGlitchCount() argument
590 Java_com_google_sample_oboe_manualtest_GlitchActivity_getStateFrameCount(JNIEnv *env, jobject instance, jint state) Java_com_google_sample_oboe_manualtest_GlitchActivity_getStateFrameCount() argument
597 Java_com_google_sample_oboe_manualtest_GlitchActivity_getSignalToNoiseDB(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_GlitchActivity_getSignalToNoiseDB() argument
602 Java_com_google_sample_oboe_manualtest_GlitchActivity_getPeakAmplitude(JNIEnv *env, jobject instance) Java_com_google_sample_oboe_manualtest_GlitchActivity_getPeakAmplitude() argument
608 Java_com_google_sample_oboe_manualtest_GlitchActivity_setTolerance(JNIEnv *env, jobject instance, jfloat tolerance) Java_com_google_sample_oboe_manualtest_GlitchActivity_setTolerance() argument
617 Java_com_google_sample_oboe_manualtest_ManualGlitchActivity_getGlitch(JNIEnv *env, jobject instance, jfloatArray waveform_) Java_com_google_sample_oboe_manualtest_ManualGlitchActivity_getGlitch() argument
[all...]
/third_party/python/Lib/xmlrpc/
H A Dserver.py5 class instance, or by extending the SimpleXMLRPCServer
26 2. Install an instance:
46 3. Install an instance with custom dispatch method:
168 self.instance = None
173 def register_instance(self, instance, allow_dotted_names=False):
174 """Registers an instance to respond to XML-RPC requests.
176 Only one instance can be installed at a time.
178 If the registered instance has a _dispatch method then that
181 e.g. instance._dispatch('add',(2,3))
183 If the registered instance doe
[all...]
/third_party/vulkan-loader/loader/
H A Dwsi.c152 // enumerated instance extensions. This solves the issue where an ICD or layer
178 LOADER_EXPORT VKAPI_ATTR void VKAPI_CALL vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, in vkDestroySurfaceKHR() argument
180 struct loader_instance *loader_inst = loader_get_instance(instance); in vkDestroySurfaceKHR()
183 "vkDestroySurfaceKHR: Invalid instance [VUID-vkDestroySurfaceKHR-instance-parameter]"); in vkDestroySurfaceKHR()
186 loader_inst->disp->layer_inst_disp.DestroySurfaceKHR(loader_inst->instance, surface, pAllocator); in vkDestroySurfaceKHR()
191 // This is the instance chain terminator function for DestroySurfaceKHR
192 VKAPI_ATTR void VKAPI_CALL terminator_DestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface, in terminator_DestroySurfaceKHR() argument
194 struct loader_instance *loader_inst = loader_get_instance(instance); in terminator_DestroySurfaceKHR()
204 icd_term->dispatch.DestroySurfaceKHR(icd_term->instance, icd_surfac in terminator_DestroySurfaceKHR()
559 AllocateIcdSurfaceStruct(struct loader_instance *instance, size_t base_size, size_t platform_size) AllocateIcdSurfaceStruct() argument
585 vkCreateWin32SurfaceKHR(VkInstance instance, const VkWin32SurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateWin32SurfaceKHR() argument
599 terminator_CreateWin32SurfaceKHR(VkInstance instance, const VkWin32SurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateWin32SurfaceKHR() argument
705 vkCreateWaylandSurfaceKHR(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateWaylandSurfaceKHR() argument
719 terminator_CreateWaylandSurfaceKHR(VkInstance instance, const VkWaylandSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateWaylandSurfaceKHR() argument
828 vkCreateXcbSurfaceKHR(VkInstance instance, const VkXcbSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateXcbSurfaceKHR() argument
842 terminator_CreateXcbSurfaceKHR(VkInstance instance, const VkXcbSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateXcbSurfaceKHR() argument
953 vkCreateXlibSurfaceKHR(VkInstance instance, const VkXlibSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateXlibSurfaceKHR() argument
967 terminator_CreateXlibSurfaceKHR(VkInstance instance, const VkXlibSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateXlibSurfaceKHR() argument
1075 vkCreateDirectFBSurfaceEXT(VkInstance instance, const VkDirectFBSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateDirectFBSurfaceEXT() argument
1089 terminator_CreateDirectFBSurfaceEXT(VkInstance instance, const VkDirectFBSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateDirectFBSurfaceEXT() argument
1202 vkCreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateAndroidSurfaceKHR() argument
1216 terminator_CreateAndroidSurfaceKHR(VkInstance instance, const VkAndroidSurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateAndroidSurfaceKHR() argument
1250 vkCreateSurfaceOHOS(VkInstance instance, const VkSurfaceCreateInfoOHOS *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateSurfaceOHOS() argument
1264 terminator_CreateSurfaceOHOS(VkInstance instance, const VkSurfaceCreateInfoOHOS *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateSurfaceOHOS() argument
1295 vkCreateHeadlessSurfaceEXT(VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateHeadlessSurfaceEXT() argument
1308 terminator_CreateHeadlessSurfaceEXT(VkInstance instance, const VkHeadlessSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateHeadlessSurfaceEXT() argument
1398 vkCreateMacOSSurfaceMVK(VkInstance instance, const VkMacOSSurfaceCreateInfoMVK *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateMacOSSurfaceMVK() argument
1412 terminator_CreateMacOSSurfaceMVK(VkInstance instance, const VkMacOSSurfaceCreateInfoMVK *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateMacOSSurfaceMVK() argument
1478 vkCreateIOSSurfaceMVK(VkInstance instance, const VkIOSSurfaceCreateInfoMVK *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateIOSSurfaceMVK() argument
1492 terminator_CreateIOSSurfaceMVK(VkInstance instance, const VkIOSSurfaceCreateInfoMVK *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateIOSSurfaceMVK() argument
1527 vkCreateStreamDescriptorSurfaceGGP(VkInstance instance, const VkStreamDescriptorSurfaceCreateInfoGGP *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateStreamDescriptorSurfaceGGP() argument
1542 terminator_CreateStreamDescriptorSurfaceGGP(VkInstance instance, const VkStreamDescriptorSurfaceCreateInfoGGP *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateStreamDescriptorSurfaceGGP() argument
1604 vkCreateMetalSurfaceEXT(VkInstance instance, const VkMetalSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateMetalSurfaceEXT() argument
1617 terminator_CreateMetalSurfaceEXT(VkInstance instance, const VkMetalSurfaceCreateInfoEXT *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateMetalSurfaceEXT() argument
1676 vkCreateScreenSurfaceQNX(VkInstance instance, const VkScreenSurfaceCreateInfoQNX *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateScreenSurfaceQNX() argument
1690 terminator_CreateScreenSurfaceQNX(VkInstance instance, const VkScreenSurfaceCreateInfoQNX *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateScreenSurfaceQNX() argument
1799 vkCreateViSurfaceNN(VkInstance instance, const VkViSurfaceCreateInfoNN *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateViSurfaceNN() argument
1811 terminator_CreateViSurfaceNN(VkInstance instance, const VkViSurfaceCreateInfoNN *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateViSurfaceNN() argument
2121 vkCreateDisplayPlaneSurfaceKHR(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateDisplayPlaneSurfaceKHR() argument
2135 terminator_CreateDisplayPlaneSurfaceKHR(VkInstance instance, const VkDisplaySurfaceCreateInfoKHR *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateDisplayPlaneSurfaceKHR() argument
2571 vkCreateImagePipeSurfaceFUCHSIA(VkInstance instance, const VkImagePipeSurfaceCreateInfoFUCHSIA *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) vkCreateImagePipeSurfaceFUCHSIA() argument
2586 terminator_CreateImagePipeSurfaceFUCHSIA(VkInstance instance, const VkImagePipeSurfaceCreateInfoFUCHSIA *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSurfaceKHR *pSurface) terminator_CreateImagePipeSurfaceFUCHSIA() argument
[all...]
/third_party/mesa3d/src/virtio/vulkan/
H A Dvn_pipeline.c37 return vn_error(dev->instance, VK_ERROR_OUT_OF_HOST_MEMORY); in vn_CreateShaderModule()
42 vn_async_vkCreateShaderModule(dev->instance, device, pCreateInfo, NULL, in vn_CreateShaderModule()
63 vn_async_vkDestroyShaderModule(dev->instance, device, shaderModule, NULL); in vn_DestroyShaderModule()
85 return vn_error(dev->instance, VK_ERROR_OUT_OF_HOST_MEMORY); in vn_CreatePipelineLayout()
91 vn_async_vkCreatePipelineLayout(dev->instance, device, pCreateInfo, NULL, in vn_CreatePipelineLayout()
113 vn_async_vkDestroyPipelineLayout(dev->instance, device, pipelineLayout, in vn_DestroyPipelineLayout()
137 return vn_error(dev->instance, VK_ERROR_OUT_OF_HOST_MEMORY); in vn_CreatePipelineCache()
154 vn_async_vkCreatePipelineCache(dev->instance, device, pCreateInfo, NULL, in vn_CreatePipelineCache()
177 vn_async_vkDestroyPipelineCache(dev->instance, device, pipelineCache, in vn_DestroyPipelineCache()
197 result = vn_call_vkGetPipelineCacheData(dev->instance, devic in vn_GetPipelineCacheData()
[all...]
H A Dvn_device.c42 dev->instance, vn_device_to_handle(dev), in vn_queue_init()
63 .pNext = dev->instance->experimental.globalFencing == VK_TRUE in vn_queue_init()
289 assert(!physical_dev->instance->renderer->info.has_dma_buf_import); in vn_device_fix_create_info()
347 struct vn_instance *instance = physical_dev->instance; in vn_device_init() local
354 dev->instance = instance; in vn_device_init()
356 dev->renderer = instance->renderer; in vn_device_init()
363 result = vn_call_vkCreateDevice(instance, physical_dev_handle, create_info, in vn_device_init()
417 vn_call_vkDestroyDevice(instance, dev_handl in vn_device_init()
431 struct vn_instance *instance = physical_dev->instance; vn_CreateDevice() local
[all...]
/foundation/distributeddatamgr/preferences/frameworks/js/napi/sendable_preferences/src/
H A Dnapi_preferences.cpp99 napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) in NewInstance()
111 status = napi_new_instance(env, cons, 0, nullptr, instance); in NewInstance()
122 status = napi_wrap_sendable(env, *instance, obj, PreferencesProxy::Destructor, nullptr); in NewInstance()
193 auto instance = context->instance_.lock(); in GetAll()
194 if (instance == nullptr) { in GetAll()
197 context->allElements = instance->GetAll(); in GetAll()
220 auto instance = context->instance_.lock(); in GetValue()
221 if (instance == nullptr) { in GetValue()
224 context->defValue = instance->Get(context->key, context->defValue); in GetValue()
257 auto instance in SetValue()
98 NewInstance( napi_env env, std::shared_ptr<OHOS::NativePreferences::Preferences> value, napi_value *instance) NewInstance() argument
570 auto instance = proxy_->GetInstance(); Subscribe() local
585 auto instance = proxy_->GetInstance(); Unsubscribe() local
[all...]
/foundation/arkui/ace_engine/frameworks/base/memory/
H A Dtype_info_base.h95 // Convert pointer of instance inherited from 'TypeInfoBase'.
110 // Get type info by instance.
115 static TypeInfoBase::IdType TypeId(const TypeInfoBase& instance) in TypeId() argument
117 return TypeId(&instance); in TypeId()
123 static const char* TypeName(const TypeInfoBase& instance) in TypeName() argument
125 return TypeName(&instance); in TypeName()
131 static size_t TypeSize(const TypeInfoBase& instance) in TypeSize() argument
133 return TypeSize(&instance); in TypeSize()
148 // Check whether instance is the specified type
155 static bool InstanceOf(const TypeInfoBase& instance) in InstanceOf() argument
[all...]
/foundation/window/window_manager/utils/src/
H A Dsingleton_container.cpp56 void SingletonContainer::AddSingleton(const std::string& name, void* instance) in AddSingleton() argument
60 singletonMap[nextId].value = instance; in AddSingleton()
69 void SingletonContainer::SetSingleton(const std::string& name, void* instance) in SetSingleton() argument
72 AddSingleton(name, instance); in SetSingleton()
75 singletonMap[stringMap[name]].value = instance; in SetSingleton()
92 void* SingletonContainer::DependOn(const std::string& instance, const std::string& name) in DependOn() argument
94 auto& instanceDependencySet = dependencySetMap[stringMap[instance]]; in DependOn()
96 WLOGFD("%{public}s DependOn %{public}s", instance.c_str(), name.c_str()); in DependOn()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DDebugCounter.h59 /// Returns a reference to the singleton instance.
60 static DebugCounter &instance();
71 return instance().addCounter(Name, Desc); in registerCounter()
77 auto &Us = instance(); in shouldExecute()
102 return instance().Counters[ID].IsSet; in isCounterSet()
107 auto &Us = instance(); in getCounterValue()
115 auto &Us = instance(); in setCounterValue()
149 static void enableAllCounters() { instance().Enabled = true; } in enableAllCounters()
157 return instance().Enabled; in isCountingEnabled()
/third_party/rust/crates/nix/test/sys/
H A Dtest_inotify.rs8 let instance = Inotify::init(InitFlags::IN_NONBLOCK).unwrap(); in test_inotify()
11 instance in test_inotify()
15 let events = instance.read_events(); in test_inotify()
20 let events = instance.read_events().unwrap(); in test_inotify()
26 let instance = Inotify::init(InitFlags::IN_NONBLOCK).unwrap(); in test_inotify_multi_events()
29 instance in test_inotify_multi_events()
33 let events = instance.read_events(); in test_inotify_multi_events()
46 let events = instance.read_events().unwrap(); in test_inotify_multi_events()
/third_party/vulkan-loader/tests/
H A Dloader_wsi_tests.cpp34 // When ICD doesn't support the extension, create instance should fail
111 InstWrapper instance(env.vulkan_functions); in TEST()
112 instance.create_info.add_extensions({VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WIN32_SURFACE_EXTENSION_NAME}); in TEST()
113 instance.CheckCreate(); in TEST()
117 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(instance.inst, &surf_create_info, nullptr, &surface)); in TEST()
120 env.vulkan_functions.vkDestroySurfaceKHR(instance.inst, surface, nullptr); in TEST()
189 InstWrapper instance(env.vulkan_functions); in TEST()
190 instance.create_info.add_extensions({VK_KHR_SURFACE_EXTENSION_NAME, VK_KHR_WIN32_SURFACE_EXTENSION_NAME}); in TEST()
191 instance.CheckCreate(); in TEST()
195 ASSERT_EQ(VK_SUCCESS, env.vulkan_functions.vkCreateWin32SurfaceKHR(instance in TEST()
[all...]
/third_party/skia/src/sksl/
H A DSkSLThreadContext.cpp149 ThreadContext& instance = ThreadContext::Instance(); in StartFragmentProcessor() local
150 instance.fStack.push({processor, emitArgs, StatementArray{}}); in StartFragmentProcessor()
151 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations); in StartFragmentProcessor()
156 ThreadContext& instance = Instance(); in EndFragmentProcessor() local
157 SkASSERT(!instance.fStack.empty()); in EndFragmentProcessor()
158 CurrentEmitArgs()->fFragBuilder->fDeclarations.swap(instance.fStack.top().fSavedDeclarations); in EndFragmentProcessor()
159 instance.fStack.pop(); in EndFragmentProcessor()
188 thread_local ThreadContext* instance = nullptr; member
191 return instance != nullptr; in IsActive()
195 SkASSERTF(instance, "ds in Instance()
[all...]
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_device.c58 uint64_t driver_flags = device->instance->debug_flags & TU_DEBUG_NOMULTIPOS; in tu_device_get_cache_uuid()
145 .KHR_performance_query = device->instance->debug_flags & TU_DEBUG_PERFC, in get_device_extensions()
239 struct tu_instance *instance) in tu_physical_device_init()
245 device->name = vk_asprintf(&instance->vk.alloc, in tu_physical_device_init()
249 device->name = vk_strdup(&instance->vk.alloc, fd_name, in tu_physical_device_init()
254 return vk_startup_errorf(instance, VK_ERROR_OUT_OF_HOST_MEMORY, in tu_physical_device_init()
260 result = vk_startup_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, in tu_physical_device_init()
272 result = vk_startup_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, in tu_physical_device_init()
277 result = vk_startup_errorf(instance, VK_ERROR_INITIALIZATION_FAILED, in tu_physical_device_init()
294 result = vk_physical_device_init(&device->vk, &instance in tu_physical_device_init()
238 tu_physical_device_init(struct tu_physical_device *device, struct tu_instance *instance) tu_physical_device_init() argument
389 tu_init_dri_options(struct tu_instance *instance) tu_init_dri_options() argument
406 struct tu_instance *instance; tu_CreateInstance() local
2243 vk_icdGetInstanceProcAddr(VkInstance instance, const char *pName) vk_icdGetInstanceProcAddr() argument
[all...]
/third_party/node/deps/v8/src/debug/
H A Ddebug-wasm-objects.cc41 Isolate* isolate, Handle<WasmInstanceObject> instance, in GetNameFromImportsAndExportsOrNull()
43 auto debug_info = instance->module_object().native_module()->GetDebugInfo(); in GetNameFromImportsAndExportsOrNull()
45 instance->module_object().native_module()->wire_bytes()); in GetNameFromImportsAndExportsOrNull()
313 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) { in Count()
314 return static_cast<uint32_t>(instance->module()->functions.size()); in Count()
318 Handle<WasmInstanceObject> instance, in Get()
321 isolate, instance, index) in Get()
327 Handle<WasmInstanceObject> instance, in GetName()
329 return GetWasmFunctionDebugName(isolate, instance, index); in GetName()
337 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) { in Count()
40 GetNameFromImportsAndExportsOrNull( Isolate* isolate, Handle<WasmInstanceObject> instance, wasm::ImportExportKindCode kind, uint32_t index) GetNameFromImportsAndExportsOrNull() argument
505 GetOrCreateInstanceProxyCache( Isolate* isolate, Handle<WasmInstanceObject> instance) GetOrCreateInstanceProxyCache() argument
520 GetOrCreateInstanceProxy(Isolate* isolate, Handle<WasmInstanceObject> instance) GetOrCreateInstanceProxy() argument
1016 GetWasmFunctionDebugName(Isolate* isolate, Handle<WasmInstanceObject> instance, uint32_t func_index) GetWasmFunctionDebugName() argument
1034 AddWasmInstanceObjectInternalProperties( Isolate* isolate, Handle<ArrayList> result, Handle<WasmInstanceObject> instance) AddWasmInstanceObjectInternalProperties() argument
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dclass-inheritance-builtin-typedarray.js16 function isInstanceofTypedArray (instance) {
17 assert (instance instanceof C);
18 assert (instance instanceof B);
19 assert (instance instanceof A);
20 assert (instance instanceof Uint8Array);
/third_party/mesa3d/src/microsoft/vulkan/
H A Ddzn_meta.c37 struct dzn_instance *instance = in dzn_meta_compile_shader() local
38 container_of(device->vk.physical->instance, struct dzn_instance, vk); in dzn_meta_compile_shader()
42 if ((instance->debug_flags & DZN_DEBUG_NIR) && in dzn_meta_compile_shader()
43 (instance->debug_flags & DZN_DEBUG_INTERNAL)) in dzn_meta_compile_shader()
50 .validator_version_max = dxil_get_validator_version(instance->dxil_validator), in dzn_meta_compile_shader()
59 bool res = dxil_validate_module(instance->dxil_validator, in dzn_meta_compile_shader()
63 if ((instance->debug_flags & DZN_DEBUG_DXIL) && in dzn_meta_compile_shader()
64 (instance->debug_flags & DZN_DEBUG_INTERNAL)) { in dzn_meta_compile_shader()
65 char *disasm = dxil_disasm_module(instance->dxil_validator, in dzn_meta_compile_shader()
78 if ((instance in dzn_meta_compile_shader()
117 struct dzn_instance *instance = dzn_meta_indirect_draw_init() local
267 struct dzn_instance *instance = dzn_meta_triangle_fan_rewrite_index_init() local
743 struct dzn_instance *instance = dzn_meta_blits_init() local
[all...]
/third_party/lzma/CPP/Windows/Control/
H A DWindow2.cpp51 HWND parentWindow, HMENU idOrHMenu, HINSTANCE instance) in CreateEx()
54 if (!::GetClassInfo(instance, className, &wc)) in CreateEx()
61 wc.hInstance = instance; in CreateEx()
71 x, y, width, height, parentWindow, idOrHMenu, instance, this); in CreateEx()
78 HWND parentWindow, HMENU idOrHMenu, HINSTANCE instance) in CreateEx()
84 needRegister = ::GetClassInfoW(instance, className, &wc) == 0; in CreateEx()
98 needRegister = ::GetClassInfoA(instance, classNameP, &windowClassA) == 0; in CreateEx()
108 wc.hInstance = instance; in CreateEx()
118 x, y, width, height, parentWindow, idOrHMenu, instance, this); in CreateEx()
49 CreateEx(DWORD exStyle, LPCTSTR className, LPCTSTR windowName, DWORD style, int x, int y, int width, int height, HWND parentWindow, HMENU idOrHMenu, HINSTANCE instance) CreateEx() argument
76 CreateEx(DWORD exStyle, LPCWSTR className, LPCWSTR windowName, DWORD style, int x, int y, int width, int height, HWND parentWindow, HMENU idOrHMenu, HINSTANCE instance) CreateEx() argument
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_multistages_capture_test/src/
H A Dmedialibrary_multistages_photo_capture_test.cpp485 MultiStagesCaptureDfxFirstVisit &instance = MultiStagesCaptureDfxFirstVisit::GetInstance(); in HWTEST_F() local
486 instance.Report(PHOTO_ID_FOR_TEST); in HWTEST_F()
489 instance.Report(PHOTO_ID_FOR_TEST); in HWTEST_F()
503 MultiStagesCaptureDfxFirstVisit &instance = MultiStagesCaptureDfxFirstVisit::GetInstance(); in HWTEST_F() local
505 instance.Report(""); in HWTEST_F()
508 instance.Report("1"); in HWTEST_F()
511 instance.Report(PHOTO_ID_FOR_TEST); in HWTEST_F()
519 MultiStagesCaptureDfxTriggerRatio &instance = MultiStagesCaptureDfxTriggerRatio::GetInstance(); in HWTEST_F() local
520 instance.SetTrigger(MultiStagesCaptureTriggerType::AUTO); in HWTEST_F()
522 EXPECT_EQ(instance in HWTEST_F()
656 MultiStagesPhotoCaptureManager &instance = MultiStagesPhotoCaptureManager::GetInstance(); HWTEST_F() local
699 MultiStagesPhotoCaptureManager &instance = MultiStagesPhotoCaptureManager::GetInstance(); HWTEST_F() local
717 MultiStagesPhotoCaptureManager &instance = MultiStagesPhotoCaptureManager::GetInstance(); HWTEST_F() local
735 MultiStagesPhotoCaptureManager &instance = MultiStagesPhotoCaptureManager::GetInstance(); HWTEST_F() local
749 MultiStagesPhotoCaptureManager &instance = MultiStagesPhotoCaptureManager::GetInstance(); HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/test/unittest/recovery_info_timer_test/
H A Drecovery_info_timer_test.cpp52 RecoveryInfoTimer &instance = RecoveryInfoTimer::GetInstance(); in HWTEST_F() local
57 instance.SubmitSaveRecoveryInfo(recoveryInfo); in HWTEST_F()
62 auto i = find_if(instance.recoveryInfoQueue_.begin(), instance.recoveryInfoQueue_.end(), findByInfo); in HWTEST_F()
63 EXPECT_TRUE(i != instance.recoveryInfoQueue_.end()); in HWTEST_F()

Completed in 22 milliseconds

12345678910>>...91