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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations