Search in sources :

Example 41 with ComponentName

use of android.content.ComponentName in project platform_frameworks_base by android.

the class MetaDataTest method testServiceWithData.

@SmallTest
public void testServiceWithData() throws Exception {
    ComponentName cn = new ComponentName(mContext, LocalService.class);
    ServiceInfo si = mContext.getPackageManager().getServiceInfo(cn, PackageManager.GET_META_DATA);
    checkMetaData(cn, si);
    si = mContext.getPackageManager().getServiceInfo(cn, 0);
    assertNull("Meta data returned when not requested", si.metaData);
}
Also used : ServiceInfo(android.content.pm.ServiceInfo) ComponentName(android.content.ComponentName) SmallTest(android.test.suitebuilder.annotation.SmallTest)

Example 42 with ComponentName

use of android.content.ComponentName in project platform_frameworks_base by android.

the class LaunchTest method testLocalActivity.

@LargeTest
public void testLocalActivity() throws Exception {
    mIntent.putExtra("component", new ComponentName(getContext(), LocalActivity.class));
    runLaunchpad(LaunchpadActivity.LAUNCH);
}
Also used : ComponentName(android.content.ComponentName) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 43 with ComponentName

use of android.content.ComponentName in project platform_frameworks_base by android.

the class LaunchTest method testColdScreen.

@LargeTest
public void testColdScreen() throws Exception {
    mIntent.putExtra("component", new ComponentName(getContext(), TestedScreen.class));
    runLaunchpad(LaunchpadActivity.LAUNCH);
}
Also used : ComponentName(android.content.ComponentName) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 44 with ComponentName

use of android.content.ComponentName in project platform_frameworks_base by android.

the class LaunchTest method testClearTopInCreate.

@LargeTest
public void testClearTopInCreate() throws Exception {
    mIntent.putExtra("component", new ComponentName(getContext(), ClearTop.class));
    runLaunchpad(LaunchpadActivity.LAUNCH);
}
Also used : ComponentName(android.content.ComponentName) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Example 45 with ComponentName

use of android.content.ComponentName in project platform_frameworks_base by android.

the class LaunchTest method testColdActivity.

@LargeTest
public void testColdActivity() throws Exception {
    mIntent.putExtra("component", new ComponentName(getContext(), TestedActivity.class));
    runLaunchpad(LaunchpadActivity.LAUNCH);
}
Also used : ComponentName(android.content.ComponentName) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Aggregations

ComponentName (android.content.ComponentName)2548 Intent (android.content.Intent)959 ResolveInfo (android.content.pm.ResolveInfo)375 RemoteException (android.os.RemoteException)317 PackageManager (android.content.pm.PackageManager)269 PendingIntent (android.app.PendingIntent)252 ActivityInfo (android.content.pm.ActivityInfo)243 ArrayList (java.util.ArrayList)242 ShortcutInfo (android.content.pm.ShortcutInfo)152 Point (android.graphics.Point)145 Bundle (android.os.Bundle)139 NameNotFoundException (android.content.pm.PackageManager.NameNotFoundException)132 IBinder (android.os.IBinder)128 IOException (java.io.IOException)125 ServiceConnection (android.content.ServiceConnection)96 ServiceInfo (android.content.pm.ServiceInfo)96 UserHandle (android.os.UserHandle)86 ArraySet (android.util.ArraySet)73 XmlPullParserException (org.xmlpull.v1.XmlPullParserException)69 Uri (android.net.Uri)68