/base/powermgr/battery_statistics/services/native/src/entities/ |
D | sensor_entity.cpp | 34 int64_t SensorEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument 39 auto gravityIter = gravityTimerMap_.find(uid); in GetActiveTimeMs() 42 … STATS_HILOGD(COMP_SVC, "Get gravity on time: %{public}" PRId64 "ms for uid: %{public}d", in GetActiveTimeMs() 43 activeTimeMs, uid); in GetActiveTimeMs() 46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 50 auto proximityIter = proximityTimerMap_.find(uid); in GetActiveTimeMs() 53 … STATS_HILOGD(COMP_SVC, "Get proximity on time: %{public}" PRId64 "ms for uid: %{public}d", in GetActiveTimeMs() 54 activeTimeMs, uid); in GetActiveTimeMs() 57 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 66 double SensorEntity::CalculateGravity(int32_t uid) in CalculateGravity() argument [all …]
|
D | cpu_entity.cpp | 37 int64_t CpuEntity::GetCpuTimeMs(int32_t uid) in GetCpuTimeMs() argument 40 auto iter = cpuTimeMap_.find(uid); in GetCpuTimeMs() 42 STATS_HILOGD(COMP_SVC, "Get cpu time: %{public}sms for uid: %{public}d", in GetCpuTimeMs() 43 std::to_string(cpuTimeMs).c_str(), uid); in GetCpuTimeMs() 46 STATS_HILOGD(COMP_SVC, "No cpu time realted to uid: %{public}d was found, return 0", uid); in GetCpuTimeMs() 62 void CpuEntity::Calculate(int32_t uid) in Calculate() argument 65 // Get cpu time related with uid in Calculate() 66 std::vector<int64_t> cpuTimeVec = cpuReader_->GetUidCpuTimeMs(uid); in Calculate() 71 auto cpuTimeIter = cpuTimeMap_.find(uid); in Calculate() 73 STATS_HILOGD(COMP_SVC, "Update cpu time: %{public}sms for uid: %{public}d", in Calculate() [all …]
|
D | uid_entity.cpp | 39 void UidEntity::UpdateUidMap(int32_t uid) in UpdateUidMap() argument 41 if (uid > StatsUtils::INVALID_VALUE) { in UpdateUidMap() 42 auto iter = uidPowerMap_.find(uid); in UpdateUidMap() 44 STATS_HILOGD(COMP_SVC, "Uid has already been added, ignore"); in UpdateUidMap() 46 STATS_HILOGD(COMP_SVC, "Update %{public}d to uid power map", uid); in UpdateUidMap() 47 uidPowerMap_.insert(std::pair<int32_t, double>(uid, StatsUtils::DEFAULT_VALUE)); in UpdateUidMap() 61 double UidEntity::CalculateForConnectivity(int32_t uid) in CalculateForConnectivity() argument 68 bluetoothEntity->Calculate(uid); in CalculateForConnectivity() 69 power += bluetoothEntity->GetEntityPowerMah(uid); in CalculateForConnectivity() 70 …HILOGD(COMP_SVC, "Connectivity power consumption: %{public}lfmAh for uid: %{public}d", power, uid); in CalculateForConnectivity() [all …]
|
D | flashlight_entity.cpp | 34 int64_t FlashlightEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t lev… in GetActiveTimeMs() argument 39 auto iter = flashlightTimerMap_.find(uid); in GetActiveTimeMs() 42 … STATS_HILOGD(COMP_SVC, "Get flashlight on time: %{public}" PRId64 "ms for uid: %{public}d", in GetActiveTimeMs() 43 activeTimeMs, uid); in GetActiveTimeMs() 46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 55 void FlashlightEntity::Calculate(int32_t uid) in Calculate() argument 59 auto flashlightOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_FLASHLIGHT_ON); in Calculate() 61 auto iter = flashlightPowerMap_.find(uid); in Calculate() 63 …STATS_HILOGD(COMP_SVC, "Update flashlight on power consumption: %{public}lfmAh for uid: %{public}d… in Calculate() 64 flashlightOnAverageMa, uid); in Calculate() [all …]
|
D | wakelock_entity.cpp | 34 int64_t WakelockEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument 39 auto iter = wakelockTimerMap_.find(uid); in GetActiveTimeMs() 42 … STATS_HILOGD(COMP_SVC, "Get wakelock on time: %{public}" PRId64 "ms for uid: %{public}d", in GetActiveTimeMs() 43 activeTimeMs, uid); in GetActiveTimeMs() 46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 55 void WakelockEntity::Calculate(int32_t uid) in Calculate() argument 59 auto wakelockOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_WAKELOCK_HOLD); in Calculate() 61 auto iter = wakelockPowerMap_.find(uid); in Calculate() 63 … STATS_HILOGD(COMP_SVC, "Update wakelock on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 64 wakelockOnPowerMah, uid); in Calculate() [all …]
|
D | gnss_entity.cpp | 34 int64_t GnssEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument 39 auto iter = gnssTimerMap_.find(uid); in GetActiveTimeMs() 42 …STATS_HILOGD(COMP_SVC, "Get gnss on time: %{public}" PRId64 "ms for uid: %{public}d", activeTimeMs, in GetActiveTimeMs() 43 uid); in GetActiveTimeMs() 46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 55 void GnssEntity::Calculate(int32_t uid) in Calculate() argument 58 auto gnssOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_GNSS_ON); in Calculate() 60 auto iter = gnssPowerMap_.find(uid); in Calculate() 62 … STATS_HILOGD(COMP_SVC, "Update gnss on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 63 gnssOnAverageMa, uid); in Calculate() [all …]
|
D | audio_entity.cpp | 34 int64_t AudioEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument 39 auto iter = audioTimerMap_.find(uid); in GetActiveTimeMs() 42 … STATS_HILOGD(COMP_SVC, "Get audio on time: %{public}" PRId64 "ms for uid: %{public}d", in GetActiveTimeMs() 43 activeTimeMs, uid); in GetActiveTimeMs() 46 STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d, return 0", uid); in GetActiveTimeMs() 55 void AudioEntity::Calculate(int32_t uid) in Calculate() argument 58 auto audioOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_AUDIO_ON); in Calculate() 60 auto iter = audioPowerMap_.find(uid); in Calculate() 62 … STATS_HILOGD(COMP_SVC, "Update audio on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 63 audioOnAverageMa, uid); in Calculate() [all …]
|
D | alarm_entity.cpp | 34 int64_t AlarmEntity::GetConsumptionCount(StatsUtils::StatsType statsType, int32_t uid) in GetConsumptionCount() argument 39 auto almIter = alarmCounterMap_.find(uid); in GetConsumptionCount() 42 … STATS_HILOGD(COMP_SVC, "Get alarm count: %{public}" PRId64 " for uid: %{public}d", count, uid); in GetConsumptionCount() 45 … STATS_HILOGD(COMP_SVC, "No alarm count related to uid: %{public}d was found, return 0", uid); in GetConsumptionCount() 54 void AlarmEntity::Calculate(int32_t uid) in Calculate() argument 57 auto alarmOnCount = GetConsumptionCount(StatsUtils::STATS_TYPE_ALARM, uid); in Calculate() 59 auto iter = alarmPowerMap_.find(uid); in Calculate() 61 … STATS_HILOGD(COMP_SVC, "Update alarm on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 62 alarmOnAverageMa, uid); in Calculate() 65 … STATS_HILOGD(COMP_SVC, "Create alarm on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() [all …]
|
D | bluetooth_entity.cpp | 39 void BluetoothEntity::Calculate(int32_t uid) in Calculate() argument 41 if (uid > StatsUtils::INVALID_VALUE) { in Calculate() 43 CalculateBtPowerForApp(uid); in Calculate() 79 "uid power consumption: %{public}lfmAh, total power consumption: %{public}lfmAh", in CalculateBtPower() 90 void BluetoothEntity::CalculateBtPowerForApp(int32_t uid) in CalculateBtPowerForApp() argument 95 auto bluetoothBrScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BR_SCAN); in CalculateBtPowerForApp() 97 UpdateAppBluetoothBlePower(POWER_TYPE_BR, uid, bluetoothBrScanPowerMah); in CalculateBtPowerForApp() 102 auto bluetoothBleScanTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_BLUETOOTH_BLE_SCAN); in CalculateBtPowerForApp() 104 UpdateAppBluetoothBlePower(POWER_TYPE_BLE, uid, bluetoothBleScanPowerMah); in CalculateBtPowerForApp() 107 UpdateAppBluetoothBlePower(POWER_TYPE_ALL, uid, bluetoothUidPowerMah); in CalculateBtPowerForApp() [all …]
|
D | camera_entity.cpp | 32 int64_t CameraEntity::GetActiveTimeMs(int32_t uid, StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument 37 auto uidIter = cameraIter.second.find(uid); in GetActiveTimeMs() 41 … STATS_HILOGD(COMP_SVC, "Didn't find related timer for uid: %{public}d in camera id: %{private}s", in GetActiveTimeMs() 42 uid, cameraIter.first.c_str()); in GetActiveTimeMs() 49 void CameraEntity::Calculate(int32_t uid) in Calculate() argument 52 auto cameraOnTimeMs = GetActiveTimeMs(uid, StatsUtils::STATS_TYPE_CAMERA_ON); in Calculate() 54 auto iter = cameraPowerMap_.find(uid); in Calculate() 56 … STATS_HILOGD(COMP_SVC, "Update camera on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() 57 cameraOnAverageMa, uid); in Calculate() 60 … STATS_HILOGD(COMP_SVC, "Create camera on power consumption: %{public}lfmAh for uid: %{public}d", in Calculate() [all …]
|
/base/powermgr/battery_statistics/services/native/test/unittest/src/ |
D | stats_audio_test.cpp | 61 int32_t uid = 10003; variable 67 "UID", uid, "STATE", stateRunning); 70 "UID", uid, "STATE", stateStopped); 72 double powerMahBefore = statsClient.GetAppStatsMah(uid); 74 double powerMahAfter = statsClient.GetAppStatsMah(uid); 91 int32_t uid = 10003; variable 97 "UID", uid, "STATE", stateRunning); 100 "UID", uid, "STATE", stateStopped); 103 double actualPower = statsClient.GetAppStatsMah(uid); 120 int32_t uid = 10003; variable [all …]
|
D | stats_bluetooth_test.cpp | 29 static void WriteBluetoothEvent(int32_t pid, int32_t uid, long time) in WriteBluetoothEvent() argument 37 "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent() 40 "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent() 43 "PID", pid, "UID", uid); in WriteBluetoothEvent() 46 "PID", pid, "UID", uid); in WriteBluetoothEvent() 49 "PID", pid, "UID", uid, "STATE", stateOn); in WriteBluetoothEvent() 52 "PID", pid, "UID", uid, "STATE", stateOff); in WriteBluetoothEvent() 55 "PID", pid, "UID", uid, "STATE", stateScanOn); in WriteBluetoothEvent() 58 "PID", pid, "UID", uid, "STATE", stateScanOff); in WriteBluetoothEvent() 96 int32_t uid = 10003; variable [all …]
|
D | stats_location_test.cpp | 64 int32_t uid = 10003; variable 69 …SysEvent::Write("LOCATION", "GNSS_STATE", HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, 72 …SysEvent::Write("LOCATION", "GNSS_STATE", HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, 75 double powerMahBefore = statsClient.GetAppStatsMah(uid); 77 double powerMahAfter = statsClient.GetAppStatsMah(uid); 95 int32_t uid = 10003; variable 100 …SysEvent::Write("LOCATION", "GNSS_STATE", HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, 103 …SysEvent::Write("LOCATION", "GNSS_STATE", HiSysEvent::EventType::STATISTIC, "PID", pid, "UID", uid, 107 double actualPower = statsClient.GetAppStatsMah(uid); 125 int32_t uid = 10003; variable [all …]
|
D | stats_camera_test.cpp | 62 int32_t uid = 10003; variable 67 "UID", uid, "ID", cameraId); 72 double powerMahBefore = statsClient.GetAppStatsMah(uid); 74 double powerMahAfter = statsClient.GetAppStatsMah(uid); 91 int32_t uid = 10003; variable 96 "UID", uid, "ID", cameraId); 102 double actualPower = statsClient.GetAppStatsMah(uid); 119 int32_t uid = 10003; variable 126 "UID", uid, "ID", deviceId); 130 double actualPercent = statsClient.GetAppStatsPercent(uid); [all …]
|
D | stats_powermgr_test.cpp | 69 int32_t uid = 10003; variable 73 pid, "UID", uid, "STATE", stateOn); 76 pid, "UID", uid, "STATE", stateOff); 79 long actualTime = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_SENSOR_GRAVITY_ON, uid); 96 int32_t uid = 10003; variable 102 pid, "UID", uid, "STATE", stateOn); 105 pid, "UID", uid, "STATE", stateOff); 108 double actualPower = statsClient.GetAppStatsMah(uid); 125 int32_t uid = 10003; variable 133 pid, "UID", uid, "STATE", stateOn); [all …]
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/ |
D | faultlogger_service_ohos.cpp | 40 void FaultloggerServiceOhos::ClearQueryStub(int32_t uid) in ClearQueryStub() argument 43 queries_.erase(uid); in ClearQueryStub() 48 int32_t uid = IPCSkeleton::GetCallingUid(); in Dump() local 49 if ((uid != UID_SHELL) && (uid != UID_ROOT) && (uid != UID_HIDUMPER)) { in Dump() 50 dprintf(fd, "No permission for uid:%d.\n", uid); in Dump() 101 int32_t uid = IPCSkeleton::GetCallingUid(); in AddFaultLog() local 102 HIVIEW_LOGD("info.uid:%{public}d uid:%{public}d info.pid:%{public}d", info.uid, uid, info.pid); in AddFaultLog() 103 if (((uid != static_cast<int32_t>(getuid()))) && (uid != info.uid)) { in AddFaultLog() 104 HIVIEW_LOGW("Fail to add fault log, mismatch uid:%{public}d(%{public})", uid, info.uid); in AddFaultLog() 110 outInfo.id = info.uid; in AddFaultLog() [all …]
|
/base/powermgr/battery_statistics/services/native/src/ |
D | cpu_time_reader.cpp | 43 int64_t CpuTimeReader::GetUidCpuActiveTimeMs(int32_t uid) in GetUidCpuActiveTimeMs() argument 46 auto iter = activeTimeMap_.find(uid); in GetUidCpuActiveTimeMs() 49 STATS_HILOGD(COMP_SVC, "Get cpu active time: %{public}s for uid: %{public}d", in GetUidCpuActiveTimeMs() 50 std::to_string(cpuActiveTime).c_str(), uid); in GetUidCpuActiveTimeMs() 52 STATS_HILOGD(COMP_SVC, "No cpu active time found for uid: %{public}d, return 0", uid); in GetUidCpuActiveTimeMs() 57 void CpuTimeReader::DumpInfo(std::string& result, int32_t uid) in DumpInfo() argument 59 auto uidIter = lastUidTimeMap_.find(uid); in DumpInfo() 61 STATS_HILOGE(COMP_SVC, "No related CPU info for uid: %{public}d", uid); in DumpInfo() 65 auto freqIter = lastFreqTimeMap_.find(uid); in DumpInfo() 84 int64_t CpuTimeReader::GetUidCpuClusterTimeMs(int32_t uid, uint32_t cluster) in GetUidCpuClusterTimeMs() argument [all …]
|
D | battery_stats_core.cpp | 104 STATS_HILOGD(COMP_SVC, "Create uid entity"); in CreateAppEntity() 208 …eryStatsCore::UpdateStats(StatsUtils::StatsType statsType, int64_t time, int64_t data, int32_t uid) in UpdateStats() argument 211 … "Update for duration, statsType: %{public}s, uid: %{public}d, time: %{public}" PRId64 ", " \ in UpdateStats() 213 StatsUtils::ConvertStatsType(statsType).c_str(), uid, time, data); in UpdateStats() 214 if (uid > StatsUtils::INVALID_VALUE) { in UpdateStats() 215 uidEntity_->UpdateUidMap(uid); in UpdateStats() 220 UpdateCounter(wifiEntity_, statsType, data, uid); in UpdateStats() 223 UpdateCounter(alarmEntity_, statsType, data, uid); in UpdateStats() 231 int32_t uid) in UpdateConnectivityStats() argument 243 UpdateTimer(bluetoothEntity_, statsType, state, uid); in UpdateConnectivityStats() [all …]
|
/base/notification/distributed_notification_service/ |
D | hisysevent.yaml | 20 UID: {type: INT32, desc: subscriber uid} 28 UID: {type: INT32, desc: uid} 35 UID: {type: INT32, desc: uid} 52 UID: {type: INT32, desc: uid} 58 UID: {type: INT32, desc: subscriber uid} 65 UID: {type: INT32, desc: subscriber uid} 72 UID: {type: INT32, desc: uid} 78 UID: {type: INT32, desc: uid} 95 UID: {type: INT32, desc: uid} 102 UID: {type: INT32, desc: uid} [all …]
|
/base/powermgr/battery_statistics/services/native/include/entities/ |
D | uid_entity.h | 30 void Calculate(int32_t uid = StatsUtils::INVALID_VALUE) override; 32 … double GetStatsPowerMah(StatsUtils::StatsType statsType, int32_t uid = StatsUtils::INVALID_VALUE) 34 void UpdateUidMap(int32_t uid) override; 37 void DumpInfo(std::string& result, int32_t uid = StatsUtils::INVALID_VALUE) override; 40 void AddtoStatsList(int32_t uid, double power); 41 double GetPowerForCommon(StatsUtils::StatsType statsType, int32_t uid); 42 double GetPowerForConnectivity(StatsUtils::StatsType statsType, int32_t uid); 43 void DumpForBluetooth(int32_t uid, std::string& result); 44 void DumpForCommon(int32_t uid, std::string& result); 45 double CalculateForConnectivity(int32_t uid); [all …]
|
/base/startup/appspawn_lite/services/test/unittest/common/ |
D | message_func_test.cpp | 54 …g_badStrings.push_back(std::string("{bundleName\":\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 55 …g_badStrings.push_back(std::string("{\"bundleName:\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 56 …g_badStrings.push_back(std::string("{\"bundleName\":nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 57 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV,\"identityID\":\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 58 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",identityID\":\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 59 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",\"identityID:\"1\",\"uID\":10,\"gID\… in SetUpTestCase() 60 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",\"identityID\":1\",\"uID\":10,\"gID\… in SetUpTestCase() 61 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",\"identityID\":\"1,\"uID\":10,\"gID\… in SetUpTestCase() 62 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",\"identityID\":\"1\",uID\":10,\"gID\… in SetUpTestCase() 63 …g_badStrings.push_back(std::string("{\"bundleName\":\"nameV\",\"identityID\":\"1\",\"uID:10,\"gID\… in SetUpTestCase() [all …]
|
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_auth_list_mgr.c | 58 uint32_t uid; in IsUidExist() local 61 (void)memcpy_s(&uid, sizeof(uint32_t), list->data + offset, sizeof(uint32_t)); in IsUidExist() 63 if (uid == targetUid) { in IsUidExist() 86 static int32_t InsertUid(const struct CmBlob *originList, uint32_t uid, struct CmBlob *addedList) in InsertUid() argument 95 bool isUidExist = IsUidExist(originList, count, uid, &position); in InsertUid() 105 uint32_t size = originList->size + sizeof(uint32_t); /* add one uid */ in InsertUid() 117 … if (memcpy_s(data + originList->size, size - originList->size, &uid, sizeof(uint32_t)) != EOK) { in InsertUid() 118 CM_LOG_E("copy inserted uid failed"); in InsertUid() 140 static int32_t RemoveUid(const struct CmBlob *originList, uint32_t uid, struct CmBlob *removedList) in RemoveUid() argument 149 bool isUidExist = IsUidExist(originList, count, uid, &position); in RemoveUid() [all …]
|
/base/powermgr/battery_statistics/test/systemtest/src/ |
D | batterystats_sys_test.cpp | 100 int32_t uid = 10001; variable 109 "UID", uid, "STATE", stateLock, "TYPE", type, "NAME", name); 112 "UID", uid, "STATE", stateUnlock, "TYPE", type, "NAME", name); 115 double actualPowerMah = statsClient.GetAppStatsMah(uid); 118 long actualTimeSec = statsClient.GetTotalTimeSecond(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, uid); 121 expectedDebugInfo.append("UID = ") 122 .append(ToString(uid)) 264 int32_t uid = 10002; variable 270 "UID", uid, "TYPE", type, "INTERVAL", interval, "STATE", state); 273 expectedDebugInfo.append("UID = ") [all …]
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
D | enabled_notification_callback_data_test.cpp | 44 uid_t uid = 10; variable 46 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 60 uid_t uid = 10; variable 62 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 63 rrc->SetUid(uid); 64 EXPECT_EQ(rrc->GetUid(), uid); 76 uid_t uid = 10; variable 78 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 92 uid_t uid = 10; variable 94 std::string result = "EnabledNotificationCallbackData{ bundle = Bundle, uid = 10, enable = 1 }"; [all …]
|
/base/startup/appspawn/test/unittest/app_spawn_lite_test/ |
D | app_spawn_lite_test.cpp | 73 … "{bundleName\":\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 75 … "{\"bundleName:\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 77 … "{\"bundleName\":\"nameV\",\"identityID:\"1\",\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 79 … "{\"bundleName\":\"nameV\",\"identityID\":1\",\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 81 … "{\"bundleName\":\"nameV\",\"identityID\":\"1,\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 83 … "{\"bundleName\":\"nameV\",\"identityID\":\"1\",uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 85 … "{\"bundleName\":\"nameV\",\"identityID\":\"1\",\"uID:10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 87 … "{\"bundleName\":\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\":10,\"capability:[0]}")); in StructuralFormatErrJson() 89 … "{\"bundleName\":\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\":10,\"capability\":[0]}")); in StructuralFormatErrJson() 91 … "{\"bundleName\":\"nameV\",\"identityID\":\"1\",\"uID\":10,\"gID\":10,\"capability\":0]}")); in StructuralFormatErrJson() [all …]
|