GTS-GtsGmscoreHostTestCases

    xiaoxiao2021-03-25  25

    com.google.android.gts.devicepolicy.DeviceOwnerTest#testBackup fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testDeviceOwnerSetup fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testDevicePolicyManager fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testFactoryResetProtection fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testNotifySystemUpdate fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testPermitAccessibilityServices fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testPermitInputMethods fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testProxyPacProxyTest fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerTest#testProxyStaticProxyTest fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testDisallowShareLocation fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testHasUserRestriction fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testInstallCaCert_disallowConfigCredentials fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testIsTetheringSupported_disallowConfigTethering fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testMuteMicrophone_changeVolume_disallowUnmuteMicrophone fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testMuteVolume_changeVolume_disallowAdjustVolume fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testMuteVolume_muteVolume_disallowAdjustVolume fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testRebootWipeUserData_disallowFactoryReset fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testSetBluetoothTethering_disallowConfigTethering fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testSetUsbTethering_disallowConfigTethering fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testSetWifiApEnabled_disallowConfigTethering fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testUninstallCaCert_disallowConfigCredentials fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device com.google.android.gts.devicepolicy.DeviceOwnerUserRestrictionTest#testWipeData_disallowFactoryReset fail junit.framework.AssertionFailedError: java.lang.IllegalStateException: Not allowed to set the device owner because there are already some accounts on the device

    修改方法: step 1: gts :for testL3Unsecure

    --- a/idh.code/frameworks/av/media/libstagefright/MPEG4Extractor.cpp +++ b/idh.code/frameworks/av/media/libstagefright/MPEG4Extractor.cpp @@ -1577,12 +1577,29 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { // Calculate average frame rate. if (!strncasecmp("video/", mime, 6)) { size_t nSamples = mLastTrack->sampleTable->countSamples(); - int64_t durationUs; - if (mLastTrack->meta->findInt64(kKeyDuration, &durationUs)) { - if (durationUs > 0) { - int32_t frameRate = (nSamples * 1000000LL + - (durationUs >> 1)) / durationUs; - mLastTrack->meta->setInt32(kKeyFrameRate, frameRate); + if (nSamples == 0) { + int32_t trackId; + if (mLastTrack->meta->findInt32(kKeyTrackID, &trackId)) { + for (size_t i = 0; i < mTrex.size(); i++) { + Trex *t = &mTrex.editItemAt(i); + if (t->track_ID == (uint32_t) trackId) { + if (t->default_sample_duration > 0) { + int32_t frameRate = + mLastTrack->timescale / t->default_sample_duration; + mLastTrack->meta->setInt32(kKeyFrameRate, frameRate); + } + break; + } + } + } + } else { + int64_t durationUs; + if (mLastTrack->meta->findInt64(kKeyDuration, &durationUs)) { + if (durationUs > 0) { + int32_t frameRate = (nSamples * 1000000LL + + (durationUs >> 1)) / durationUs; + mLastTrack->meta->setInt32(kKeyFrameRate, frameRate); + } } } } @@ -2970,7 +2987,7 @@ sp<MediaSource> MPEG4Extractor::getTrack(size_t index) { int32_t trackId; if (track->meta->findInt32(kKeyTrackID, &trackId)) { for (size_t i = 0; i < mTrex.size(); i++) { - Trex *t = &mTrex.editItemAt(index); + Trex *t = &mTrex.editItemAt(i); if (t->track_ID == (uint32_t) trackId) { trex = t; break;

    step 2: GTS : for Defaultgrants IME

    --- a/idh.code/frameworks/base/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java +++ b/idh.code/frameworks/base/services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java @@ -594,7 +594,7 @@ final class DefaultPermissionGrantPolicy { PackageParser.Package imePackage = getSystemPackageLPr(imePackageName); if (imePackage != null && doesPackageSupportRuntimePermissions(imePackage)) { - grantRuntimePermissionsLPw(imePackage, CONTACTS_PERMISSIONS, userId); + //grantRuntimePermissionsLPw(imePackage, CONTACTS_PERMISSIONS, userId); } } }

    step 3: gts :for testGmsBackupTransportIsDefault

    --- a/idh.code/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/idh.code/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java @@ -4715,6 +4715,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub { avoidList.add("com.android.cts.deviceandprofileowner"); avoidList.add("com.android.cts.verifier"); avoidList.add("com.google.android.xts.deviceowner"); + avoidList.add("com.google.android.gts.deviceowner"); final Account accounts[] = AccountManager.get(mContext).getAccounts(); mAccounts.clear(); for (Account account : accounts) {
    转载请注明原文地址: https://ju.6miu.com/read-50228.html

    最新回复(0)