• Home
  • Raw
  • Download

Lines Matching refs:element

160     ElementName element = { nullptr };  variable
161 SetElementAbilityName(&element, "SecondAbility");
162 SetWantElement(&want, element);
163 printf("element is %s \n", want.element->abilityName);
166 EXPECT_STREQ(want.element->abilityName, aName);
167 ClearElement(&element);
181 ElementName element = { nullptr }; variable
182 SetElementAbilityName(&element, nullptr);
183 SetWantElement(&want, element);
184 printf("AbilityName1 is %s \n", want.element->abilityName);
185 EXPECT_STREQ(want.element->abilityName, nullptr);
187 SetElementAbilityName(&element, aName);
188 SetWantElement(&want, element);
189 printf("AbilityName2 is %s \n", want.element->abilityName);
190 EXPECT_STREQ(want.element->abilityName, "");
191 ClearElement(&element);
205 ElementName element = { nullptr }; variable
206 SetElementBundleName(&element, "com.openharmony.testjsdemo");
207 SetWantElement(&want, element);
208 printf("element is %s \n", want.element->bundleName);
210 EXPECT_STREQ(want.element->bundleName, bName);
211 ClearElement(&element);
225 ElementName element = { nullptr }; variable
226 SetElementBundleName(&element, "");
227 SetWantElement(&want, element);
228 printf("BundleName1 is %s \n", want.element->bundleName);
230 EXPECT_STREQ(want.element->bundleName, bName);
231 SetElementBundleName(&element, nullptr);
232 SetWantElement(&want, element);
233 printf("BundleName2 is %s \n", want.element->bundleName);
234 EXPECT_STREQ(want.element->bundleName, nullptr);
235 ClearElement(&element);
249 ElementName element = { nullptr }; variable
250 SetElementDeviceID(&element, "0001000");
251 SetWantElement(&want, element);
253 EXPECT_STREQ(want.element->deviceId, dID);
254 ClearElement(&element);
268 ElementName element = { nullptr }; variable
269 SetElementDeviceID(&element, "");
270 SetWantElement(&want, element);
272 EXPECT_STREQ(want.element->deviceId, dID);
273 SetElementDeviceID(&element, nullptr);
274 SetWantElement(&want, element);
275 EXPECT_STREQ(want.element->deviceId, nullptr);
276 ClearElement(&element);
563 ElementName element; variable
564 int32_t resultElementName = memset_s(&element, sizeof(ElementName), 0, sizeof(ElementName));
566 SetElementAbilityName(&element, "MainAbility");
567 SetElementBundleName(&element, "com.openharmony.testjsdemo");
568 SetWantElement(&want, element);
573 printf("element.elementname is %s \n", want.element->bundleName);
574 printf("AbilityName2 is %s \n", want.element->abilityName);
602 ElementName element; variable
603 int32_t resultElementName = memset_s(&element, sizeof(ElementName), 0, sizeof(ElementName));
605 SetElementAbilityName(&element, "MainAbility");
606 SetElementBundleName(&element, "com.openharmony.testjsdemo");
607 SetWantElement(&want, element);