Search in sources :

Example 11 with LargeTest

use of android.test.suitebuilder.annotation.LargeTest in project android_frameworks_base by ParanoidAndroid.

the class BigEditTextActivityNonScrollablePanScanTests method testAppAdjustmentPanScan.

@LargeTest
public void testAppAdjustmentPanScan() {
    // Give the IME 2 seconds to appear.
    pause(2000);
    View rootView = ((BigEditTextActivityNonScrollablePanScan) mTargetActivity).getRootView();
    View servedView = ((BigEditTextActivityNonScrollablePanScan) mTargetActivity).getDefaultFocusedView();
    assertNotNull(rootView);
    assertNotNull(servedView);
    destructiveCheckImeInitialState(rootView, servedView);
    verifyEditTextAdjustment(servedView, rootView.getMeasuredHeight());
}
Also used : View(android.view.View) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 12 with LargeTest

use of android.test.suitebuilder.annotation.LargeTest in project android_frameworks_base by ParanoidAndroid.

the class BigEditTextActivityNonScrollableResizeTests method testAppAdjustmentPanScan.

@LargeTest
public void testAppAdjustmentPanScan() {
    // Give the IME 2 seconds to appear.
    pause(2000);
    View rootView = ((BigEditTextActivityNonScrollableResize) mTargetActivity).getRootView();
    View servedView = ((BigEditTextActivityNonScrollableResize) mTargetActivity).getDefaultFocusedView();
    assertNotNull(rootView);
    assertNotNull(servedView);
    destructiveCheckImeInitialState(rootView, servedView);
    verifyEditTextAdjustment(servedView, rootView.getMeasuredHeight());
}
Also used : View(android.view.View) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 13 with LargeTest

use of android.test.suitebuilder.annotation.LargeTest in project android_frameworks_base by ParanoidAndroid.

the class BigEditTextActivityScrollableResizeTests method testAppAdjustmentPanScan.

@LargeTest
public void testAppAdjustmentPanScan() {
    // Give the IME 2 seconds to appear.
    pause(2000);
    View rootView = ((BigEditTextActivityScrollableResize) mTargetActivity).getRootView();
    View servedView = ((BigEditTextActivityScrollableResize) mTargetActivity).getDefaultFocusedView();
    assertNotNull(rootView);
    assertNotNull(servedView);
    destructiveCheckImeInitialState(rootView, servedView);
    verifyEditTextAdjustment(servedView, rootView.getMeasuredHeight());
}
Also used : View(android.view.View) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 14 with LargeTest

use of android.test.suitebuilder.annotation.LargeTest in project android_frameworks_base by ParanoidAndroid.

the class BottomEditTextActivityResizeTests method testAppAdjustmentResize.

@LargeTest
public void testAppAdjustmentResize() {
    // Give the IME 2 seconds to appear.
    pause(2000);
    View rootView = ((BottomEditTextActivityResize) mTargetActivity).getRootView();
    View servedView = ((BottomEditTextActivityResize) mTargetActivity).getDefaultFocusedView();
    assertNotNull(rootView);
    assertNotNull(servedView);
    destructiveCheckImeInitialState(rootView, servedView);
    verifyEditTextAdjustment(servedView, rootView.getMeasuredHeight());
}
Also used : View(android.view.View) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 15 with LargeTest

use of android.test.suitebuilder.annotation.LargeTest in project android_frameworks_base by ParanoidAndroid.

the class ConnectivityManagerMobileTest method testConnectToWifi.

// Test case 2: test connection to a given AP
@LargeTest
public void testConnectToWifi() {
    assertNotNull("SSID is null", mTestAccessPoint);
    NetworkInfo networkInfo;
    if (!mWifiOnlyFlag) {
        //Prepare for connectivity verification
        networkInfo = cmActivity.mCM.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);
        cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_MOBILE, networkInfo.getState(), NetworkState.TO_DISCONNECTION, State.DISCONNECTED);
    }
    networkInfo = cmActivity.mCM.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
    cmActivity.setStateTransitionCriteria(ConnectivityManager.TYPE_WIFI, networkInfo.getState(), NetworkState.TO_CONNECTION, State.CONNECTED);
    // Enable Wifi and connect to a test access point
    assertTrue("failed to connect to " + mTestAccessPoint, cmActivity.connectToWifi(mTestAccessPoint));
    assertTrue(cmActivity.waitForWifiState(WifiManager.WIFI_STATE_ENABLED, ConnectivityManagerTestActivity.LONG_TIMEOUT));
    log("wifi state is enabled");
    assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_WIFI, State.CONNECTED, ConnectivityManagerTestActivity.WIFI_CONNECTION_TIMEOUT));
    if (!mWifiOnlyFlag) {
        assertTrue(cmActivity.waitForNetworkState(ConnectivityManager.TYPE_MOBILE, State.DISCONNECTED, ConnectivityManagerTestActivity.LONG_TIMEOUT));
    }
    // validate states
    if (!cmActivity.validateNetworkStates(ConnectivityManager.TYPE_WIFI)) {
        log("Wifi state transition validation failed.");
        log("reason: " + cmActivity.getTransitionFailureReason(ConnectivityManager.TYPE_WIFI));
        assertTrue(false);
    }
    if (!mWifiOnlyFlag) {
        if (!cmActivity.validateNetworkStates(ConnectivityManager.TYPE_MOBILE)) {
            log("Mobile state transition validation failed.");
            log("reason: " + cmActivity.getTransitionFailureReason(ConnectivityManager.TYPE_MOBILE));
            assertTrue(false);
        }
    }
}
Also used : NetworkInfo(android.net.NetworkInfo) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Aggregations

LargeTest (android.test.suitebuilder.annotation.LargeTest)1579 AudioEffect (android.media.audiofx.AudioEffect)234 AudioTrack (android.media.AudioTrack)222 View (android.view.View)147 File (java.io.File)144 MediaVideoItem (android.media.videoeditor.MediaVideoItem)115 Uri (android.net.Uri)99 ListView (android.widget.ListView)72 Cursor (android.database.Cursor)69 Bitmap (android.graphics.Bitmap)62 Instrumentation (android.app.Instrumentation)61 MediaPlayer (android.media.MediaPlayer)60 WifiConfiguration (android.net.wifi.WifiConfiguration)53 SurfaceHolder (android.view.SurfaceHolder)50 MediaImageItem (android.media.videoeditor.MediaImageItem)49 IOException (java.io.IOException)48 AudioManager (android.media.AudioManager)42 LegacyVpnInfo (com.android.internal.net.LegacyVpnInfo)42 VpnProfile (com.android.internal.net.VpnProfile)42 Request (android.app.DownloadManager.Request)41