Lines Matching refs:error

384                                            SocketConnection* socket, std::string* error) {  in PropertySet()  argument
388 *error = "Illegal property name"; in PropertySet()
393 *error = result.error().message(); in PropertySet()
401 *error = "Read-only property was already set"; in PropertySet()
409 *error = "__system_property_add failed"; in PropertySet()
431 std::string* error) { in PropertySetNoSocket() argument
432 auto ret = PropertySet(name, value, nullptr, error); in PropertySetNoSocket()
438 SocketConnection* socket, std::string* error) { in SendControlMessage() argument
441 *error = "Received control message after shutdown, ignoring"; in SendControlMessage()
493 const std::string& source_context, const ucred& cr, std::string* error) { in CheckPermissions() argument
495 *error = "Illegal property name"; in CheckPermissions()
501 *error = StringPrintf("Invalid permissions to perform '%s' on '%s'", name.c_str() + 4, in CheckPermissions()
514 *error = "SELinux permission check failed"; in CheckPermissions()
519 *error = StringPrintf("Property type check failed, value doesn't match expected type '%s'", in CheckPermissions()
531 SocketConnection* socket, std::string* error) { in HandlePropertySet() argument
532 if (auto ret = CheckPermissions(name, value, source_context, cr, error); ret != PROP_SUCCESS) { in HandlePropertySet()
537 return {SendControlMessage(name.c_str() + 4, value, cr.pid, socket, error)}; in HandlePropertySet()
554 *error = "Userspace reboot is not supported by this device"; in HandlePropertySet()
569 return PropertySet(name, value, socket, error); in HandlePropertySet()
576 std::string* error) { in HandlePropertySetNoSocket() argument
577 auto ret = HandlePropertySet(name, value, source_context, cr, nullptr, error); in HandlePropertySetNoSocket()
629 std::string error; in handle_property_set_fd() local
630 auto result = HandlePropertySetNoSocket(prop_name, prop_value, source_context, cr, &error); in handle_property_set_fd()
633 << " gid:" << cr.gid << " pid:" << cr.pid << ": " << error; in handle_property_set_fd()
658 std::string error; in handle_property_set_fd() local
659 auto result = HandlePropertySet(name, value, source_context, cr, &socket, &error); in handle_property_set_fd()
666 << " gid:" << cr.gid << " pid:" << cr.pid << ": " << error; in handle_property_set_fd()
681 std::string error; in InitPropertySet() local
682 auto result = HandlePropertySetNoSocket(name, value, kInitContext, cr, &error); in InitPropertySet()
684 LOG(ERROR) << "Init cannot set '" << name << "' to '" << value << "': " << error; in InitPropertySet()
748 LOG(ERROR) << "Could not expand filename ': " << expanded_filename.error(); in LoadProperties()
754 LOG(WARNING) << res.error(); in LoadProperties()
782 std::string error; in LoadProperties() local
783 if (CheckPermissions(key, value, context, cr, &error) == PROP_SUCCESS) { in LoadProperties()
794 << "' in property file '" << filename << "': " << error; in LoadProperties()
808 << "': " << file_contents.error(); in load_properties_from_file()
824 LOG(WARNING) << res.error(); in LoadPropertiesFromSecondStageRes()
851 std::string error; in load_override_properties() local
852 if (PropertySetNoSocket(name, value, &error) != PROP_SUCCESS) { in load_override_properties()
854 << "' in /data/local.prop: " << error; in load_override_properties()
917 std::string error; in property_initialize_ro_product_props() local
918 auto res = PropertySetNoSocket(base_prop, target_prop_val, &error); in property_initialize_ro_product_props()
921 << " (" << error << ")"; in property_initialize_ro_product_props()
946 std::string error; in property_initialize_build_id() local
947 auto res = PropertySetNoSocket(ID_PROP, build_id, &error); in property_initialize_build_id()
994 std::string error; in property_derive_legacy_build_fingerprint() local
995 auto res = PropertySetNoSocket(LEGACY_FINGERPRINT_PROP, legacy_build_fingerprint, &error); in property_derive_legacy_build_fingerprint()
998 << " (" << error << ")"; in property_derive_legacy_build_fingerprint()
1012 std::string error; in property_derive_build_fingerprint() local
1013 auto res = PropertySetNoSocket(FINGERPRINT_PROP, build_fingerprint, &error); in property_derive_build_fingerprint()
1016 << error << ")"; in property_derive_build_fingerprint()
1074 std::string error; in property_initialize_ro_cpu_abilist() local
1075 auto res = PropertySetNoSocket(prop, prop_val, &error); in property_initialize_ro_cpu_abilist()
1077 LOG(ERROR) << "Error setting property '" << prop << "': err=" << res << " (" << error in property_initialize_ro_cpu_abilist()
1108 std::string error; in property_initialize_ro_vendor_api_level() local
1109 auto res = PropertySetNoSocket(VENDOR_API_LEVEL_PROP, std::to_string(api_level), &error); in property_initialize_ro_vendor_api_level()
1112 << error << "(" << res << ")"; in property_initialize_ro_vendor_api_level()
1125 LOG(ERROR) << res.error(); in PropertyLoadBootDefaults()
1177 LOG(WARNING) << res.error(); in PropertyLoadBootDefaults()
1197 LOG(WARNING) << res.error(); in PropertyLoadBootDefaults()
1202 std::string error; in PropertyLoadBootDefaults() local
1203 if (PropertySetNoSocket(name, value, &error) != PROP_SUCCESS) { in PropertyLoadBootDefaults()
1205 << "' while loading .prop files" << error; in PropertyLoadBootDefaults()
1232 for (const auto& error : errors) { in LoadPropertyInfoFromFile() local
1233 LOG(ERROR) << "Could not read line from '" << filename << "': " << error; in LoadPropertyInfoFromFile()
1279 auto error = std::string(); in CreateSerializedPropertyInfo() local
1281 &error)) { in CreateSerializedPropertyInfo()
1282 LOG(ERROR) << "Unable to serialize property contexts: " << error; in CreateSerializedPropertyInfo()
1389 LOG(ERROR) << "Could not read message from init_dedicated_recv_socket: " << message.error(); in HandleInitSocket()
1425 LOG(FATAL) << result.error(); in PropertyServiceThread()
1430 LOG(FATAL) << result.error(); in PropertyServiceThread()
1434 LOG(FATAL) << result.error(); in PropertyServiceThread()
1440 LOG(ERROR) << epoll_result.error(); in PropertyServiceThread()
1502 LOG(FATAL) << "start_property_service socket creation failed: " << result.error(); in StartPropertyService()