auto import from //depot/cupcake/@135843
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/* //device/tests/ComplexLayout/src/com/android/complexlayout/ComplexLayout.java
|
||||
**
|
||||
** Copyright 2007, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class ComplexActivity extends Activity {
|
||||
|
||||
/** Called with the activity is first created. */
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
|
||||
// Inflate our UI from its XML layout description.
|
||||
setContentView(R.layout.complex_layout);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Complex Activity launch performance testing.
|
||||
*/
|
||||
public class ComplexActivityLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "ComplexActivityLaunchPerformance";
|
||||
|
||||
public ComplexActivityLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getContext(), "com.android.launchperf.ComplexActivity");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public class EmptyActivity extends Activity {
|
||||
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Empty Activity launch performance testing.
|
||||
*/
|
||||
public class EmptyActivityLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "EmptyActivityLaunchPerformance";
|
||||
|
||||
public EmptyActivityLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getContext(), "com.android.launchperf.EmptyActivity");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Hello World launch performance testing.
|
||||
*/
|
||||
public class HelloWorldLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "HelloWorldLaunchPerformance";
|
||||
|
||||
public HelloWorldLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getTargetContext(), "com.example.android.apis.app.HelloWorld");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Notepad launch performance testing.
|
||||
*/
|
||||
public class NotePadLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "NotePadLaunchPerformance";
|
||||
|
||||
public NotePadLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getTargetContext(), "com.android.notepad.NotesList");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Phone launch performance testing.
|
||||
*/
|
||||
public class PhoneLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "PhoneLaunchPerformance";
|
||||
|
||||
public PhoneLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getTargetContext(), "com.android.phone.CallLogList");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/* //device/tests/SimpleLayout/src/com/android/simplelayout/SimpleLayout.java
|
||||
**
|
||||
** Copyright 2007, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
public class SimpleActivity extends Activity {
|
||||
|
||||
/** Called with the activity is first created. */
|
||||
@Override
|
||||
public void onCreate(Bundle icicle) {
|
||||
super.onCreate(icicle);
|
||||
|
||||
// Inflate our UI from its XML layout description.
|
||||
setContentView(R.layout.simple_layout);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright (C) 2007 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package com.android.launchperf;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.test.LaunchPerformanceBase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Instrumentation class for Simple Activity launch performance testing.
|
||||
*/
|
||||
public class SimpleActivityLaunchPerformance extends LaunchPerformanceBase {
|
||||
|
||||
public static final String LOG_TAG = "SimpleActivityLaunchPerformance";
|
||||
|
||||
public SimpleActivityLaunchPerformance() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle arguments) {
|
||||
super.onCreate(arguments);
|
||||
|
||||
mIntent.setClassName(getContext(), "com.android.launchperf.SimpleActivity");
|
||||
start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Calls LaunchApp and finish.
|
||||
*/
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
LaunchApp();
|
||||
finish(Activity.RESULT_OK, mResults);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user