Home
last modified time | relevance | path

Searched refs:mInstance (Results 1 – 14 of 14) sorted by relevance

/cts/suite/audio_quality/lib/src/
DSettings.cpp20 Settings* Settings::mInstance = NULL; member in Settings
24 if (mInstance == NULL) { in Instance()
25 mInstance = new Settings(); in Instance()
27 return mInstance; in Instance()
32 delete mInstance; in Finalize()
33 mInstance = NULL; in Finalize()
DLog.cpp22 Log* Log::mInstance = NULL; member in Log
30 if (!mInstance) { in Instance()
31 mInstance = new Log(); in Instance()
32 ASSERT_PLAIN(mInstance->init(dirName)); in Instance()
34 return mInstance; in Instance()
38 delete mInstance; in Finalize()
39 mInstance = NULL; in Finalize()
DReport.cpp24 Report* Report::mInstance = NULL; member in Report
28 if (mInstance == NULL) { in Instance()
29 mInstance = new Report(); in Instance()
30 ASSERT(mInstance->init(dirName)); in Instance()
32 return mInstance; in Instance()
36 delete mInstance; in Finalize()
37 mInstance = NULL; in Finalize()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppActivityReference.java36 final TestAppInstance mInstance; field in TestAppActivityReference
42 mInstance = instance; in TestAppActivityReference()
48 return mInstance; in testAppInstance()
64 if (mInstance.user().equals(TestApis.users().instrumented())) { in start()
69 TestApis.context().androidContextAsUser(mInstance.user()).startActivity(intent); in start()
76 TestAppActivity.class, new TestAppActivityImpl(mInstance, mComponent)); in start()
95 TestAppActivity.class, new TestAppActivityImpl(mInstance, mComponent)); in start()
102 return ActivityEvents.forActivity(new TestAppActivityImpl(mInstance, mComponent)); in events()
DTestAppActivities.java33 final TestAppInstance mInstance; field in TestAppActivities
43 mInstance = instance; in TestAppActivities()
56 mInstance.packageName(), /* flags= */ PackageManager.GET_ACTIVITIES); in activities()
DTestAppActivitiesQueryBuilder.java55 return new UnresolvedTestAppActivity(mTestAppActivities.mInstance, in get()
58 mTestAppActivities.mInstance.packageName(), in get()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvents.java56 private static Events mInstance; field in Events
59 if (mInstance == null) { in getInstance()
61 if (mInstance == null) { in getInstance()
62 mInstance = new Events(context.getApplicationContext()); in getInstance()
68 mInstance.loadHistory(); in getInstance()
71 return mInstance; in getInstance()
/cts/suite/audio_quality/lib/include/
DSettings.h38 static Settings* mInstance;
DReport.h56 static Report* mInstance;
/cts/tests/tests/graphics/jni/
DVulkanPreTransformTestHelpers.cpp110 : mInstance(VK_NULL_HANDLE), in DeviceInfo()
124 if (mInstance) { in ~DeviceInfo()
125 vkDestroySurfaceKHR(mInstance, mSurface, nullptr); in ~DeviceInfo()
126 vkDestroyInstance(mInstance, nullptr); in ~DeviceInfo()
127 mInstance = VK_NULL_HANDLE; in ~DeviceInfo()
169 VK_CALL(vkCreateInstance(&instanceInfo, nullptr, &mInstance)); in init()
172 VK_CALL(vkEnumeratePhysicalDevices(mInstance, &gpuCount, nullptr)); in init()
179 VK_CALL(vkEnumeratePhysicalDevices(mInstance, &gpuCount, gpus.data())); in init()
189 VK_CALL(vkCreateAndroidSurfaceKHR(mInstance, &surfaceInfo, nullptr, &mSurface)); in init()
DVulkanPreTransformTestHelpers.h45 VkInstance mInstance;
DVulkanTestHelpers.h50 VkInstance mInstance = VK_NULL_HANDLE;
DVulkanTestHelpers.cpp116 VK_CALL(vkCreateInstance(&createInfo, nullptr, &mInstance)); in init()
120 int status = vkEnumeratePhysicalDevices(mInstance, &gpuCount, &mGpu); in init()
256 if (mInstance != VK_NULL_HANDLE) { in ~VkInit()
257 vkDestroyInstance(mInstance, nullptr); in ~VkInit()
258 mInstance = VK_NULL_HANDLE; in ~VkInit()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java965 private final BaseHostJUnit4Test mInstance; field in StagedInstallTest.FailedTestLogHook
969 this.mInstance = instance; in FailedTestLogHook()
987 … return mInstance.getDevice().executeShellV2Command("pm get-stagedsessions").getStdout(); in getStagedSessions()