Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 55) sorted by relevance

123

/developtools/profiler/host/ohosprofiler/src/test/java/ohos/devtools/views/distributed/util/
DDistributedDBTest.java50 DistributedDB instance = DistributedDB.getInstance(); in load() local
51 final Field field = instance.getClass().getDeclaredField("isLocal"); in load()
53 assertTrue((boolean) field.get(instance)); in load()
60 DistributedDB instance = DistributedDB.getInstance(); in loadTrue() local
61 final Field field = instance.getClass().getDeclaredField("isLocal"); in loadTrue()
63 assertTrue((boolean) field.get(instance)); in loadTrue()
69 DistributedDB instance = DistributedDB.getInstance(); in loadTrueNoPath() local
70 final Field field = instance.getClass().getDeclaredField("isLocal"); in loadTrueNoPath()
72 assertTrue((boolean) field.get(instance)); in loadTrueNoPath()
79 DistributedDB instance = DistributedDB.getInstance(); in loadTrueEmptyPath() local
[all …]
/developtools/profiler/host/ohosprofiler/src/test/java/ohos/devtools/views/trace/util/
DDbTest.java62 Db instance = Db.getInstance(); in loadTrue() local
63 final Field field = instance.getClass().getDeclaredField("isLocal"); in loadTrue()
65 assertFalse((boolean) field.get(instance)); in loadTrue()
71 Db instance = Db.getInstance(); in loadTrueNoPath() local
72 final Field field = instance.getClass().getDeclaredField("isLocal"); in loadTrueNoPath()
74 assertTrue((boolean) field.get(instance)); in loadTrueNoPath()
81 Db instance = Db.getInstance(); in loadTrueEmptyPath() local
82 final Field field = instance.getClass().getDeclaredField("isLocal"); in loadTrueEmptyPath()
84 assertTrue((boolean) field.get(instance)); in loadTrueEmptyPath()
91 Db instance = Db.getInstance(); in loadFalse() local
[all …]
DUtilsTest.java49 Utils instance = Utils.getInstance(); in getInstance() local
50 assertNotEquals(null, instance); in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/userdata/
DUserDataService.java28 private static UserDataService instance; field in UserDataService
39 if (instance == null) { in getInstance()
41 if (instance == null) { in getInstance()
42 instance = new UserDataService(); in getInstance()
46 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/memory/agentbean/
DMemoryInstanceInfo.java46 private String instance; field in MemoryInstanceInfo
123 return instance; in getInstance()
131 public void setInstance(String instance) { in setInstance() argument
132 this.instance = instance; in setInstance()
192 … + instance + '\'' + ", allocTime=" + allocTime + ", deallocTime=" + deallocTime + ", createTime=" in toString()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/cpu/
DCpuService.java31 private static CpuService instance; field in CpuService
42 if (instance == null) { in getInstance()
44 if (instance == null) { in getInstance()
45 instance = new CpuService(); in getInstance()
49 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/diskio/
DDiskIoService.java31 private static DiskIoService instance; field in DiskIoService
42 if (instance == null) { in getInstance()
44 if (instance == null) { in getInstance()
45 instance = new DiskIoService(); in getInstance()
49 return instance; in getInstance()
DDiskIoDataCache.java39 private static DiskIoDataCache instance; field in DiskIoDataCache
53 if (instance == null) { in getInstance()
55 if (instance == null) { in getInstance()
56 instance = new DiskIoDataCache(); in getInstance()
60 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/memory/memoryservice/
DMemoryService.java33 private static MemoryService instance; field in MemoryService
44 if (instance == null) { in getInstance()
46 if (instance == null) { in getInstance()
47 instance = new MemoryService(); in getInstance()
51 return instance; in getInstance()
/developtools/profiler/host/smartperf/client/
DDDR.cpp20 DDR *DDR::instance = nullptr; member in OHOS::SmartPerf::DDR
23 if (instance == nullptr) { in getInstance()
25 if (instance == nullptr) { in getInstance()
26 instance = new DDR(); in getInstance()
30 return instance; in getInstance()
DGPU.cpp22 GPU *GPU::instance = nullptr; member in OHOS::SmartPerf::GPU
26 if (instance == nullptr) { in getInstance()
28 if (instance == nullptr) { in getInstance()
29 instance = new GPU(); in getInstance()
33 return instance; in getInstance()
DTemperature.cpp21 Temperature *Temperature::instance = nullptr; member in OHOS::SmartPerf::Temperature
24 if (instance == nullptr) { in getInstance()
26 if (instance == nullptr) { in getInstance()
27 instance = new Temperature(); in getInstance()
31 return instance; in getInstance()
DRAM.cpp21 RAM *RAM::instance = nullptr; member in OHOS::SmartPerf::RAM
24 if (instance == nullptr) { in getInstance()
25 instance = new RAM(); in getInstance()
27 return instance; in getInstance()
DPower.cpp23 Power *Power::instance = nullptr; member in OHOS::SmartPerf::Power
27 if (instance == nullptr) { in getInstance()
29 if (instance == nullptr) { in getInstance()
30 instance = new Power(); in getInstance()
34 return instance; in getInstance()
DCPU.cpp24 CPU *CPU::instance = nullptr; member in OHOS::SmartPerf::CPU
33 if (instance == nullptr) { in getInstance()
35 if (instance == nullptr) { in getInstance()
36 instance = new CPU(); in getInstance()
40 return instance; in getInstance()
DFPS.cpp25 FPS *FPS::instance = nullptr; member in OHOS::SmartPerf::FPS
29 if (instance == nullptr) { in getInstance()
31 if (instance == nullptr) { in getInstance()
32 instance = new FPS(); in getInstance()
36 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/services/memory/nativeservice/
DNativeDataExternalInterface.java99 NativeInstanceObject instance = null; in executeParseFile() local
106 instance = createInstance(line); in executeParseFile()
118 if (instance != null) { in executeParseFile()
119 instance.addNativeFrames(nativeFrame); in executeParseFile()
121 instance.setFileName(nativeFrame.getFileName()); in executeParseFile()
122 instance.setFunctionName(nativeFrame.getFunctionName()); in executeParseFile()
123 addrFunctionMap.put(instance.getAddr(), instance.getFunctionName()); in executeParseFile()
125 if (!instance.isAdd()) { in executeParseFile()
126 nativeInstanceMap.put(instance.getFunctionName(), instance); in executeParseFile() local
127 instance.setAdd(true); in executeParseFile()
/developtools/profiler/host/ohosprofiler/src/test/java/ohos/devtools/views/hilog/
DHiLogFilterTest.java50 HiLogFilter instance = HiLogFilter.getInstance(); in getInstanceTest01() local
51 Assert.assertNotNull(instance); in getInstanceTest01()
65 HiLogFilter instance = HiLogFilter.getInstance(); in getInstanceTest02() local
67 Assert.assertEquals(instance, hiLogFilter); in getInstanceTest02()
/developtools/profiler/host/smartperf/ide/test/trace/component/trace/base/
DUtils.test.ts24 let instance = Utils.getInstance(); variable
26 expect(instance).toBe(instance2)
30 let instance = Utils.getInstance(); variable
31 expect(instance.getStatusMap().get("D")).toBe("Uninterruptible Sleep")
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/datasources/databases/databasepool/
DDataBaseRsHelp.java60 T instance = (T) aClass.newInstance(); in util() local
62 … Field declaredField = instance.getClass().getDeclaredField(fs[index].getName()); in util()
65 declaredField.set(instance, rs.getString(fs[index].getName())); in util()
67 declaredField.set(instance, rs.getInt(fs[index].getName())); in util()
72 list.add(instance); in util()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/datasources/utils/quartzmanager/
DQuartzManager.java45 private static volatile QuartzManager instance; field in QuartzManager
56 if (instance == null) { in getInstance()
58 if (instance == null) { in getInstance()
59 instance = new QuartzManager(); in getInstance()
63 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/main/java/ohos/devtools/datasources/utils/device/service/
DDeviceForwardPort.java41 private static volatile DeviceForwardPort instance; field in DeviceForwardPort
56 if (instance == null) { in getInstance()
58 if (instance == null) { in getInstance()
59 instance = new DeviceForwardPort(); in getInstance()
63 return instance; in getInstance()
/developtools/profiler/host/ohosprofiler/src/test/java/ohos/devtools/services/memory/
DClassInfoDaoTest.java70 ClassInfoDao instance = new ClassInfoDao(); in testGetInstance01() local
71 Assert.assertNotNull(instance); in testGetInstance01()
85 ClassInfoDao instance = new ClassInfoDao(); in testGetInstance02() local
87 Assert.assertEquals(instance, classInfoDaoInstance); in testGetInstance02()
/developtools/profiler/host/smartperf/ide/src/trace/component/trace/base/
DUtils.ts18 private static instance: Utils | null = null; property in Utils
39 if (Utils.instance == null) {
40 Utils.instance = new Utils();
42 return Utils.instance
/developtools/profiler/device/services/ipc/src/
Dclient_map.cpp25 static ClientMap instance; in GetInstance() local
26 return instance; in GetInstance()

123