Lines Matching refs:want
207 Want want = { nullptr }; variable
213 bool setResult = SetWantElement(&want, element);
215 EXPECT_STREQ(want.element->deviceId, "0001000");
216 EXPECT_STREQ(want.element->abilityName, "ServiceAbility");
217 EXPECT_STREQ(want.element->bundleName, "com.openharmony.testnative");
221 ClearWant(&want);
233 Want want = { nullptr }; variable
235 bool setResult = SetWantElement(&want, element);
237 EXPECT_STREQ(want.element->deviceId, nullptr);
238 EXPECT_STREQ(want.element->abilityName, nullptr);
239 EXPECT_STREQ(want.element->bundleName, nullptr);
242 ClearWant(&want);
254 Want want = { nullptr }; variable
258 setResult = SetWantElement(&want, element);
261 EXPECT_STREQ(want.element->abilityName, aName);
262 printf("abilityName is %s \n", want.element->abilityName);
264 EXPECT_STREQ(want.element->abilityName, aName);
268 ClearWant(&want);
280 Want want = { nullptr }; variable
286 bool setResult = SetWantElement(&want, element);
288 const char *uri = WantToUri(want);
296 ClearWant(&want);
308 Want want = { nullptr }; variable
309 const char *uri = WantToUri(want);
327 Want want = { nullptr }; variable
328 SetWantData(&want, "test", 5);
329 if (want.data != nullptr) {
330 printf("data is %s \n", (char*)(want.data));
331 printf("dataLength is %d \n", want.dataLength);
332 EXPECT_STREQ((char*)(want.data), "test");
333 EXPECT_TRUE(want.dataLength == 5);
335 ClearWant(&want);
347 Want want = { nullptr }; variable
348 SetWantData(&want, "test", -1);
349 printf("dataLength is %d \n", want.dataLength);
350 EXPECT_STREQ((char*)(want.data), nullptr);
351 EXPECT_TRUE(want.dataLength == 0);
352 SetWantData(&want, nullptr, 0);
353 printf("dataLength is %d \n", want.dataLength);
354 EXPECT_STREQ((char*)(want.data), nullptr);
355 EXPECT_TRUE(want.dataLength == 0);
367 Want want = { nullptr }; variable
373 bool setResult = SetWantElement(&want, element);
375 const char *uri = WantToUri(want);
381 EXPECT_STREQ(want2->element->deviceId, want.element->deviceId);
382 EXPECT_STREQ(want2->element->abilityName, want.element->abilityName);
383 EXPECT_STREQ(want2->element->bundleName, want.element->bundleName);
388 ClearWant(&want);
400 Want want = { nullptr }; variable
403 SetWantElement(&want, element);
404 const char *uri = WantToUri(want);
433 ClearWant(&want);
445 Want want; variable
446 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
451 SetWantElement(&want, element);
452 int result = StartAbility(&want);
458 g_errorCode = StopAbility(&want);
471 Want want = { nullptr }; variable
475 SetWantElement(&want, element);
476 int result = StartAbility(&want);
482 g_errorCode = StopAbility(&want);
495 Want want = { nullptr }; variable
499 SetWantElement(&want, element);
500 int result = StartAbility(&want);
506 g_errorCode = StopAbility(&want);
519 Want want; variable
520 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
525 SetWantElement(&want, element);
527 int result = ability->StartAbility(want);
533 g_errorCode = StopAbility(&want);
546 Want want = { nullptr }; variable
550 SetWantElement(&want, element);
551 int result = StartAbility(&want);
555 g_errorCode = StopAbility(&want);
558 ClearWant(&want);
585 Want want = { nullptr }; variable
589 SetWantElement(&want, element);
590 g_errorCode = StartAbility(&want);
594 g_errorCode = StopAbility(&want);
599 ClearWant(&want);
625 Want want = { nullptr }; variable
629 SetWantElement(&want, element);
631 int result = ConnectAbility(&want, &g_conn, this);
643 ClearWant(&want);
656 Want want = { nullptr }; variable
660 SetWantElement(&want, element);
662 int result = ConnectAbility(&want, &g_conn, this);
677 ClearWant(&want);
689 Want want = { nullptr }; variable
693 SetWantElement(&want, element);
697 g_errorCode = ConnectAbility(&want, nullptr, this);
701 ClearWant(&want);
713 Want want = { nullptr }; variable
717 SetWantElement(&want, element);
719 int result = ConnectAbility(&want, &g_conn, this);
733 ClearWant(&want);
745 Want want = { nullptr }; variable
749 SetWantElement(&want, element);
750 int result1 = StartAbility(&want);
760 ClearWant(&want);
773 Want want; variable
774 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
780 SetWantElement(&want, element);
783 g_errorCode = QueryAbilityInfo(&want, &abilityInfo);
789 int result = StartAbility(&want);
793 printf("element is %s \n", want.element->bundleName);
794 printf("element is %s \n", want.element->abilityName);
795 StopAbility(&want);
797 g_errorCode = StopAbility(&want);
800 ClearWant(&want);
812 Want want; variable
813 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
819 SetWantElement(&want, element);
822 g_errorCode = QueryAbilityInfo(&want, &abilityInfo);
825 int result = StartAbility(&want);
829 printf("element is %s \n", want.element->bundleName);
830 g_errorCode = StopAbility(&want);
833 ClearWant(&want);
845 Want want; variable
846 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
852 SetWantElement(&want, element);
855 g_errorCode = QueryAbilityInfo(&want, &abilityInfo);
858 int result = StartAbility(&want);
862 printf("element is %s \n", want.element->bundleName);
863 g_errorCode = StopAbility(&want);
866 ClearWant(&want);
878 Want want; variable
879 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
885 SetWantElement(&want, element);
888 g_errorCode = QueryAbilityInfo(&want, &abilityInfo);
891 int result = StartAbility(&want);
895 printf("element is %s \n", want.element->abilityName);
896 g_errorCode = StopAbility(&want);
899 ClearWant(&want);
911 Want want; variable
912 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
917 SetWantElement(&want, element);
918 SetWantData(&want, "test", 5);
921 g_errorCode = QueryAbilityInfo(&want, &abilityInfo);
924 int result = StartAbility(&want);
928 EXPECT_STREQ((char*)(want.data), "test");
929 EXPECT_EQ(want.dataLength, 5);
930 StopAbility(&want);
944 Want want; variable
945 (void)memset_s(&want, sizeof(Want), 0, sizeof(Want));
950 SetWantElement(&want, element);
951 SetWantData(&want, "test", 3);
952 int result = StartAbility(&want);
956 EXPECT_EQ(want.dataLength, 3);
957 g_errorCode = StopAbility(&want);
960 ClearWant(&want);