diff options
Diffstat (limited to 'tests')
144 files changed, 3329 insertions, 36 deletions
diff --git a/tests/AmSlam/Android.mk b/tests/AmSlam/Android.mk new file mode 100644 index 000000000000..8dafac73403d --- /dev/null +++ b/tests/AmSlam/Android.mk @@ -0,0 +1,30 @@ +# +# Copyright (C) 2016 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. +# + +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(call all-subdir-java-files) + +LOCAL_PACKAGE_NAME := AmSlam + +LOCAL_SDK_VERSION := 21 +LOCAL_MIN_SDK_VERSION := 21 +LOCAL_JAVA_LANGUAGE_VERSION := 1.8 + +LOCAL_MODULE_TAGS := tests + +include $(BUILD_PACKAGE) diff --git a/tests/AmSlam/AndroidManifest.xml b/tests/AmSlam/AndroidManifest.xml new file mode 100644 index 000000000000..3d39e850f024 --- /dev/null +++ b/tests/AmSlam/AndroidManifest.xml @@ -0,0 +1,139 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> + +<manifest xmlns:android="http://schemas.android.com/apk/res/android" + package="test.amslam"> + + <application + android:allowBackup="false" + android:icon="@mipmap/ic_launcher" + android:label="@string/app_name" + android:supportsRtl="true" + android:theme="@style/AppTheme"> + <activity android:name=".MainActivity"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="android.intent.category.LAUNCHER" /> + </intent-filter> + </activity> + + <receiver + android:name=".PongReceiver" + android:exported="false" /> + + <service android:name=".subreceivers.PingReceiver000" android:exported="false" android:process=":ping000" /> + <service android:name=".subreceivers.PingReceiver001" android:exported="false" android:process=":ping001" /> + <service android:name=".subreceivers.PingReceiver002" android:exported="false" android:process=":ping002" /> + <service android:name=".subreceivers.PingReceiver003" android:exported="false" android:process=":ping003" /> + <service android:name=".subreceivers.PingReceiver004" android:exported="false" android:process=":ping004" /> + <service android:name=".subreceivers.PingReceiver005" android:exported="false" android:process=":ping005" /> + <service android:name=".subreceivers.PingReceiver006" android:exported="false" android:process=":ping006" /> + <service android:name=".subreceivers.PingReceiver007" android:exported="false" android:process=":ping007" /> + <service android:name=".subreceivers.PingReceiver008" android:exported="false" android:process=":ping008" /> + <service android:name=".subreceivers.PingReceiver009" android:exported="false" android:process=":ping009" /> + <service android:name=".subreceivers.PingReceiver010" android:exported="false" android:process=":ping010" /> + <service android:name=".subreceivers.PingReceiver011" android:exported="false" android:process=":ping011" /> + <service android:name=".subreceivers.PingReceiver012" android:exported="false" android:process=":ping012" /> + <service android:name=".subreceivers.PingReceiver013" android:exported="false" android:process=":ping013" /> + <service android:name=".subreceivers.PingReceiver014" android:exported="false" android:process=":ping014" /> + <service android:name=".subreceivers.PingReceiver015" android:exported="false" android:process=":ping015" /> + <service android:name=".subreceivers.PingReceiver016" android:exported="false" android:process=":ping016" /> + <service android:name=".subreceivers.PingReceiver017" android:exported="false" android:process=":ping017" /> + <service android:name=".subreceivers.PingReceiver018" android:exported="false" android:process=":ping018" /> + <service android:name=".subreceivers.PingReceiver019" android:exported="false" android:process=":ping019" /> + <service android:name=".subreceivers.PingReceiver020" android:exported="false" android:process=":ping020" /> + <service android:name=".subreceivers.PingReceiver021" android:exported="false" android:process=":ping021" /> + <service android:name=".subreceivers.PingReceiver022" android:exported="false" android:process=":ping022" /> + <service android:name=".subreceivers.PingReceiver023" android:exported="false" android:process=":ping023" /> + <service android:name=".subreceivers.PingReceiver024" android:exported="false" android:process=":ping024" /> + <service android:name=".subreceivers.PingReceiver025" android:exported="false" android:process=":ping025" /> + <service android:name=".subreceivers.PingReceiver026" android:exported="false" android:process=":ping026" /> + <service android:name=".subreceivers.PingReceiver027" android:exported="false" android:process=":ping027" /> + <service android:name=".subreceivers.PingReceiver028" android:exported="false" android:process=":ping028" /> + <service android:name=".subreceivers.PingReceiver029" android:exported="false" android:process=":ping029" /> + <service android:name=".subreceivers.PingReceiver030" android:exported="false" android:process=":ping030" /> + <service android:name=".subreceivers.PingReceiver031" android:exported="false" android:process=":ping031" /> + <service android:name=".subreceivers.PingReceiver032" android:exported="false" android:process=":ping032" /> + <service android:name=".subreceivers.PingReceiver033" android:exported="false" android:process=":ping033" /> + <service android:name=".subreceivers.PingReceiver034" android:exported="false" android:process=":ping034" /> + <service android:name=".subreceivers.PingReceiver035" android:exported="false" android:process=":ping035" /> + <service android:name=".subreceivers.PingReceiver036" android:exported="false" android:process=":ping036" /> + <service android:name=".subreceivers.PingReceiver037" android:exported="false" android:process=":ping037" /> + <service android:name=".subreceivers.PingReceiver038" android:exported="false" android:process=":ping038" /> + <service android:name=".subreceivers.PingReceiver039" android:exported="false" android:process=":ping039" /> + <service android:name=".subreceivers.PingReceiver040" android:exported="false" android:process=":ping040" /> + <service android:name=".subreceivers.PingReceiver041" android:exported="false" android:process=":ping041" /> + <service android:name=".subreceivers.PingReceiver042" android:exported="false" android:process=":ping042" /> + <service android:name=".subreceivers.PingReceiver043" android:exported="false" android:process=":ping043" /> + <service android:name=".subreceivers.PingReceiver044" android:exported="false" android:process=":ping044" /> + <service android:name=".subreceivers.PingReceiver045" android:exported="false" android:process=":ping045" /> + <service android:name=".subreceivers.PingReceiver046" android:exported="false" android:process=":ping046" /> + <service android:name=".subreceivers.PingReceiver047" android:exported="false" android:process=":ping047" /> + <service android:name=".subreceivers.PingReceiver048" android:exported="false" android:process=":ping048" /> + <service android:name=".subreceivers.PingReceiver049" android:exported="false" android:process=":ping049" /> + <service android:name=".subreceivers.PingReceiver050" android:exported="false" android:process=":ping050" /> + <service android:name=".subreceivers.PingReceiver051" android:exported="false" android:process=":ping051" /> + <service android:name=".subreceivers.PingReceiver052" android:exported="false" android:process=":ping052" /> + <service android:name=".subreceivers.PingReceiver053" android:exported="false" android:process=":ping053" /> + <service android:name=".subreceivers.PingReceiver054" android:exported="false" android:process=":ping054" /> + <service android:name=".subreceivers.PingReceiver055" android:exported="false" android:process=":ping055" /> + <service android:name=".subreceivers.PingReceiver056" android:exported="false" android:process=":ping056" /> + <service android:name=".subreceivers.PingReceiver057" android:exported="false" android:process=":ping057" /> + <service android:name=".subreceivers.PingReceiver058" android:exported="false" android:process=":ping058" /> + <service android:name=".subreceivers.PingReceiver059" android:exported="false" android:process=":ping059" /> + <service android:name=".subreceivers.PingReceiver060" android:exported="false" android:process=":ping060" /> + <service android:name=".subreceivers.PingReceiver061" android:exported="false" android:process=":ping061" /> + <service android:name=".subreceivers.PingReceiver062" android:exported="false" android:process=":ping062" /> + <service android:name=".subreceivers.PingReceiver063" android:exported="false" android:process=":ping063" /> + <service android:name=".subreceivers.PingReceiver064" android:exported="false" android:process=":ping064" /> + <service android:name=".subreceivers.PingReceiver065" android:exported="false" android:process=":ping065" /> + <service android:name=".subreceivers.PingReceiver066" android:exported="false" android:process=":ping066" /> + <service android:name=".subreceivers.PingReceiver067" android:exported="false" android:process=":ping067" /> + <service android:name=".subreceivers.PingReceiver068" android:exported="false" android:process=":ping068" /> + <service android:name=".subreceivers.PingReceiver069" android:exported="false" android:process=":ping069" /> + <service android:name=".subreceivers.PingReceiver070" android:exported="false" android:process=":ping070" /> + <service android:name=".subreceivers.PingReceiver071" android:exported="false" android:process=":ping071" /> + <service android:name=".subreceivers.PingReceiver072" android:exported="false" android:process=":ping072" /> + <service android:name=".subreceivers.PingReceiver073" android:exported="false" android:process=":ping073" /> + <service android:name=".subreceivers.PingReceiver074" android:exported="false" android:process=":ping074" /> + <service android:name=".subreceivers.PingReceiver075" android:exported="false" android:process=":ping075" /> + <service android:name=".subreceivers.PingReceiver076" android:exported="false" android:process=":ping076" /> + <service android:name=".subreceivers.PingReceiver077" android:exported="false" android:process=":ping077" /> + <service android:name=".subreceivers.PingReceiver078" android:exported="false" android:process=":ping078" /> + <service android:name=".subreceivers.PingReceiver079" android:exported="false" android:process=":ping079" /> + <service android:name=".subreceivers.PingReceiver080" android:exported="false" android:process=":ping080" /> + <service android:name=".subreceivers.PingReceiver081" android:exported="false" android:process=":ping081" /> + <service android:name=".subreceivers.PingReceiver082" android:exported="false" android:process=":ping082" /> + <service android:name=".subreceivers.PingReceiver083" android:exported="false" android:process=":ping083" /> + <service android:name=".subreceivers.PingReceiver084" android:exported="false" android:process=":ping084" /> + <service android:name=".subreceivers.PingReceiver085" android:exported="false" android:process=":ping085" /> + <service android:name=".subreceivers.PingReceiver086" android:exported="false" android:process=":ping086" /> + <service android:name=".subreceivers.PingReceiver087" android:exported="false" android:process=":ping087" /> + <service android:name=".subreceivers.PingReceiver088" android:exported="false" android:process=":ping088" /> + <service android:name=".subreceivers.PingReceiver089" android:exported="false" android:process=":ping089" /> + <service android:name=".subreceivers.PingReceiver090" android:exported="false" android:process=":ping090" /> + <service android:name=".subreceivers.PingReceiver091" android:exported="false" android:process=":ping091" /> + <service android:name=".subreceivers.PingReceiver092" android:exported="false" android:process=":ping092" /> + <service android:name=".subreceivers.PingReceiver093" android:exported="false" android:process=":ping093" /> + <service android:name=".subreceivers.PingReceiver094" android:exported="false" android:process=":ping094" /> + <service android:name=".subreceivers.PingReceiver095" android:exported="false" android:process=":ping095" /> + <service android:name=".subreceivers.PingReceiver096" android:exported="false" android:process=":ping096" /> + <service android:name=".subreceivers.PingReceiver097" android:exported="false" android:process=":ping097" /> + <service android:name=".subreceivers.PingReceiver098" android:exported="false" android:process=":ping098" /> + <service android:name=".subreceivers.PingReceiver099" android:exported="false" android:process=":ping099" /> + </application> + +</manifest> diff --git a/tests/AmSlam/res/layout/activity_main.xml b/tests/AmSlam/res/layout/activity_main.xml new file mode 100644 index 000000000000..6cf82691155c --- /dev/null +++ b/tests/AmSlam/res/layout/activity_main.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:paddingBottom="@dimen/activity_vertical_margin" + android:paddingLeft="@dimen/activity_horizontal_margin" + android:paddingRight="@dimen/activity_horizontal_margin" + android:paddingTop="@dimen/activity_vertical_margin" + tools:context="test.amslam.MainActivity"> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/run" + android:text="@string/run" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/output" /> + +</LinearLayout> diff --git a/tests/AmSlam/res/mipmap-hdpi/ic_launcher.png b/tests/AmSlam/res/mipmap-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000000..cde69bcccec6 --- /dev/null +++ b/tests/AmSlam/res/mipmap-hdpi/ic_launcher.png diff --git a/tests/AmSlam/res/mipmap-mdpi/ic_launcher.png b/tests/AmSlam/res/mipmap-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000000..c133a0cbd379 --- /dev/null +++ b/tests/AmSlam/res/mipmap-mdpi/ic_launcher.png diff --git a/tests/AmSlam/res/mipmap-xhdpi/ic_launcher.png b/tests/AmSlam/res/mipmap-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000000..bfa42f0e7b91 --- /dev/null +++ b/tests/AmSlam/res/mipmap-xhdpi/ic_launcher.png diff --git a/tests/AmSlam/res/mipmap-xxhdpi/ic_launcher.png b/tests/AmSlam/res/mipmap-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000000..324e72cdd748 --- /dev/null +++ b/tests/AmSlam/res/mipmap-xxhdpi/ic_launcher.png diff --git a/tests/AmSlam/res/mipmap-xxxhdpi/ic_launcher.png b/tests/AmSlam/res/mipmap-xxxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 000000000000..aee44e138434 --- /dev/null +++ b/tests/AmSlam/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/tests/AmSlam/res/values-w820dp/dimens.xml b/tests/AmSlam/res/values-w820dp/dimens.xml new file mode 100644 index 000000000000..0b864dd703d3 --- /dev/null +++ b/tests/AmSlam/res/values-w820dp/dimens.xml @@ -0,0 +1,20 @@ +<!-- Copyright (C) 2016 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. +--> +<resources> + <!-- Example customization of dimensions originally defined in res/values/dimens.xml + (such as screen margins) for screens with more than 820dp of available width. This + would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> + <dimen name="activity_horizontal_margin">64dp</dimen> +</resources> diff --git a/tests/AmSlam/res/values/colors.xml b/tests/AmSlam/res/values/colors.xml new file mode 100644 index 000000000000..4270ca68a860 --- /dev/null +++ b/tests/AmSlam/res/values/colors.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2016 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. +--> +<resources> + <color name="colorPrimary">#3F51B5</color> + <color name="colorPrimaryDark">#303F9F</color> + <color name="colorAccent">#FF4081</color> +</resources> diff --git a/tests/AmSlam/res/values/dimens.xml b/tests/AmSlam/res/values/dimens.xml new file mode 100644 index 000000000000..ed4ccbcc700f --- /dev/null +++ b/tests/AmSlam/res/values/dimens.xml @@ -0,0 +1,19 @@ +<!-- Copyright (C) 2016 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. +--> +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> +</resources> diff --git a/tests/AmSlam/res/values/strings.xml b/tests/AmSlam/res/values/strings.xml new file mode 100644 index 000000000000..e12d316deec2 --- /dev/null +++ b/tests/AmSlam/res/values/strings.xml @@ -0,0 +1,18 @@ +<!-- Copyright (C) 2016 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. +--> +<resources> + <string name="app_name">AmSlam</string> + <string name="run">Run</string> +</resources> diff --git a/tests/AmSlam/res/values/styles.xml b/tests/AmSlam/res/values/styles.xml new file mode 100644 index 000000000000..0983b2535878 --- /dev/null +++ b/tests/AmSlam/res/values/styles.xml @@ -0,0 +1,23 @@ +<!-- Copyright (C) 2016 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. +--> +<resources> + <!-- Base application theme. --> + <style name="AppTheme" parent="@android:style/Theme.Material.Light.DarkActionBar"> + <!-- Customize your theme here. --> + <item name="android:colorPrimary">@color/colorPrimary</item> + <item name="android:colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="android:colorAccent">@color/colorAccent</item> + </style> +</resources> diff --git a/tests/AmSlam/src/test/amslam/MainActivity.java b/tests/AmSlam/src/test/amslam/MainActivity.java new file mode 100644 index 000000000000..cce955e999f8 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/MainActivity.java @@ -0,0 +1,185 @@ +/* + * Copyright (C) 2016 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 test.amslam; + +import android.app.Activity; +import android.content.Context; +import android.content.Intent; +import android.os.SystemClock; +import android.os.Bundle; +import android.text.method.ScrollingMovementMethod; +import android.util.Log; +import android.view.View; +import android.widget.TextView; + +import java.util.Queue; +import java.util.concurrent.ArrayBlockingQueue; +import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ConcurrentLinkedQueue; + +public class MainActivity extends Activity implements PongReceiver.PingPongResponseListener { + private static final String TAG = "AmSlam"; + + private static final Class<?>[] sTargets; + private static final BlockingQueue<Intent> sWorkQueue = new ArrayBlockingQueue<>(100); + private static Context sAppContext; + private static final int[] CONCURRENT_TESTS = {1, 2, 4, 6, 8, 10}; + + private boolean mAutoRun; + + private TextView mOutput; + + private int mTestPhase; + private long mBatchStartTime; + private int mPendingResponses; + + private int mBatchRemaining; + private int mCurrentTargetIndex; + + private int mTotalReceived; + private long mTotalTime; + private long mTotalPingTime; + private long mTotalPongTime; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + sAppContext = getApplicationContext(); + setContentView(R.layout.activity_main); + mOutput = (TextView) findViewById(R.id.output); + PongReceiver.addListener(this); + + findViewById(R.id.run).setOnClickListener(view -> { + view.setEnabled(false); + mOutput.setText(""); + startBatch(); + }); + + mAutoRun = getIntent().getBooleanExtra("autorun", false); + if (mAutoRun) { + findViewById(R.id.run).performClick(); + } + } + + @Override + protected void onDestroy() { + super.onDestroy(); + PongReceiver.removeListener(this); + } + + private void startBatch() { + if (mBatchRemaining > 0 || mPendingResponses > 0) { + // Still sending, skip + return; + } + mBatchStartTime = SystemClock.uptimeMillis(); + mBatchRemaining = 10 * CONCURRENT_TESTS[mTestPhase]; + mTotalReceived = 0; + mTotalTime = mTotalPingTime = mTotalPongTime = 0; + log("Starting test with " + CONCURRENT_TESTS[mTestPhase] + " concurrent requests...\n"); + continueSend(); + } + + private Class<?> nextTarget() { + Class<?> ret = sTargets[mCurrentTargetIndex]; + mCurrentTargetIndex = (mCurrentTargetIndex + 1) % sTargets.length; + return ret; + } + + private void continueSend() { + while (mPendingResponses < CONCURRENT_TESTS[mTestPhase] && mBatchRemaining > 0) { + mPendingResponses++; + mBatchRemaining--; + Class<?> target = nextTarget(); + Intent intent = new Intent(getApplicationContext(), target); + try { + sWorkQueue.put(intent); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + } + } + + @Override + public void onPingPongResponse(long send, long bounce, long recv, String remote) { + if (send < mBatchStartTime || mPendingResponses == 0) { + Log.e(TAG, "received outdated response??"); + Log.e(TAG, "send " + send + ", bounce " + bounce + ", recv " + recv + + ", batchStart " + mBatchStartTime + ", remote: " + remote); + } + mPendingResponses--; + mTotalReceived++; + continueSend(); + mTotalTime += (recv - send); + mTotalPingTime += (bounce - send); + mTotalPongTime += (recv - bounce); + if (mPendingResponses == 0) { + long now = SystemClock.uptimeMillis(); + log(String.format("Sent %d ping/pongs, %d concurrent.\n" + + "Total duration %dms (%dms eff. avg)\n" + + "Average message took %dms (%dms + %dms)\n", + mTotalReceived, CONCURRENT_TESTS[mTestPhase], + (now - mBatchStartTime), (now - mBatchStartTime) / mTotalReceived, + mTotalTime / mTotalReceived, mTotalPingTime / mTotalReceived, + mTotalPongTime / mTotalReceived)); + + mTestPhase++; + if (mTestPhase < CONCURRENT_TESTS.length) { + startBatch(); + } else { + mTestPhase = 0; + log("Finished\n"); + findViewById(R.id.run).setEnabled(true); + if (mAutoRun) { + finish(); + } + } + } + } + + private void log(String text) { + mOutput.append(text); + Log.d(TAG, text); + } + + static { + sTargets = new Class<?>[100]; + for (int i = 0; i < sTargets.length; i++) { + try { + sTargets[i] = Class.forName( + String.format("test.amslam.subreceivers.PingReceiver%03d", i)); + } catch (ClassNotFoundException e) { + throw new RuntimeException(e); + } + } + + Runnable work = () -> { + while (true) { + try { + Intent intent = sWorkQueue.take(); + intent.putExtra("start_time", SystemClock.uptimeMillis()); + sAppContext.startService(intent); + } catch (InterruptedException e) {} + } + }; + + // How many worker threads should we spawn? ¯\_(ツ)_/¯ + for (int i = 0; i < 10; i++) { + new Thread(work, "Slammer" + i).start(); + } + } +} diff --git a/tests/AmSlam/src/test/amslam/PingReceiver.java b/tests/AmSlam/src/test/amslam/PingReceiver.java new file mode 100644 index 000000000000..1cea0792f138 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/PingReceiver.java @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2016 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 test.amslam; + +import android.app.Service; +import android.content.Intent; +import android.os.Handler; +import android.os.IBinder; +import android.os.SystemClock; + +public class PingReceiver extends Service { + + @Override + public int onStartCommand(Intent intent, int flags, int startId) { + Intent response = new Intent(this, PongReceiver.class); + response.putExtra("start_time", intent.getLongExtra("start_time", 0)); + response.putExtra("bounce_time", SystemClock.uptimeMillis()); + response.putExtra("receiver", getClass().getSimpleName()); + sendBroadcast(response); + stopSelf(); + // If we exit before returning from onStartCommand the system will + // think we crashed and attempt a re-delivery, which we don't want here. + // Post'ing the kill deals with this just fine. + new Handler().post(() -> System.exit(0)); + return START_NOT_STICKY; + } + + @Override + public IBinder onBind(Intent intent) { + return null; + } +} diff --git a/tests/AmSlam/src/test/amslam/PongReceiver.java b/tests/AmSlam/src/test/amslam/PongReceiver.java new file mode 100644 index 000000000000..b837b9cdadfa --- /dev/null +++ b/tests/AmSlam/src/test/amslam/PongReceiver.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2016 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 test.amslam; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.os.SystemClock; + +import java.util.HashSet; +import java.util.Set; + +public class PongReceiver extends BroadcastReceiver { + interface PingPongResponseListener { + void onPingPongResponse(long send, long bounce, long recv, String remote); + } + + private static Set<PingPongResponseListener> sListeners = new HashSet<>(); + + public static void addListener(PingPongResponseListener listener) { + sListeners.add(listener); + } + + public static void removeListener(PingPongResponseListener listener) { + sListeners.remove(listener); + } + + @Override + public void onReceive(Context context, Intent intent) { + long now = SystemClock.uptimeMillis(); + long start_time = intent.getLongExtra("start_time", 0); + long bounce_time = intent.getLongExtra("bounce_time", 0); + String receiver = intent.getStringExtra("receiver"); + for (PingPongResponseListener listener : sListeners) { + listener.onPingPongResponse(start_time, bounce_time, now, receiver); + } + } +} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver000.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver000.java new file mode 100644 index 000000000000..ce5d04c3f131 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver000.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver000 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver001.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver001.java new file mode 100644 index 000000000000..7f4dc6f373cb --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver001.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver001 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver002.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver002.java new file mode 100644 index 000000000000..610e1ed515f5 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver002.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver002 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver003.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver003.java new file mode 100644 index 000000000000..cddee4c906db --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver003.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver003 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver004.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver004.java new file mode 100644 index 000000000000..80882e55ac6f --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver004.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver004 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver005.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver005.java new file mode 100644 index 000000000000..33cf47284cee --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver005.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver005 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver006.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver006.java new file mode 100644 index 000000000000..49ca9c928377 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver006.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver006 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver007.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver007.java new file mode 100644 index 000000000000..65ed84bf0a51 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver007.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver007 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver008.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver008.java new file mode 100644 index 000000000000..63182f8eb9d9 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver008.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver008 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver009.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver009.java new file mode 100644 index 000000000000..c1405f2d5281 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver009.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver009 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver010.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver010.java new file mode 100644 index 000000000000..990735f85167 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver010.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver010 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver011.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver011.java new file mode 100644 index 000000000000..a4d548a4bc48 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver011.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver011 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver012.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver012.java new file mode 100644 index 000000000000..3672df7a3274 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver012.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver012 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver013.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver013.java new file mode 100644 index 000000000000..ec09d0cc88b9 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver013.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver013 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver014.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver014.java new file mode 100644 index 000000000000..c7f8ef1a84e7 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver014.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver014 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver015.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver015.java new file mode 100644 index 000000000000..1f0eb27b9299 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver015.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver015 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver016.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver016.java new file mode 100644 index 000000000000..37f9adfad397 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver016.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver016 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver017.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver017.java new file mode 100644 index 000000000000..8e28976f2390 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver017.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver017 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver018.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver018.java new file mode 100644 index 000000000000..f0a7cf5eca2e --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver018.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver018 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver019.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver019.java new file mode 100644 index 000000000000..59813137da0c --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver019.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver019 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver020.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver020.java new file mode 100644 index 000000000000..3fe0109ced34 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver020.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver020 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver021.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver021.java new file mode 100644 index 000000000000..9d4a84172d53 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver021.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver021 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver022.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver022.java new file mode 100644 index 000000000000..ccf1d193a12a --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver022.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver022 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver023.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver023.java new file mode 100644 index 000000000000..ac5710227a53 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver023.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver023 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver024.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver024.java new file mode 100644 index 000000000000..ce49a1ca5152 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver024.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver024 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver025.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver025.java new file mode 100644 index 000000000000..364ae202ee58 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver025.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver025 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver026.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver026.java new file mode 100644 index 000000000000..46f4f9115c4b --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver026.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver026 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver027.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver027.java new file mode 100644 index 000000000000..9b8d63d36fad --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver027.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver027 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver028.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver028.java new file mode 100644 index 000000000000..2a1c512175dd --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver028.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver028 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver029.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver029.java new file mode 100644 index 000000000000..45552b7c8fba --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver029.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver029 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver030.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver030.java new file mode 100644 index 000000000000..fba4cabf3cf6 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver030.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver030 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver031.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver031.java new file mode 100644 index 000000000000..77a1e918e7bc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver031.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver031 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver032.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver032.java new file mode 100644 index 000000000000..73c47e6bf17d --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver032.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver032 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver033.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver033.java new file mode 100644 index 000000000000..76557aba91b4 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver033.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver033 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver034.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver034.java new file mode 100644 index 000000000000..0f4ce1001afc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver034.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver034 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver035.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver035.java new file mode 100644 index 000000000000..9513771352d3 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver035.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver035 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver036.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver036.java new file mode 100644 index 000000000000..8c0d7ca3de3f --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver036.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver036 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver037.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver037.java new file mode 100644 index 000000000000..9d494c36b223 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver037.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver037 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver038.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver038.java new file mode 100644 index 000000000000..1a6456a99547 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver038.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver038 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver039.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver039.java new file mode 100644 index 000000000000..edef06c8b5e4 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver039.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver039 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver040.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver040.java new file mode 100644 index 000000000000..46f430ba1ed4 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver040.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver040 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver041.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver041.java new file mode 100644 index 000000000000..af7add3e9e7d --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver041.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver041 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver042.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver042.java new file mode 100644 index 000000000000..20f0d683dbbc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver042.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver042 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver043.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver043.java new file mode 100644 index 000000000000..5217ae92c1ae --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver043.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver043 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver044.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver044.java new file mode 100644 index 000000000000..2984777c9cab --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver044.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver044 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver045.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver045.java new file mode 100644 index 000000000000..b5b5a8c5de86 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver045.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver045 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver046.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver046.java new file mode 100644 index 000000000000..b48b722ad04b --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver046.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver046 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver047.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver047.java new file mode 100644 index 000000000000..7dd36d7a6ea5 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver047.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver047 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver048.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver048.java new file mode 100644 index 000000000000..469c7bf890bc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver048.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver048 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver049.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver049.java new file mode 100644 index 000000000000..d1482d30ea5f --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver049.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver049 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver050.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver050.java new file mode 100644 index 000000000000..ac9441d6e071 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver050.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver050 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver051.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver051.java new file mode 100644 index 000000000000..dea688453e36 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver051.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver051 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver052.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver052.java new file mode 100644 index 000000000000..0a756f92bf16 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver052.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver052 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver053.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver053.java new file mode 100644 index 000000000000..b455eb8d459a --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver053.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver053 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver054.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver054.java new file mode 100644 index 000000000000..8ff8a39cc59f --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver054.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver054 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver055.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver055.java new file mode 100644 index 000000000000..88864859e1f8 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver055.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver055 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver056.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver056.java new file mode 100644 index 000000000000..ee62080a244b --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver056.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver056 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver057.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver057.java new file mode 100644 index 000000000000..4d0e67782fd0 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver057.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver057 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver058.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver058.java new file mode 100644 index 000000000000..8202dff8aebd --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver058.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver058 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver059.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver059.java new file mode 100644 index 000000000000..0d67f9fddd84 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver059.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver059 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver060.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver060.java new file mode 100644 index 000000000000..1c44d851a182 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver060.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver060 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver061.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver061.java new file mode 100644 index 000000000000..1c678be78c28 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver061.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver061 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver062.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver062.java new file mode 100644 index 000000000000..a0bb19478aee --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver062.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver062 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver063.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver063.java new file mode 100644 index 000000000000..0d09049455ea --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver063.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver063 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver064.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver064.java new file mode 100644 index 000000000000..b93445965d80 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver064.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver064 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver065.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver065.java new file mode 100644 index 000000000000..1534290b3052 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver065.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver065 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver066.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver066.java new file mode 100644 index 000000000000..e053ac4b0300 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver066.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver066 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver067.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver067.java new file mode 100644 index 000000000000..deb533a185b8 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver067.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver067 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver068.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver068.java new file mode 100644 index 000000000000..6ed5cbcd94ad --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver068.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver068 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver069.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver069.java new file mode 100644 index 000000000000..775ab8b24596 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver069.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver069 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver070.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver070.java new file mode 100644 index 000000000000..213a688512f7 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver070.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver070 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver071.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver071.java new file mode 100644 index 000000000000..5b5626bd4afc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver071.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver071 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver072.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver072.java new file mode 100644 index 000000000000..f16be790b026 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver072.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver072 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver073.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver073.java new file mode 100644 index 000000000000..94e5fc84ab97 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver073.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver073 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver074.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver074.java new file mode 100644 index 000000000000..443beb24bb4f --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver074.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver074 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver075.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver075.java new file mode 100644 index 000000000000..3e5c35d16099 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver075.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver075 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver076.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver076.java new file mode 100644 index 000000000000..cdf967197a55 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver076.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver076 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver077.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver077.java new file mode 100644 index 000000000000..af4340b306b9 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver077.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver077 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver078.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver078.java new file mode 100644 index 000000000000..f20b1871cadb --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver078.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver078 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver079.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver079.java new file mode 100644 index 000000000000..aa654f0483a6 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver079.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver079 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver080.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver080.java new file mode 100644 index 000000000000..c0241ceb1842 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver080.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver080 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver081.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver081.java new file mode 100644 index 000000000000..c9a8a856b5d8 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver081.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver081 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver082.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver082.java new file mode 100644 index 000000000000..c84d87b78f72 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver082.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver082 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver083.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver083.java new file mode 100644 index 000000000000..9395ae80c738 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver083.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver083 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver084.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver084.java new file mode 100644 index 000000000000..1b702c160a4b --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver084.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver084 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver085.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver085.java new file mode 100644 index 000000000000..1cd7c93308bd --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver085.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver085 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver086.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver086.java new file mode 100644 index 000000000000..a1c9748d123b --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver086.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver086 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver087.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver087.java new file mode 100644 index 000000000000..4784beec4f75 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver087.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver087 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver088.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver088.java new file mode 100644 index 000000000000..4a2f1ab046ce --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver088.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver088 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver089.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver089.java new file mode 100644 index 000000000000..2ed3e4df7bc1 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver089.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver089 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver090.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver090.java new file mode 100644 index 000000000000..77b7ac67b998 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver090.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver090 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver091.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver091.java new file mode 100644 index 000000000000..2bcde205f947 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver091.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver091 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver092.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver092.java new file mode 100644 index 000000000000..fc6bf5219fbc --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver092.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver092 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver093.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver093.java new file mode 100644 index 000000000000..14f181cd99ff --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver093.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver093 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver094.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver094.java new file mode 100644 index 000000000000..9145cfae7f53 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver094.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver094 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver095.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver095.java new file mode 100644 index 000000000000..da1ca9293ca9 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver095.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver095 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver096.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver096.java new file mode 100644 index 000000000000..2aacae4da986 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver096.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver096 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver097.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver097.java new file mode 100644 index 000000000000..d685adb4bcc3 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver097.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver097 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver098.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver098.java new file mode 100644 index 000000000000..013779f58c66 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver098.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver098 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver099.java b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver099.java new file mode 100644 index 000000000000..2bf31f4abaf5 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/PingReceiver099.java @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver099 extends PingReceiver {} diff --git a/tests/AmSlam/src/test/amslam/subreceivers/gen.py b/tests/AmSlam/src/test/amslam/subreceivers/gen.py new file mode 100644 index 000000000000..755afa9e1a92 --- /dev/null +++ b/tests/AmSlam/src/test/amslam/subreceivers/gen.py @@ -0,0 +1,51 @@ +# +# Copyright (C) 2016 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. +# + +TEMPLATE = """/* + * Copyright (C) 2016 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 test.amslam.subreceivers; + +import test.amslam.PingReceiver; + +public class PingReceiver{index:03d} extends PingReceiver {{}} +""" + +MANIFEST_ADD = """ <receiver android:name=".subreceivers.PingReceiver{0:03d}" android:exported="false" android:process=":ping{0:03d}" />\n""" + +def gen(i): + f = open('PingReceiver{:03d}.java'.format(i), 'w') + f.write(TEMPLATE.format(index=i)) + f.close() + +manifest = open('AppendToManifest.xml', 'w') +for i in xrange(100): + gen(i) + manifest.write(MANIFEST_ADD.format(i)) +manifest.close() diff --git a/tests/HwAccelerationTest/src/com/android/test/hwui/MultiProducerActivity.java b/tests/HwAccelerationTest/src/com/android/test/hwui/MultiProducerActivity.java index 63fa3f921560..7713f5da36ed 100644 --- a/tests/HwAccelerationTest/src/com/android/test/hwui/MultiProducerActivity.java +++ b/tests/HwAccelerationTest/src/com/android/test/hwui/MultiProducerActivity.java @@ -27,7 +27,6 @@ import android.os.Bundle; import android.view.DisplayListCanvas; import android.view.ThreadedRenderer; import android.view.RenderNode; -import android.view.ThreadedRenderer; import android.view.View; import android.view.View.OnClickListener; import android.widget.AbsoluteLayout; @@ -120,7 +119,7 @@ public class MultiProducerActivity extends Activity implements OnClickListener { if (view == null) { view.postDelayed(mSetup, 50); } - ThreadedRenderer renderer = view.getHardwareRenderer(); + ThreadedRenderer renderer = view.getThreadedRenderer(); if (renderer == null || view.getWidth() == 0) { view.postDelayed(mSetup, 50); } diff --git a/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerUtil.java b/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerUtil.java index 1c95c25370d2..881d5d22da52 100644 --- a/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerUtil.java +++ b/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/SoundTriggerUtil.java @@ -104,7 +104,6 @@ public class SoundTriggerUtil { * @param modelId The model ID to look-up the sound model for. * @return {@code true} if the call succeeds, {@code false} otherwise. */ - @Nullable public boolean deleteSoundModel(UUID modelId) { try { mSoundTriggerService.deleteSoundModel(new ParcelUuid(modelId)); diff --git a/tests/UiBench/Android.mk b/tests/UiBench/Android.mk index 0e678cde9c70..f65d10986268 100644 --- a/tests/UiBench/Android.mk +++ b/tests/UiBench/Android.mk @@ -10,17 +10,20 @@ LOCAL_SRC_FILES := $(call all-java-files-under,src) # regressions are reflected in test data LOCAL_RESOURCE_DIR := \ $(LOCAL_PATH)/res \ + frameworks/support/design/res \ frameworks/support/v7/appcompat/res \ frameworks/support/v7/cardview/res \ frameworks/support/v7/recyclerview/res LOCAL_AAPT_FLAGS := \ --auto-add-overlay \ + --extra-packages android.support.design \ --extra-packages android.support.v7.appcompat \ --extra-packages android.support.v7.cardview \ --extra-packages android.support.v7.recyclerview LOCAL_STATIC_JAVA_LIBRARIES := \ + android-support-design \ android-support-v4 \ android-support-v7-appcompat \ android-support-v7-cardview \ diff --git a/tests/UiBench/AndroidManifest.xml b/tests/UiBench/AndroidManifest.xml index 95bbb2139a95..97b42161d08a 100644 --- a/tests/UiBench/AndroidManifest.xml +++ b/tests/UiBench/AndroidManifest.xml @@ -68,6 +68,14 @@ </intent-filter> </activity> <activity + android:name=".InvalidateTreeActivity" + android:label="General/Invalidate Tree" > + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="com.android.test.uibench.TEST" /> + </intent-filter> + </activity> + <activity android:name=".TrivialAnimationActivity" android:label="General/Trivial Animation" > <intent-filter> @@ -172,5 +180,15 @@ </intent-filter> </activity> + <!-- Navigation Drawer --> + <activity + android:name=".NavigationDrawerActivity" + android:label="Navigation Drawer Activity" + android:theme="@style/NoActionBar"> + <intent-filter> + <action android:name="android.intent.action.MAIN" /> + <category android:name="com.android.test.uibench.TEST" /> + </intent-filter> + </activity> </application> </manifest> diff --git a/tests/UiBench/build.gradle b/tests/UiBench/build.gradle index 0756a8aac878..03ef7f106de5 100644 --- a/tests/UiBench/build.gradle +++ b/tests/UiBench/build.gradle @@ -3,8 +3,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' - + classpath 'com.android.tools.build:gradle:2.1.2' } } @@ -12,10 +11,10 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion "22.0.0" + buildToolsVersion "23.0.3" defaultConfig { - minSdkVersion 14 + minSdkVersion 21 targetSdkVersion 23 versionCode 1 versionName "1.0" @@ -36,4 +35,5 @@ dependencies { compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:cardview-v7:23.0.1' compile 'com.android.support:recyclerview-v7:23.0.1' + compile 'com.android.support:design:23.0.1' } diff --git a/tests/UiBench/gradle/wrapper/gradle-wrapper.properties b/tests/UiBench/gradle/wrapper/gradle-wrapper.properties index 12582f8e993e..03ac7783bc5c 100644 --- a/tests/UiBench/gradle/wrapper/gradle-wrapper.properties +++ b/tests/UiBench/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Wed Aug 26 10:51:13 PDT 2015 +#Thu Jun 30 15:56:17 PDT 2016 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip diff --git a/tests/UiBench/res/drawable/ic_menu_camera.xml b/tests/UiBench/res/drawable/ic_menu_camera.xml new file mode 100644 index 000000000000..189ef97c24a7 --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_camera.xml @@ -0,0 +1,27 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M12,12m-3.2,0a3.2,3.2 0,1 1,6.4 0a3.2,3.2 0,1 1,-6.4 0"/> + <path + android:fillColor="#FF000000" + android:pathData="M9,2L7.17,4H4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V6c0,-1.1 -0.9,-2 -2,-2h-3.17L15,2H9zm3,15c-2.76,0 -5,-2.24 -5,-5s2.24,-5 5,-5 5,2.24 5,5 -2.24,5 -5,5z"/> +</vector> diff --git a/tests/UiBench/res/drawable/ic_menu_gallery.xml b/tests/UiBench/res/drawable/ic_menu_gallery.xml new file mode 100644 index 000000000000..d41f2502f1d2 --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_gallery.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M22,16V4c0,-1.1 -0.9,-2 -2,-2H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2zm-11,-4l2.03,2.71L16,11l4,5H8l3,-4zM2,6v14c0,1.1 0.9,2 2,2h14v-2H4V6H2z"/> +</vector> diff --git a/tests/UiBench/res/drawable/ic_menu_manage.xml b/tests/UiBench/res/drawable/ic_menu_manage.xml new file mode 100644 index 000000000000..f81e0f91ea17 --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_manage.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M22.7,19l-9.1,-9.1c0.9,-2.3 0.4,-5 -1.5,-6.9 -2,-2 -5,-2.4 -7.4,-1.3L9,6 6,9 1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1c1.9,1.9 4.6,2.4 6.9,1.5l9.1,9.1c0.4,0.4 1,0.4 1.4,0l2.3,-2.3c0.5,-0.4 0.5,-1.1 0.1,-1.4z"/> +</vector>
\ No newline at end of file diff --git a/tests/UiBench/res/drawable/ic_menu_send.xml b/tests/UiBench/res/drawable/ic_menu_send.xml new file mode 100644 index 000000000000..0d86c76f7df9 --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_send.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M2.01,21L23,12 2.01,3 2,10l15,2 -15,2z"/> +</vector> diff --git a/tests/UiBench/res/drawable/ic_menu_share.xml b/tests/UiBench/res/drawable/ic_menu_share.xml new file mode 100644 index 000000000000..b3e6ff195119 --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_share.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z"/> +</vector> diff --git a/tests/UiBench/res/drawable/ic_menu_slideshow.xml b/tests/UiBench/res/drawable/ic_menu_slideshow.xml new file mode 100644 index 000000000000..d79950b2a99b --- /dev/null +++ b/tests/UiBench/res/drawable/ic_menu_slideshow.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportHeight="24.0" + android:viewportWidth="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M4,6H2v14c0,1.1 0.9,2 2,2h14v-2H4V6zm16,-4H8c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2zm-8,12.5v-9l6,4.5 -6,4.5z"/> +</vector> diff --git a/tests/UiBench/res/drawable/side_nav_bar.xml b/tests/UiBench/res/drawable/side_nav_bar.xml new file mode 100644 index 000000000000..59f4cf3762f5 --- /dev/null +++ b/tests/UiBench/res/drawable/side_nav_bar.xml @@ -0,0 +1,24 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:angle="135" + android:centerColor="#4CAF50" + android:endColor="#2E7D32" + android:startColor="#81C784" + android:type="linear"/> +</shape>
\ No newline at end of file diff --git a/tests/UiBench/res/layout/activity_navigation_drawer.xml b/tests/UiBench/res/layout/activity_navigation_drawer.xml new file mode 100644 index 000000000000..8d4bfafd8dd8 --- /dev/null +++ b/tests/UiBench/res/layout/activity_navigation_drawer.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 + --> +<android.support.v4.widget.DrawerLayout + android:id="@+id/drawer_layout" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + + <include + layout="@layout/app_bar_navigation_drawer" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + + <android.support.design.widget.NavigationView + android:id="@+id/nav_view" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="start" + android:fitsSystemWindows="true" + app:headerLayout="@layout/nav_header_navigation_drawer" + app:menu="@menu/activity_navigation_drawer_drawer"/> + +</android.support.v4.widget.DrawerLayout> diff --git a/tests/UiBench/res/layout/app_bar_navigation_drawer.xml b/tests/UiBench/res/layout/app_bar_navigation_drawer.xml new file mode 100644 index 000000000000..ede2a566987b --- /dev/null +++ b/tests/UiBench/res/layout/app_bar_navigation_drawer.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 + --> +<android.support.design.widget.CoordinatorLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + + <android.support.design.widget.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary"/> + </android.support.design.widget.AppBarLayout> + +</android.support.design.widget.CoordinatorLayout> diff --git a/tests/UiBench/res/layout/nav_header_navigation_drawer.xml b/tests/UiBench/res/layout/nav_header_navigation_drawer.xml new file mode 100644 index 000000000000..789f2912541c --- /dev/null +++ b/tests/UiBench/res/layout/nav_header_navigation_drawer.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 + --> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="160dp" + android:background="@drawable/side_nav_bar" + android:gravity="bottom" + android:orientation="vertical" + android:paddingBottom="@dimen/default_spacing" + android:paddingLeft="@dimen/default_spacing" + android:paddingRight="@dimen/default_spacing" + android:paddingTop="@dimen/default_spacing" + android:theme="@style/ThemeOverlay.AppCompat.Dark"> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/default_spacing" + android:src="@android:drawable/sym_def_app_icon"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/default_spacing" + android:text="UiBench" + android:textAppearance="@style/TextAppearance.AppCompat.Body1"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="hwui-team@google.com"/> + +</LinearLayout> diff --git a/tests/UiBench/res/menu/activity_navigation_drawer_drawer.xml b/tests/UiBench/res/menu/activity_navigation_drawer_drawer.xml new file mode 100644 index 000000000000..9bb785d25cf9 --- /dev/null +++ b/tests/UiBench/res/menu/activity_navigation_drawer_drawer.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2016 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 + --> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + + <group android:checkableBehavior="single"> + <item + android:icon="@drawable/ic_menu_camera" + android:title="Import"/> + <item + android:icon="@drawable/ic_menu_gallery" + android:title="Gallery"/> + <item + android:icon="@drawable/ic_menu_slideshow" + android:title="Slideshow"/> + <item + android:icon="@drawable/ic_menu_manage" + android:title="Tools"/> + </group> + + <item android:title="Communicate"> + <menu> + <item + android:icon="@drawable/ic_menu_share" + android:title="Share"/> + <item + android:icon="@drawable/ic_menu_send" + android:title="Send"/> + </menu> + </item> + +</menu> diff --git a/tests/UiBench/res/values/dimens.xml b/tests/UiBench/res/values/dimens.xml new file mode 100644 index 000000000000..099da77f9eda --- /dev/null +++ b/tests/UiBench/res/values/dimens.xml @@ -0,0 +1,19 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="default_spacing">16dp</dimen> +</resources> diff --git a/tests/UiBench/res/values/strings.xml b/tests/UiBench/res/values/strings.xml new file mode 100644 index 000000000000..e9fdc8aafb71 --- /dev/null +++ b/tests/UiBench/res/values/strings.xml @@ -0,0 +1,19 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<resources> + <string name="navigation_drawer_open">Open navigation drawer</string> + <string name="navigation_drawer_close">Close navigation drawer</string> +</resources> diff --git a/tests/UiBench/res/values/styles.xml b/tests/UiBench/res/values/styles.xml new file mode 100644 index 000000000000..26552a2a961d --- /dev/null +++ b/tests/UiBench/res/values/styles.xml @@ -0,0 +1,23 @@ +<!-- + ~ Copyright (C) 2016 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 + --> +<resources> + <style name="NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + <item name="android:windowDrawsSystemBarBackgrounds">true</item> + <item name="android:statusBarColor">@android:color/transparent</item> + </style> +</resources> diff --git a/tests/UiBench/src/com/android/test/uibench/InvalidateActivity.java b/tests/UiBench/src/com/android/test/uibench/InvalidateActivity.java index 93d67a60515f..81d03ffee0ed 100644 --- a/tests/UiBench/src/com/android/test/uibench/InvalidateActivity.java +++ b/tests/UiBench/src/com/android/test/uibench/InvalidateActivity.java @@ -31,7 +31,7 @@ import android.view.ViewGroup; * Tests invalidation performance by invalidating a large number of easily rendered views, */ public class InvalidateActivity extends AppCompatActivity { - public static class ColorView extends View { + private static class ColorView extends View { @ColorInt public int mColor; @@ -50,7 +50,7 @@ public class InvalidateActivity extends AppCompatActivity { } } - ColorView[][] mColorViews; + private ColorView[][] mColorViews; @SuppressWarnings("unused") public void setColorValue(int colorValue) { diff --git a/tests/UiBench/src/com/android/test/uibench/InvalidateTreeActivity.java b/tests/UiBench/src/com/android/test/uibench/InvalidateTreeActivity.java new file mode 100644 index 000000000000..b800c26bfc60 --- /dev/null +++ b/tests/UiBench/src/com/android/test/uibench/InvalidateTreeActivity.java @@ -0,0 +1,79 @@ +/* + * Copyright (C) 2016 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.test.uibench; + +import android.animation.ObjectAnimator; +import android.animation.ValueAnimator; +import android.graphics.Color; +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.view.ViewGroup; +import android.widget.LinearLayout; + +import java.util.ArrayList; + +/** + * Tests invalidation/record performance by invalidating a large number of easily rendered + * nested views. + */ +public class InvalidateTreeActivity extends AppCompatActivity { + private final ArrayList<LinearLayout> mLayouts = new ArrayList<>(); + + private int mColorToggle = 0; + + private void createQuadTree(LinearLayout parent, int remainingDepth) { + mLayouts.add(parent); + if (remainingDepth <= 0) { + mColorToggle = (mColorToggle + 1) % 4; + parent.setBackgroundColor((mColorToggle < 2) ? Color.RED : Color.BLUE); + return; + } + + boolean vertical = remainingDepth % 2 == 0; + parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL); + + for (int i = 0; i < 2; i++) { + LinearLayout child = new LinearLayout(this); + // vertical: match parent in x axis, horizontal: y axis. + parent.addView(child, new LinearLayout.LayoutParams( + (vertical ? ViewGroup.LayoutParams.MATCH_PARENT : 0), + (vertical ? 0 : ViewGroup.LayoutParams.MATCH_PARENT), + 1.0f)); + + createQuadTree(child, remainingDepth - 1); + } + } + + @SuppressWarnings("unused") + public void setIgnoredValue(int ignoredValue) { + for (int i = 0; i < mLayouts.size(); i++) { + mLayouts.get(i).invalidate(); + } + } + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + LinearLayout root = new LinearLayout(this); + createQuadTree(root, 8); + setContentView(root); + + ObjectAnimator animator = ObjectAnimator.ofInt(this, "ignoredValue", 0, 1000); + animator.setRepeatMode(ValueAnimator.REVERSE); + animator.setRepeatCount(ValueAnimator.INFINITE); + animator.start(); + } +} diff --git a/tests/UiBench/src/com/android/test/uibench/MainActivity.java b/tests/UiBench/src/com/android/test/uibench/MainActivity.java index 2111274a93c0..79837b6ea250 100644 --- a/tests/UiBench/src/com/android/test/uibench/MainActivity.java +++ b/tests/UiBench/src/com/android/test/uibench/MainActivity.java @@ -38,6 +38,23 @@ public class MainActivity extends AppCompatActivity { private static final String EXTRA_PATH = "activity_path"; private static final String CATEGORY_HWUI_TEST = "com.android.test.uibench.TEST"; + public static class TestListFragment extends ListFragment { + @Override + @SuppressWarnings("unchecked") + public void onListItemClick(ListView l, View v, int position, long id) { + Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position); + + Intent intent = (Intent) map.get("intent"); + startActivity(intent); + } + + @Override + public void onViewCreated(View view, Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); + getListView().setTextFilterEnabled(true); + } + } + @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); @@ -54,22 +71,7 @@ public class MainActivity extends AppCompatActivity { FragmentManager fm = getSupportFragmentManager(); if (fm.findFragmentById(android.R.id.content) == null) { - ListFragment listFragment = new ListFragment() { - @Override - @SuppressWarnings("unchecked") - public void onListItemClick(ListView l, View v, int position, long id) { - Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position); - - Intent intent = (Intent) map.get("intent"); - startActivity(intent); - } - - @Override - public void onViewCreated(View view, Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - getListView().setTextFilterEnabled(true); - } - }; + ListFragment listFragment = new TestListFragment(); listFragment.setListAdapter(new SimpleAdapter(this, getData(path), android.R.layout.simple_list_item_1, new String[] { "title" }, new int[] { android.R.id.text1 })); diff --git a/tests/UiBench/src/com/android/test/uibench/NavigationDrawerActivity.java b/tests/UiBench/src/com/android/test/uibench/NavigationDrawerActivity.java new file mode 100644 index 000000000000..1d68767b2db2 --- /dev/null +++ b/tests/UiBench/src/com/android/test/uibench/NavigationDrawerActivity.java @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2016 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.test.uibench; + +import android.os.Bundle; +import android.support.design.widget.NavigationView; +import android.support.v4.view.GravityCompat; +import android.support.v4.widget.DrawerLayout; +import android.support.v7.app.ActionBarDrawerToggle; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.MenuItem; + +public class NavigationDrawerActivity extends AppCompatActivity + implements NavigationView.OnNavigationItemSelectedListener { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_navigation_drawer); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( + this, drawer, toolbar, R.string.navigation_drawer_open, + R.string.navigation_drawer_close); + drawer.setDrawerListener(toggle); + toggle.syncState(); + + NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view); + navigationView.setNavigationItemSelectedListener(this); + } + + @Override + public boolean onNavigationItemSelected(MenuItem item) { + DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); + drawer.closeDrawer(GravityCompat.START); + return true; + } +} diff --git a/tests/UiBench/src/com/android/test/uibench/ShadowGridActivity.java b/tests/UiBench/src/com/android/test/uibench/ShadowGridActivity.java index d32f0716fe98..88847eed17fa 100644 --- a/tests/UiBench/src/com/android/test/uibench/ShadowGridActivity.java +++ b/tests/UiBench/src/com/android/test/uibench/ShadowGridActivity.java @@ -23,19 +23,22 @@ import android.view.View; import android.widget.ArrayAdapter; public class ShadowGridActivity extends AppCompatActivity { + public static class NoDividerListFragment extends ListFragment { + @Override + public void onViewCreated(View view, Bundle savedInstanceState) { + super.onViewCreated(view, savedInstanceState); + getListView().setDivider(null); + } + }; + + @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FragmentManager fm = getSupportFragmentManager(); if (fm.findFragmentById(android.R.id.content) == null) { - ListFragment listFragment = new ListFragment() { - @Override - public void onViewCreated(View view, Bundle savedInstanceState) { - super.onViewCreated(view, savedInstanceState); - getListView().setDivider(null); - } - }; + ListFragment listFragment = new NoDividerListFragment(); listFragment.setListAdapter(new ArrayAdapter<>(this, R.layout.card_row, R.id.card_text, TextUtils.buildSimpleStringList())); diff --git a/tests/VectorDrawableTest/res/anim/ic_rotate_2_portrait_v2_animation_arrows_1.xml b/tests/VectorDrawableTest/res/anim/ic_rotate_2_portrait_v2_animation_arrows_1.xml index 496e3ed819b2..89b0f7bd5425 100644 --- a/tests/VectorDrawableTest/res/anim/ic_rotate_2_portrait_v2_animation_arrows_1.xml +++ b/tests/VectorDrawableTest/res/anim/ic_rotate_2_portrait_v2_animation_arrows_1.xml @@ -19,7 +19,6 @@ android:propertyXName="scaleX" android:propertyYName="scaleY" android:pathData="M 1 1 l -0.1 -0.1 " - android:valueType="pathType" android:interpolator="@interpolator/ic_rotate_2_portrait_v2_arrows_1_scalex_interpolator" /> <objectAnimator android:duration="617" diff --git a/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/EnrollmentUtil.java b/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/EnrollmentUtil.java index 9e544a520d55..7927ac4cb895 100644 --- a/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/EnrollmentUtil.java +++ b/tests/VoiceEnrollment/src/com/android/test/voiceenrollment/EnrollmentUtil.java @@ -139,7 +139,6 @@ public class EnrollmentUtil { * @param keyphraseId The keyphrase ID to look-up the sound model for. * @return {@code true} if the call succeeds, {@code false} otherwise. */ - @Nullable public boolean deleteSoundModel(int keyphraseId, String bcp47Locale) { if (keyphraseId <= 0) { Log.e(TAG, "Keyphrase must have a valid ID"); |