Home
last modified time | relevance | path

Searched refs:expectedStatus (Results 1 – 25 of 25) sorted by relevance

/aosp12/build/soong/ui/metrics/proc/
H A Dstatus_linux_test.go32 fmt.Printf("%d %d\b", status.VmPeak, expectedStatus.VmPeak)
33 if !reflect.DeepEqual(status, expectedStatus) {
34 t.Errorf("got %v, expecting %v for ProcStatus", status, expectedStatus)
95 var expectedStatus = &ProcStatus{ var
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/
H A DPerUserCarDevicePolicyServiceTest.java159 private void assertStatusString(@NewUserDisclaimerStatus int expectedStatus) { in assertStatusString() argument
162 expectedStatus, newUserDisclaimerStatusToString(expectedStatus), in assertStatusString()
164 .that(actualStatus).isEqualTo(expectedStatus); in assertStatusString()
/aosp12/system/hardware/interfaces/net/netd/testutils/
H A DVtsHalNetNetdTestUtils.h22 #define EXPECT_STATUS(expectedStatus, ret) \ argument
25 EXPECT_EQ((expectedStatus), (ret)); \
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A DXmlUtilTest.java348 NetworkSelectionStatus expectedStatus = new NetworkSelectionStatus(); in testDeprecatedNetworkSelectionStatusDeserialize() local
349 expectedStatus.copy(status); in testDeprecatedNetworkSelectionStatusDeserialize()
350 expectedStatus.setNetworkSelectionStatus(NetworkSelectionStatus.NETWORK_SELECTION_ENABLED); in testDeprecatedNetworkSelectionStatusDeserialize()
351 expectedStatus.setNetworkSelectionDisableReason( in testDeprecatedNetworkSelectionStatusDeserialize()
355 expectedStatus, retrievedStatus); in testDeprecatedNetworkSelectionStatusDeserialize()
397 NetworkSelectionStatus expectedStatus = new NetworkSelectionStatus(); in testDeprecatedNetworkSelectionDisableReasonDeserialize() local
398 expectedStatus.copy(status); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
399 expectedStatus.setNetworkSelectionStatus(NetworkSelectionStatus.NETWORK_SELECTION_ENABLED); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
400 expectedStatus.setNetworkSelectionDisableReason( in testDeprecatedNetworkSelectionDisableReasonDeserialize()
404 expectedStatus, retrievedStatus); in testDeprecatedNetworkSelectionDisableReasonDeserialize()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DDataSaverModeTest.java203 private void assertDataSaverStatusOnBackground(int expectedStatus) throws Exception { in assertDataSaverStatusOnBackground() argument
204 assertRestrictBackgroundStatus(expectedStatus); in assertDataSaverStatusOnBackground()
205 assertBackgroundNetworkAccess(expectedStatus != RESTRICT_BACKGROUND_STATUS_ENABLED); in assertDataSaverStatusOnBackground()
H A DNetworkPolicyTestUtils.java345 public static boolean isMyRestrictBackgroundStatus(int expectedStatus) {
347 if (expectedStatus != actualStatus) {
349 + "Expected: " + restrictBackgroundValueToString(expectedStatus)
390 public static void assertMyRestrictBackgroundStatus(int expectedStatus) {
392 assertEquals(restrictBackgroundValueToString(expectedStatus),
H A DAbstractRestrictBackgroundNetworkTestCase.java262 protected void assertRestrictBackgroundStatus(int expectedStatus) throws Exception { in assertRestrictBackgroundStatus() argument
265 assertEquals(restrictBackgroundValueToString(expectedStatus), in assertRestrictBackgroundStatus()
/aosp12/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java253 int expectedStatus = TextToSpeech.LANG_COUNTRY_VAR_AVAILABLE; in getExpectedLanguageAvailableStatus() local
256 expectedStatus = TextToSpeech.LANG_AVAILABLE; in getExpectedLanguageAvailableStatus()
258 expectedStatus = TextToSpeech.LANG_COUNTRY_AVAILABLE; in getExpectedLanguageAvailableStatus()
261 return expectedStatus; in getExpectedLanguageAvailableStatus()
282 int expectedStatus = getExpectedLanguageAvailableStatus(locale); in onGetVoices() local
286 if (localeStatus != expectedStatus) { in onGetVoices()
364 int expectedStatus = getExpectedLanguageAvailableStatus(locale); in onLoadVoice() local
368 if (localeStatus != expectedStatus) { in onLoadVoice()
395 int expectedStatus = getExpectedLanguageAvailableStatus(locale); in onIsValidVoiceName() local
399 if (localeStatus != expectedStatus) { in onIsValidVoiceName()
/aosp12/frameworks/base/tests/BackgroundDexOptServiceIntegrationTests/src/com/android/server/pm/
H A DBackgroundDexOptServiceIntegrationTests.java210 private static void runBackgroundDexOpt(String expectedStatus) throws IOException { in runBackgroundDexOpt() argument
212 if (!result.trim().equals(expectedStatus)) { in runBackgroundDexOpt()
213 throw new IllegalStateException("Expected status: " + expectedStatus in runBackgroundDexOpt()
/aosp12/system/hardware/interfaces/net/netd/1.1/vts/functional/
H A DVtsHalNetNetdV1_1TargetTest.cpp137 void expectAddRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, in expectAddRoute() argument
141 EXPECT_STATUS(expectedStatus, retStatus); in expectAddRoute()
148 void expectRemoveRoute(INetd::StatusCode expectedStatus, net_handle_t handle, const char* iface, in expectRemoveRoute() argument
152 EXPECT_STATUS(expectedStatus, retStatus); in expectRemoveRoute()
/aosp12/hardware/interfaces/neuralnetworks/aidl/vts/functional/
H A DMemoryDomainTests.cpp690 const std::vector<int32_t>& dimensions, ErrorStatus expectedStatus) { in testCopyFrom() argument
692 if (expectedStatus == ErrorStatus::NONE) { in testCopyFrom()
696 ASSERT_EQ(expectedStatus, static_cast<ErrorStatus>(ret.getServiceSpecificError())); in testCopyFrom()
701 ErrorStatus expectedStatus) { in testCopyTo() argument
703 if (expectedStatus == ErrorStatus::NONE) { in testCopyTo()
707 ASSERT_EQ(expectedStatus, static_cast<ErrorStatus>(ret.getServiceSpecificError())); in testCopyTo()
888 ErrorStatus expectedStatus) { in testExecution() argument
891 EXPECT_EQ(executeSync(preparedModel, request), expectedStatus); in testExecution()
894 EXPECT_EQ(executeBurst(preparedModel, request), expectedStatus); in testExecution()
897 EXPECT_EQ(executeFenced(preparedModel, request), expectedStatus); in testExecution()
/aosp12/packages/services/Car/tools/emulator/
H A Dvhal_emulator_test.py160 def _rxMsgAndValidate(self, expectedType, expectedStatus): argument
166 if rxMsg.status != expectedStatus:
167 … self._log.error("rxMsg Status expected: 0x%X, received: 0x%X", expectedStatus, rxMsg.status)
/aosp12/hardware/interfaces/neuralnetworks/1.3/vts/functional/
H A DMemoryDomainTests.cpp671 const std::vector<uint32_t>& dimensions, ErrorStatus expectedStatus) { in testCopyFrom() argument
674 ASSERT_EQ(static_cast<ErrorStatus>(ret), expectedStatus); in testCopyFrom()
678 ErrorStatus expectedStatus) { in testCopyTo() argument
681 ASSERT_EQ(static_cast<ErrorStatus>(ret), expectedStatus); in testCopyTo()
863 ErrorStatus expectedStatus) { in testExecution() argument
866 EXPECT_EQ(executeAsync(preparedModel, request), expectedStatus); in testExecution()
869 EXPECT_EQ(executeSync(preparedModel, request), expectedStatus); in testExecution()
872 EXPECT_EQ(executeFenced(preparedModel, request), expectedStatus); in testExecution()
/aosp12/hardware/interfaces/drm/1.2/vts/functional/
H A Ddrm_hal_common.cpp397 const vector<uint8_t>& key, StatusV1_2 expectedStatus) { in decrypt() argument
411 size_t factor = expectedStatus == StatusV1_2::ERROR_DRM_FRAME_TOO_LARGE ? 1 : 2; in decrypt()
429 EXPECT_EQ(expectedStatus, status) << "Unexpected decrypt status " << in decrypt()
/aosp12/hardware/interfaces/drm/1.0/vts/functional/include/android/hardware/drm/1.0/vts/
H A Ddrm_hal_vendor_test.h196 const vector<uint8_t>& key, Status expectedStatus);
/aosp12/hardware/interfaces/drm/1.2/vts/functional/include/android/hardware/drm/1.2/vts/
H A Ddrm_hal_common.h117 const vector<uint8_t>& key, StatusV1_2 expectedStatus);
/aosp12/hardware/interfaces/drm/1.0/vts/functional/
H A Ddrm_hal_clearkey_test.cpp838 const Pattern& pattern, Status expectedStatus) { in decrypt() argument
875 EXPECT_EQ(expectedStatus, status) << "Unexpected decrypt status " << in decrypt()
H A Ddrm_hal_vendor_test.cpp1133 const vector<uint8_t>& key, Status expectedStatus) { in decrypt() argument
1164 EXPECT_EQ(expectedStatus, status) << "Unexpected decrypt status " << in decrypt()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
H A DUserHalServiceTest.java1672 private void assertCallbackStatus(GenericHalCallback<?> callback, int expectedStatus) { in assertCallbackStatus() argument
1674 if (actualStatus == expectedStatus) return; in assertCallbackStatus()
1677 + UserHalHelper.halCallbackStatusToString(expectedStatus) + ", got " in assertCallbackStatus()
/aosp12/frameworks/base/services/incremental/
H A DIncrementalService.h258 void compareAndSetCurrentStatus(int expectedStatus, int newStatus);
H A DIncrementalService.cpp2838 void IncrementalService::DataLoaderStub::compareAndSetCurrentStatus(int expectedStatus, in compareAndSetCurrentStatus() argument
2847 if (expectedStatus != Constants::anyStatus && expectedStatus != mCurrentStatus) { in compareAndSetCurrentStatus()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/
H A DVibrationThreadTest.java1375 private void verifyCallbacksTriggered(long vibrationId, Vibration.Status expectedStatus) { in verifyCallbacksTriggered() argument
1376 verify(mThreadCallbacks).onVibrationCompleted(eq(vibrationId), eq(expectedStatus)); in verifyCallbacksTriggered()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
H A DCarUserServiceTest.java2893 @UserRemovalResult.Status int expectedStatus) { in assertUserRemovalResultStatus() argument
2895 if (actualStatus != expectedStatus) { in assertUserRemovalResultStatus()
2897 UserRemovalResult.statusToString(expectedStatus), in assertUserRemovalResultStatus()
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
H A DTetheringTest.java1712 public void expectOffloadStatusChanged(final int expectedStatus) { in expectOffloadStatusChanged() argument
1714 assertEquals(mOffloadStatus.remove(0), new Integer(expectedStatus)); in expectOffloadStatusChanged()
/aosp12/hardware/interfaces/camera/provider/2.4/vts/functional/
H A DVtsHalCameraProviderV2_4TargetTest.cpp865 bool expectedStatus, bool expectStreamCombQuery);
7614 bool expectedStatus, bool expectMethodSupported) { in verifyStreamCombination() argument
7617 config3_7, [expectedStatus, expectMethodSupported](Status s, bool combStatus) { in verifyStreamCombination()
7621 ASSERT_TRUE(combStatus == expectedStatus); in verifyStreamCombination()
7629 [expectedStatus, expectMethodSupported] (Status s, bool combStatus) { in verifyStreamCombination()
7633 ASSERT_TRUE(combStatus == expectedStatus); in verifyStreamCombination()