• Home
  • Raw
  • Download

Lines Matching refs:props

107 struct android::BatteryProperties props;  variable
139 props = {}; in SetUp()
208 props.batteryLevel = 100; in capacityReached()
231 battDefender->update(&props); in TEST_F()
242 battDefender->update(&props); in TEST_F()
252 battDefender->update(&props); in TEST_F()
266 battDefender->update(&props); in TEST_F()
280 battDefender->update(&props); in TEST_F()
287 battDefender->update(&props); in TEST_F()
300 battDefender->update(&props); in TEST_F()
305 battDefender->update(&props); in TEST_F()
310 battDefender->update(&props); in TEST_F()
322 battDefender->update(&props); in TEST_F()
328 battDefender->update(&props); in TEST_F()
334 battDefender->update(&props); in TEST_F()
341 battDefender->update(&props); in TEST_F()
355 battDefender->update(&props); in TEST_F()
361 battDefender->update(&props); in TEST_F()
375 battDefender->update(&props); in TEST_F()
400 battDefender->update(&props); in TEST_F()
425 battDefender->update(&props); in TEST_F()
441 battDefender->update(&props); in TEST_F()
447 battDefender->update(&props); in TEST_F()
455 battDefender->update(&props); in TEST_F()
460 battDefender->update(&props); in TEST_F()
466 battDefender->update(&props); in TEST_F()
474 battDefender->update(&props); in TEST_F()
480 battDefender->update(&props); in TEST_F()
486 battDefender->update(&props); in TEST_F()
509 battDefender->update(&props); in TEST_F()
515 battDefender->update(&props); in TEST_F()
523 battDefender->update(&props); in TEST_F()
534 props.chargerAcOnline = false; in TEST_F()
535 props.chargerUsbOnline = false; in TEST_F()
537 battDefender->update(&props); in TEST_F()
538 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
539 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
541 props.chargerAcOnline = false; in TEST_F()
542 props.chargerUsbOnline = false; in TEST_F()
543 battDefender->update(&props); in TEST_F()
544 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
545 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
556 props.chargerAcOnline = false; in TEST_F()
557 props.chargerUsbOnline = true; in TEST_F()
559 battDefender->update(&props); in TEST_F()
560 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
561 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
563 props.chargerAcOnline = false; in TEST_F()
564 props.chargerUsbOnline = false; in TEST_F()
565 battDefender->update(&props); in TEST_F()
566 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
567 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
578 props.chargerAcOnline = true; in TEST_F()
579 props.chargerUsbOnline = false; in TEST_F()
581 battDefender->update(&props); in TEST_F()
582 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
583 ASSERT_EQ(props.chargerUsbOnline, false); in TEST_F()
585 props.chargerAcOnline = false; in TEST_F()
586 props.chargerUsbOnline = false; in TEST_F()
587 battDefender->update(&props); in TEST_F()
588 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
589 ASSERT_EQ(props.chargerUsbOnline, false); in TEST_F()
600 props.chargerAcOnline = true; in TEST_F()
601 props.chargerUsbOnline = true; in TEST_F()
603 battDefender->update(&props); in TEST_F()
604 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
605 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
607 props.chargerAcOnline = false; in TEST_F()
608 props.chargerUsbOnline = false; in TEST_F()
609 battDefender->update(&props); in TEST_F()
610 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
611 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
623 battDefender->update(&props); in TEST_F()
625 props.chargerAcOnline = false; in TEST_F()
626 props.chargerUsbOnline = false; in TEST_F()
629 battDefender->update(&props); in TEST_F()
630 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
631 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
633 props.chargerAcOnline = false; in TEST_F()
634 props.chargerUsbOnline = false; in TEST_F()
635 battDefender->update(&props); in TEST_F()
636 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
637 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
649 battDefender->update(&props); in TEST_F()
651 props.chargerAcOnline = false; in TEST_F()
652 props.chargerUsbOnline = true; in TEST_F()
655 battDefender->update(&props); in TEST_F()
656 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
657 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
659 props.chargerAcOnline = false; in TEST_F()
660 props.chargerUsbOnline = false; in TEST_F()
661 battDefender->update(&props); in TEST_F()
662 ASSERT_EQ(props.chargerAcOnline, false); in TEST_F()
663 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
675 battDefender->update(&props); in TEST_F()
677 props.chargerAcOnline = true; in TEST_F()
678 props.chargerUsbOnline = false; in TEST_F()
681 battDefender->update(&props); in TEST_F()
682 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
683 ASSERT_EQ(props.chargerUsbOnline, false); in TEST_F()
685 props.chargerAcOnline = false; in TEST_F()
686 props.chargerUsbOnline = false; in TEST_F()
687 battDefender->update(&props); in TEST_F()
688 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
689 ASSERT_EQ(props.chargerUsbOnline, false); in TEST_F()
701 battDefender->update(&props); in TEST_F()
703 props.chargerAcOnline = true; in TEST_F()
704 props.chargerUsbOnline = true; in TEST_F()
707 battDefender->update(&props); in TEST_F()
708 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
709 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
711 props.chargerAcOnline = false; in TEST_F()
712 props.chargerUsbOnline = false; in TEST_F()
713 battDefender->update(&props); in TEST_F()
714 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
715 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
726 props.batteryHealth = android::BATTERY_HEALTH_UNKNOWN; in TEST_F()
728 battDefender->update(&props); in TEST_F()
729 ASSERT_EQ(props.batteryHealth, android::BATTERY_HEALTH_UNKNOWN); in TEST_F()
731 props.batteryHealth = android::BATTERY_HEALTH_UNKNOWN; in TEST_F()
734 battDefender->update(&props); in TEST_F()
735 ASSERT_EQ(props.batteryHealth, android::BATTERY_HEALTH_OVERHEAT); in TEST_F()
747 battDefender->update(&props); in TEST_F()
749 props.chargerAcOnline = true; in TEST_F()
750 props.chargerUsbOnline = true; in TEST_F()
751 props.batteryHealth = android::BATTERY_HEALTH_OVERHEAT; in TEST_F()
752 battDefender->update(&props); in TEST_F()
753 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
754 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
756 props.chargerAcOnline = false; in TEST_F()
757 props.chargerUsbOnline = false; in TEST_F()
758 battDefender->update(&props); in TEST_F()
759 ASSERT_EQ(props.chargerAcOnline, true); in TEST_F()
760 ASSERT_EQ(props.chargerUsbOnline, true); in TEST_F()
773 battDefender->update(&props); in TEST_F()