/system/update_engine/update_manager/ |
D | generic_variables_unittest.cc | 40 PollCopyVariable<int> var("var", source); in TEST_F() local 44 var.GetValue(UmTestUtils::DefaultTimeout(), nullptr)); in TEST_F() 55 UmTestUtils::ExpectVariableHasValue(42, &var); in TEST_F() 62 PollCopyVariable<int> var("var", source, &is_set); in TEST_F() local 65 UmTestUtils::ExpectVariableNotSet(&var); in TEST_F() 69 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F() 90 PollCopyVariable<CopyConstructorTestClass> var("var", source); in TEST_F() local 92 var.GetValue(UmTestUtils::DefaultTimeout(), nullptr)); in TEST_F() 101 ConstCopyVariable<int> var("var", source); in TEST_F() local 102 UmTestUtils::ExpectVariableHasValue(5, &var); in TEST_F() [all …]
|
D | variable_unittest.cc | 61 DefaultVariable<int> var("var", kVariableModeConst); in TEST_F() local 62 EXPECT_EQ(var.GetName(), string("var")); in TEST_F() 66 DefaultVariable<int> var("var", kVariableModeConst); in TEST_F() local 67 EXPECT_EQ(var.GetMode(), kVariableModeConst); in TEST_F() 80 DefaultVariable<int> var("var", TimeDelta::FromMinutes(3)); in TEST_F() local 81 EXPECT_EQ(var.GetMode(), kVariableModePoll); in TEST_F() 82 EXPECT_EQ(var.GetPollInterval(), TimeDelta::FromMinutes(3)); in TEST_F() 94 DefaultVariable<int> var("var", kVariableModeAsync); in TEST_F() local 96 var.AddObserver(&observer); in TEST_F() 97 EXPECT_EQ(1U, var.observer_list_.size()); in TEST_F() [all …]
|
D | evaluation_context-inl.h | 27 const T* EvaluationContext::GetValue(Variable<T>* var) { in GetValue() argument 28 if (var == nullptr) { in GetValue() 34 ValueCacheMap::iterator it = value_cache_.find(var); in GetValue() 41 var->GetValue(RemainingTime(evaluation_monotonic_deadline_), &errmsg); in GetValue() 43 LOG(WARNING) << "Error reading Variable " << var->GetName() << ": \"" in GetValue() 48 value_cache_.emplace(static_cast<BaseVariable*>(var), BoxedValue(result)); in GetValue()
|
D | real_device_policy_provider.cc | 108 AsyncCopyVariable<T>* var, bool (DevicePolicy::*getter_method)(T*) const) { in UpdateVariable() argument 112 var->SetValue(new_value); in UpdateVariable() 114 var->UnsetValue(); in UpdateVariable() 120 AsyncCopyVariable<T>* var, in UpdateVariable() argument 125 var->SetValue(new_value); in UpdateVariable() 127 var->UnsetValue(); in UpdateVariable()
|
D | evaluation_context.h | 89 const T* GetValue(Variable<T>* var); 136 void ValueChanged(BaseVariable* var) override;
|
D | real_device_policy_provider.h | 136 void UpdateVariable(AsyncCopyVariable<T>* var, 142 void UpdateVariable(AsyncCopyVariable<T>* var,
|
D | evaluation_context.cc | 110 void EvaluationContext::ValueChanged(BaseVariable* var) { in ValueChanged() argument 111 DLOG(INFO) << "ValueChanged() called for variable " << var->GetName(); in ValueChanged()
|
/system/tools/aidl/ |
D | aidl_to_java.cpp | 171 c.writer << c.parcel << ".writeInt(((" << c.var << ")?(1):(0)));\n"; in WriteToParcelFor() 175 c.writer << c.parcel << ".writeBooleanArray(" << c.var << ");\n"; in WriteToParcelFor() 179 c.writer << c.parcel << ".writeByte(" << c.var << ");\n"; in WriteToParcelFor() 183 c.writer << c.parcel << ".writeByteArray(" << c.var << ");\n"; in WriteToParcelFor() 187 c.writer << c.parcel << ".writeInt(((int)" << c.var << "));\n"; in WriteToParcelFor() 191 c.writer << c.parcel << ".writeCharArray(" << c.var << ");\n"; in WriteToParcelFor() 195 c.writer << c.parcel << ".writeInt(" << c.var << ");\n"; in WriteToParcelFor() 199 c.writer << c.parcel << ".writeIntArray(" << c.var << ");\n"; in WriteToParcelFor() 203 c.writer << c.parcel << ".writeLong(" << c.var << ");\n"; in WriteToParcelFor() 207 c.writer << c.parcel << ".writeLongArray(" << c.var << ");\n"; in WriteToParcelFor() [all …]
|
D | aidl_to_ndk.cpp | 73 c.writer << name << "(" << c.parcel << ", " << c.var << ")"; in StandardRead() 78 c.writer << name << "(" << c.parcel << ", " << c.var << ")"; in StandardWrite() 140 c.writer << "(" << c.var << ")->readFromParcel(" << c.parcel << ")"; in ParcelableTypeInfo() 144 c.writer << "(" << c.var << ").writeToParcel(" << c.parcel << ")"; in ParcelableTypeInfo()
|
D | aidl_to_java.h | 62 const string var; member
|
D | aidl_to_ndk.h | 48 const string var; member
|
D | generate_java.cpp | 163 .var = field->GetName(), in generate_parcel_class() 211 .var = field->GetName(), in generate_parcel_class()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 301 std::string var; in TEST_F() local 302 EXPECT_EQ(fb->GetVar("version-bootloader", &var), SUCCESS) in TEST_F() 304 EXPECT_NE(var, "") << "getvar:version-bootloader response was empty string"; in TEST_F() 305 EXPECT_EQ(std::count_if(var.begin(), var.end(), not_allowed), 0) in TEST_F() 307 EXPECT_LE(var.size(), FB_RESPONSE_SZ - 4) << "getvar:version-bootloader response was too large"; in TEST_F() 311 std::string var; in TEST_F() local 312 EXPECT_EQ(fb->GetVar("version-baseband", &var), SUCCESS) << "getvar:version-baseband failed"; in TEST_F() 313 EXPECT_NE(var, "") << "getvar:version-baseband response was empty string"; in TEST_F() 314 EXPECT_EQ(std::count_if(var.begin(), var.end(), not_allowed), 0) in TEST_F() 316 EXPECT_LE(var.size(), FB_RESPONSE_SZ - 4) << "getvar:version-baseband response was too large"; in TEST_F() [all …]
|
D | extensions.cpp | 197 const tinyxml2::XMLElement* var = handle.FirstChildElement("var").ToElement(); in ExtractGetVars() local 198 while (var) { in ExtractGetVars() 199 const std::string key = XMLAttribute(var, "key"); in ExtractGetVars() 200 const std::string reg = XMLAttribute(var, "assert"); in ExtractGetVars() 201 if (XMLAssert(key.size(), var, "The var key name is empty")) return false; in ExtractGetVars() 202 if (XMLAssert(config->getvars.find(key) == config->getvars.end(), var, in ExtractGetVars() 205 Configuration::GetVar getvar{reg, MakeRegex(reg, var->GetLineNum()), var->GetLineNum()}; in ExtractGetVars() 207 var = var->NextSiblingElement("var"); in ExtractGetVars()
|
D | fixtures.cpp | 291 std::string var; in SetUp() local 292 ASSERT_EQ(fb->GetVar("slot-count", &var), SUCCESS) << "Getting slot count failed"; in SetUp() 293 int32_t num_slots = strtol(var.c_str(), nullptr, 10); in SetUp() 296 ASSERT_EQ(fb->GetVar("partition-size:" + real_parts.front(), &var), SUCCESS) in SetUp() 298 part_size = strtoll(var.c_str(), nullptr, 16); in SetUp() 301 ASSERT_EQ(fb->GetVar("max-download-size", &var), SUCCESS) << "Getting max download size failed"; in SetUp() 302 max_dl = strtoll(var.c_str(), nullptr, 16); in SetUp()
|
/system/core/bootstat/ |
D | boot_reason_test.sh | 501 var=`echo -n ${*} | 504 case ${var} in 513 reboot,reboot | reboot,reboot,* ) var=${var#reboot,} ; var=${var%,} ;; 514 reboot,cold | reboot,cold,* ) var=${var#reboot,} ; var=${var%,} ;; 515 reboot,hard | reboot,hard,* ) var=${var#reboot,} ; var=${var%,} ;; 516 reboot,warm | reboot,warm,* ) var=${var#reboot,} ; var=${var%,} ;; 517 reboot,recovery | reboot,recovery,* ) var=${var#reboot,} ; var=${var%,} ;; 518 reboot,bootloader | reboot,bootloader,* ) var=${var#reboot,} ; var=${var%,} ;; 521 *wdog* | *watchdog* ) var="watchdog" ;; 522 *powerkey* | *power_key* | *PowerKey* ) var="cold,powerkey" ;; [all …]
|
/system/tools/hidl/ |
D | generateCppAdapter.cpp | 125 const auto adapt = [](Formatter& out, const std::string& var, const Type* type) { in generateAdapterMethod() argument 127 out << var; in generateAdapterMethod() 135 << "static_cast<::android::sp<" << interface->fqName().cppName() << ">>(" << var in generateAdapterMethod() 137 << "(" << var << "); })))"; in generateAdapterMethod()
|
/system/tools/hidl/c2hal/ |
D | FunctionDeclaration.cpp | 79 VarDeclaration* var = (VarDeclaration *)(*mParams)[0]; in processContents() local 80 if (var->getType()->isVoid()) { in processContents()
|
D | CompositeDeclaration.cpp | 122 VarDeclaration* var = (VarDeclaration *)(*it); in processContents() local 126 if(var->getType()->isHwDevice()) { in processContents()
|
D | AST.cpp | 209 auto var = new EnumVarDeclaration(define->getName(), in isolateConstants() local 214 constants->push_back(var); in isolateConstants()
|
/system/core/trusty/libtrusty/tipc-test/ |
D | tipc_test.c | 342 static int echo_test(uint repeat, uint msgsz, bool var) in echo_test() argument 353 __func__, repeat, msgsz, var ? "true" : "false"); in echo_test() 404 static int burst_write_test(uint repeat, uint msgburst, uint msgsz, bool var) in burst_write_test() argument 415 var ? "true" : "false"); in burst_write_test() 429 if (var && msgsz) { in burst_write_test() 724 static int writev_test(uint repeat, uint msgsz, bool var) in writev_test() argument 737 __func__, repeat, msgsz, var ? "true" : "false"); in writev_test() 806 static int readv_test(uint repeat, uint msgsz, bool var) in readv_test() argument 819 __func__, repeat, msgsz, var ? "true" : "false"); in readv_test()
|
/system/iorap/src/common/ |
D | type.h | 139 #define STATIC_FAIL_DT(var, msg) STATIC_FAIL(decltype(var), msg) argument
|
D | expected.h | 392 #define IORAP_FORWARD_LAMBDA(var) std::forward<decltype(var)>(var)
|
/system/core/fastboot/ |
D | fastboot.cpp | 642 static void CheckRequirement(const std::string& cur_product, const std::string& var, in CheckRequirement() argument 645 Status("Checking '" + var + "'"); in CheckRequirement() 659 if (fb->GetVar(var, &var_value) != fastboot::SUCCESS) { in CheckRequirement() 661 fprintf(stderr, "Could not getvar for '%s' (%s)\n\n", var.c_str(), in CheckRequirement() 687 fprintf(stderr, "Device %s is '%s'.\n", var.c_str(), var_value.c_str()); in CheckRequirement() 786 static void DisplayVarOrError(const std::string& label, const std::string& var) { in DisplayVarOrError() argument 789 if (fb->GetVar(var, &value) != fastboot::SUCCESS) { in DisplayVarOrError() 790 Status("getvar:" + var); in DisplayVarOrError() 995 std::string var; in get_slot_count() local 997 if (fb->GetVar("slot-count", &var) != fastboot::SUCCESS || in get_slot_count() [all …]
|
/system/update_engine/payload_generator/ |
D | extent_ranges_unittest.cc | 54 #define EXPECT_RANGE_EQ(ranges, var) \ argument 56 ExpectRangeEq(ranges, var, arraysize(var), __LINE__); \
|