/base/usb/usb_manager/test/native/mock/src/ |
H A D | usb_core_mock_test.cpp | 406 * @tc.desc: bool HasRight(std::string deviceName) 407 * @tc.desc: Negative test: first AddRight ,second HasRight 414 bool result = usbSrv_->HasRight(deviceName); in HWTEST_F() 420 * @tc.desc: bool HasRight(std::string deviceName) 428 bool result = usbSrv_->HasRight(deviceName); in HWTEST_F() 436 result = usbSrv_->HasRight(deviceName); in HWTEST_F() 442 * @tc.desc: bool HasRight(std::string deviceName) 443 * @tc.desc: Negative test: first AddRight ,second HasRight 450 bool result = usbSrv_->HasRight(deviceName); in HWTEST_F() 457 result = usbSrv_->HasRight(deviceNam in HWTEST_F() [all...] |
/base/usb/usb_manager/test/fuzztest/usbmgrhasright_fuzzer/ |
H A D | usbmgrhasright_fuzzer.cpp | 39 if (usbSrvClient.HasRight(std::string(reinterpret_cast<const char*>(data)))) { in UsbMgrHasRightFuzzTest()
|
/base/usb/usb_manager/test/fuzztest/usbmgrremoveright_fuzzer/ |
H A D | usbmgrremoveright_fuzzer.cpp | 39 if (!usbSrvClient.HasRight(devList[0].GetName())) { in UsbMgrRemoveRightFuzzTest()
|
/base/print/print_fwk/frameworks/models/print_models/include/ |
H A D | print_margin.h | 48 [[nodiscard]] bool HasRight() const;
|
/base/usb/usb_manager/test/native/service_unittest/src/ |
H A D | usb_request_test.cpp | 1551 * @tc.desc: Test functions of HasRight 1552 * @tc.desc: bool HasRight(std::string deviceName) 1553 * @tc.desc: Setup case as system hap: Before RequestRight, HasRight return true. 1566 bool result = UsbSrvClient.HasRight(deviceName); in HWTEST_F() 1567 USB_HILOGI(MODULE_USB_SERVICE, "UsbRequestTest::UsbHasRight001 HasRight=%{public}d", result); in HWTEST_F() 1574 * @tc.desc: Test functions of HasRight 1575 * @tc.desc: bool HasRight(std::string deviceName) 1576 * @tc.desc: Setup case as system hap: After RequestRight, HasRight return true. 1589 bool result = UsbSrvClient.HasRight(deviceName); in HWTEST_F() 1590 USB_HILOGI(MODULE_USB_SERVICE, "UsbRequestTest::UsbHasRight002 HasRight in HWTEST_F() [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/src/ |
H A D | print_margin_helper.cpp | 42 if (margin.HasRight()) { in MakeJsObject()
|
/base/print/print_fwk/frameworks/models/print_models/src/ |
H A D | print_margin.cpp | 119 bool PrintMargin::HasRight() const in HasRight() function in OHOS::Print::PrintMargin
|
H A D | print_utils.cpp | 275 if (marginAttr.HasRight()) { in ParseAttributesObjectParamForJson()
|
/base/usb/usb_manager/services/native/include/ |
H A D | usb_right_manager.h | 39 bool HasRight(const std::string &deviceName, const std::string &bundleName,
|
H A D | usb_service.h | 71 bool HasRight(std::string deviceName) override;
|
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
H A D | printer_capability_test.cpp | 81 EXPECT_FALSE(copyMargin.HasRight()); in HWTEST_F()
|
H A D | print_margin_test.cpp | 155 EXPECT_TRUE(margin.HasRight()); in HWTEST_F()
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
H A D | usb_srv_client.h | 48 bool HasRight(std::string deviceName);
|
H A D | iusb_srv.h | 32 virtual bool HasRight(std::string deviceName) = 0;
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_right_manager.cpp | 123 bool UsbRightManager::HasRight(const std::string &deviceName, const std::string &bundleName, in HasRight() function in OHOS::USB::UsbRightManager 126 USB_HILOGI(MODULE_USB_SERVICE, "HasRight: uid=%{public}d app=%{public}s", in HasRight() 149 if (HasRight(deviceName, bundleName, tokenId, userId)) { in RequestRight() 325 return HasRight(deviceName, bundleName, tokenId, userId); in GetUserAgreementByDiag()
|
H A D | usb_service.cpp | 393 if (!UsbService::HasRight(name)) { in CheckDevicePermission() 402 bool UsbService::HasRight(std::string deviceName) in HasRight() function in OHOS::USB::UsbService 404 USB_HILOGI(MODULE_USB_SERVICE, "calling usbRightManager HasRight"); in HasRight() 425 USB_HILOGE(MODULE_USB_SERVICE, "HasRight GetCallingInfo false"); in HasRight() 430 if (usbRightManager_->HasRight(deviceVidPidSerialNum, bundleName, tokenId, userId)) { in HasRight() 434 return usbRightManager_->HasRight(deviceVidPidSerialNum, bundleName, USB_DEFAULT_TOKEN, userId); in HasRight()
|
/base/usb/usb_manager/services/zidl/include/ |
H A D | usb_server_proxy.h | 39 bool HasRight(std::string deviceName) override;
|
/base/usb/usb_manager/interfaces/innerkits/native/src/ |
H A D | usb_srv_client.cpp | 139 bool UsbSrvClient::HasRight(std::string deviceName) in HasRight() function in OHOS::USB::UsbSrvClient 141 USB_HILOGI(MODULE_USB_INNERKIT, "Calling HasRight Start!"); in HasRight() 143 return proxy_->HasRight(deviceName); in HasRight()
|
/base/print/print_fwk/services/print_service/src/ |
H A D | print_system_data.cpp | 471 if (minMargin.HasRight()) { in ConvertPrintMarginToJson()
|
/base/usb/usb_manager/services/zidl/src/ |
H A D | usb_srv_proxy.cpp | 347 bool UsbServerProxy::HasRight(std::string deviceName) in HasRight() function in OHOS::USB::UsbServerProxy
|
H A D | usb_srv_stub.cpp | 354 WRITE_PARCEL_WITH_RET(reply, Bool, HasRight(Str16ToStr8(deviceName)), UEC_SERVICE_WRITE_PARCEL_ERROR); in DoHasRight()
|
/base/usb/usb_manager/interfaces/kits/js/napi/src/ |
H A D | usb_info.cpp | 601 bool result = g_usbClient.HasRight(deviceName); in CoreHasRight()
|