Lines Matching defs:enable

128     static int32_t EnableCellularDataTest(bool enable);
129 static int32_t EnableIntelligenceSwitchTest(bool enable);
132 static int32_t EnableCellularDataRoamingTest(int32_t slotId, bool enable);
185 int32_t enable = CellularDataClient::GetInstance().EnableCellularData(true);
186 ASSERT_TRUE(enable == TELEPHONY_ERR_SUCCESS);
216 int32_t enable = CellularDataClient::GetInstance().EnableCellularData(true);
217 ASSERT_TRUE(enable == TELEPHONY_ERR_SUCCESS);
278 int32_t CellularDataTest::EnableCellularDataTest(bool enable)
280 return CellularDataClient::GetInstance().EnableCellularData(enable);
283 int32_t CellularDataTest::EnableIntelligenceSwitchTest(bool enable)
285 return CellularDataClient::GetInstance().EnableIntelligenceSwitch(enable);
298 int32_t CellularDataTest::EnableCellularDataRoamingTest(int32_t slotId, bool enable)
300 return CellularDataClient::GetInstance().EnableCellularDataRoaming(slotId, enable);
534 // slot0 enable data roaming
541 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID, false);
542 ASSERT_TRUE(enable == TELEPHONY_ERR_SUCCESS);
547 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
548 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
551 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
553 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
574 // slot1 enable data roaming
581 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(SIM_SLOT_ID_1, false);
582 ASSERT_TRUE(enable == TELEPHONY_ERR_SUCCESS);
587 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
588 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
591 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
593 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
752 int32_t enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID - 1, true);
753 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
757 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, true);
758 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
762 enable = CellularDataTest::EnableCellularDataRoamingTest(DEFAULT_SIM_SLOT_ID - 1, false);
763 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);
766 enable = CellularDataTest::EnableCellularDataRoamingTest(DATA_SLOT_ID_INVALID, false);
767 ASSERT_TRUE(enable != TELEPHONY_ERR_SUCCESS);