Home
last modified time | relevance | path

Searched refs:HasRight (Results 1 - 22 of 22) sorted by relevance

/base/usb/usb_manager/test/native/mock/src/
H A Dusb_core_mock_test.cpp406 * @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 Dusbmgrhasright_fuzzer.cpp39 if (usbSrvClient.HasRight(std::string(reinterpret_cast<const char*>(data)))) { in UsbMgrHasRightFuzzTest()
/base/usb/usb_manager/test/fuzztest/usbmgrremoveright_fuzzer/
H A Dusbmgrremoveright_fuzzer.cpp39 if (!usbSrvClient.HasRight(devList[0].GetName())) { in UsbMgrRemoveRightFuzzTest()
/base/print/print_fwk/frameworks/models/print_models/include/
H A Dprint_margin.h48 [[nodiscard]] bool HasRight() const;
/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_request_test.cpp1551 * @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 Dprint_margin_helper.cpp42 if (margin.HasRight()) { in MakeJsObject()
/base/print/print_fwk/frameworks/models/print_models/src/
H A Dprint_margin.cpp119 bool PrintMargin::HasRight() const in HasRight() function in OHOS::Print::PrintMargin
H A Dprint_utils.cpp275 if (marginAttr.HasRight()) { in ParseAttributesObjectParamForJson()
/base/usb/usb_manager/services/native/include/
H A Dusb_right_manager.h39 bool HasRight(const std::string &deviceName, const std::string &bundleName,
H A Dusb_service.h71 bool HasRight(std::string deviceName) override;
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
H A Dprinter_capability_test.cpp81 EXPECT_FALSE(copyMargin.HasRight()); in HWTEST_F()
H A Dprint_margin_test.cpp155 EXPECT_TRUE(margin.HasRight()); in HWTEST_F()
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_srv_client.h48 bool HasRight(std::string deviceName);
H A Diusb_srv.h32 virtual bool HasRight(std::string deviceName) = 0;
/base/usb/usb_manager/services/native/src/
H A Dusb_right_manager.cpp123 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 Dusb_service.cpp393 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 Dusb_server_proxy.h39 bool HasRight(std::string deviceName) override;
/base/usb/usb_manager/interfaces/innerkits/native/src/
H A Dusb_srv_client.cpp139 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 Dprint_system_data.cpp471 if (minMargin.HasRight()) { in ConvertPrintMarginToJson()
/base/usb/usb_manager/services/zidl/src/
H A Dusb_srv_proxy.cpp347 bool UsbServerProxy::HasRight(std::string deviceName) in HasRight() function in OHOS::USB::UsbServerProxy
H A Dusb_srv_stub.cpp354 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 Dusb_info.cpp601 bool result = g_usbClient.HasRight(deviceName); in CoreHasRight()

Completed in 23 milliseconds