diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:00:10 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:00:10 +0000 |
commit | 3e2677914d2ef57dd57c58b27137cdb6e154618a (patch) | |
tree | 6ba1c7e799fa519cc5305c8475a3e8a15a50ccc4 | |
parent | dcccdae74a96f07fede833a9e7e003a973016bb8 (diff) | |
parent | 61f55349a0d486a13f934fff77cac5f4421e6964 (diff) | |
download | apache-harmony-android12-mainline-tzdata2-release.tar.gz |
Snap for 8426163 from 61f55349a0d486a13f934fff77cac5f4421e6964 to mainline-tzdata2-releaseandroid-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100
Change-Id: Id5be3a530d6b0ea31bb5f131919afd9468e0eeb5
17 files changed, 46 insertions, 67 deletions
@@ -14,26 +14,11 @@ package { default_visibility: ["//visibility:private"], - default_applicable_licenses: ["external_apache-harmony_license"], -} - -// Added automatically by a large-scale-change -// See: http://go/android-license-faq -license { - name: "external_apache-harmony_license", - visibility: [":__subpackages__"], - license_kinds: [ - "SPDX-license-identifier-Apache-2.0", - ], - license_text: [ - "NOTICE", - ], } java_test { name: "apache-harmony-tests", visibility: [ - "//art/build/sdk", "//cts/tests/libcore/luni", ], hostdex: true, diff --git a/METADATA b/METADATA deleted file mode 100644 index d97975c..0000000 --- a/METADATA +++ /dev/null @@ -1,3 +0,0 @@ -third_party { - license_type: NOTICE -} @@ -2,7 +2,9 @@ allight@google.com oth@google.com ngeoffray@google.com +shertz@google.com # For build / style / minor test fixes: include platform/libcore:/OWNERS -calin@google.com +agampe@google.com +sehr@google.com diff --git a/jdwp/Android.bp b/jdwp/Android.bp index 83e3d28..b1af1b5 100644 --- a/jdwp/Android.bp +++ b/jdwp/Android.bp @@ -1,27 +1,3 @@ -package { - default_applicable_licenses: ["external_apache-harmony_jdwp_license"], -} - -// Added automatically by a large-scale-change -// -// large-scale-change included anything that looked like it might be a license -// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc. -// -// Please consider removing redundant or irrelevant files from 'license_text:'. -// See: http://go/android-license-faq -license { - name: "external_apache-harmony_jdwp_license", - visibility: [":__subpackages__"], - license_kinds: [ - "SPDX-license-identifier-Apache-2.0", - ], - license_text: [ - "COPYRIGHT.txt", - "LICENSE.txt", - "NOTICE.txt", - ], -} - java_genrule { name: "SourceDebugExtensionMockClass_gen", host_supported: true, @@ -34,7 +10,6 @@ java_genrule { java_test { name: "apache-harmony-jdwp-tests", visibility: [ - "//art/build/sdk", "//cts/tests/jdwp", ], hostdex: true, diff --git a/jdwp/AndroidTest.xml b/jdwp/AndroidTest.xml new file mode 100644 index 0000000..faf3b33 --- /dev/null +++ b/jdwp/AndroidTest.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<configuration description="Base config for JDWP testing in CTS"> + <include name="common-config" /> + <!-- Removes temporary dalvik-cache directory created by JDWP tests --> + <option name="run-command:teardown-command" value="rm -rf /data/local/tmp/dalvik-cache" /> +</configuration> diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DDM/DDMDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DDM/DDMDebuggee.java index 543e5be..0fa81e8 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DDM/DDMDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/DDM/DDMDebuggee.java @@ -56,10 +56,10 @@ public class DDMDebuggee extends SyncDebuggee { public int disconnectCount = 0; @Override - public void onConnected() { connectCount++; } + public void connected() { connectCount++; } @Override - public void onDisconnected() { disconnectCount++; } + public void disconnected() { disconnectCount++; } @Override public Chunk handleChunk(Chunk request) { diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedEvents003Test.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedEvents003Test.java index 5991a94..3671af3 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedEvents003Test.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedEvents003Test.java @@ -79,8 +79,8 @@ public class CombinedEvents003Test extends CombinedEventsTestCase { long runMethodID = debuggeeWrapper.vmMirror.getMethodID(debuggeeClassID, "run"); logWriter.println("=> runMethodID = " + runMethodID); - long fakeMethodID = debuggeeWrapper.vmMirror.getMethodID(debuggeeClassID, "fakeMethod"); - logWriter.println("=> fakeMethodID = " + fakeMethodID); + long dummyMethodID = debuggeeWrapper.vmMirror.getMethodID(debuggeeClassID, "dummyMethod"); + logWriter.println("=> dummyMethodID = " + dummyMethodID); logWriter.println(""); logWriter.println("=> Info for tested method '" + methodForEvents + "':"); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedExceptionEventsDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedExceptionEventsDebuggee.java index ecfe84c..de1825a 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedExceptionEventsDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/CombinedExceptionEventsDebuggee.java @@ -43,7 +43,7 @@ public class CombinedExceptionEventsDebuggee extends SyncDebuggee { logWriter.println("-> CombinedExceptionEventsDebuggee: Starting..."); // Preload exception classes - new SubDebuggeeException("fake"); + new SubDebuggeeException("dummy"); synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionCaughtDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionCaughtDebuggee.java index 14edd22..57e27b5 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionCaughtDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionCaughtDebuggee.java @@ -48,7 +48,7 @@ public class ExceptionCaughtDebuggee extends SyncDebuggee { logWriter.println("-- ExceptionCatchDebuggee: STARTED"); // Cause loading of DebuggeeException so it is visible from the test. - new DebuggeeException("fake exception"); + new DebuggeeException("dummy exception"); synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionUncaughtDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionUncaughtDebuggee.java index d7f6de2..21152bc 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionUncaughtDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionUncaughtDebuggee.java @@ -44,7 +44,7 @@ public class ExceptionUncaughtDebuggee extends SyncDebuggee { logWriter.println("-- ExceptionUncaughtDebuggee: STARTED"); // Cause loading of DebuggeeException so it is visible from the test. - new DebuggeeException("fake exception"); + new DebuggeeException("dummy exception"); synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionWithLocationDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionWithLocationDebuggee.java index 5c773c2..2816c4f 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionWithLocationDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/Events/ExceptionWithLocationDebuggee.java @@ -51,7 +51,7 @@ public class ExceptionWithLocationDebuggee extends SyncDebuggee { logWriter.println("ExceptionWithLocationDebuggee: STARTED"); // load and prepare DebuggeeException class @SuppressWarnings("unused") - DebuggeeException ex = new DebuggeeException("fake exception"); + DebuggeeException ex = new DebuggeeException("dummy exception"); synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ExceptionDebuggee.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ExceptionDebuggee.java index a2fb675..a1e18a1 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ExceptionDebuggee.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/MultiSession/ExceptionDebuggee.java @@ -39,27 +39,27 @@ public class ExceptionDebuggee extends SyncDebuggee { public static void main(String[] args) { runDebuggee(ExceptionDebuggee.class); } - + @Override public void run(){ - + logWriter.println("--> ExceptionDebuggee: STARTED"); // load and prepare DebuggeeException class - DebuggeeException ex = new DebuggeeException("fake exception"); - + DebuggeeException ex = new DebuggeeException("dummy exception"); + synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); - + logWriter.println("--> ExceptionDebuggee: Wait for SGNL_CONTINUE..."); synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE); logWriter.println("--> ExceptionDebuggee: SGNL_CONTINUE has been received!"); - + try { // throw caught exception throw new DebuggeeException("Caught debuggee exception"); } catch (DebuggeeException e) { logWriter.println("-- ExceptionDebuggee: Exception: \""+e.getMessage()+"\" was thrown"); } - + synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY); logWriter.println("DUMP{" + ex + "}"); diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValues002Test.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValues002Test.java index e4fcf01..641bba9 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValues002Test.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValues002Test.java @@ -131,7 +131,7 @@ public class GetValues002Test extends JDWPSyncTestCase { assertEquals("Invalid number of values,", checkedFieldsNumber - 1, returnedValuesNumber); byte expectedFieldTags[] = { - 0, // placeholder + 0, // dummy JDWPConstants.Tag.LONG_TAG, JDWPConstants.Tag.INT_TAG, JDWPConstants.Tag.STRING_TAG, diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValuesTest.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValuesTest.java index 5339ec2..7d86429 100644 --- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValuesTest.java +++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ObjectReference/GetValuesTest.java @@ -130,7 +130,7 @@ public class GetValuesTest extends JDWPSyncTestCase { assertEquals("Invalid number of values,", checkedFieldsNumber - 1, returnedValuesNumber); byte expectedFieldTags[] = { - 0, // fake + 0, // dummy JDWPConstants.Tag.INT_TAG, JDWPConstants.Tag.LONG_TAG, JDWPConstants.Tag.OBJECT_TAG, diff --git a/support/src/test/java/tests/support/Support_FakePKCS12Keystore.java b/support/src/test/java/tests/support/Support_DummyPKCS12Keystore.java index 7a13af4..9dedff3 100644 --- a/support/src/test/java/tests/support/Support_FakePKCS12Keystore.java +++ b/support/src/test/java/tests/support/Support_DummyPKCS12Keystore.java @@ -33,9 +33,9 @@ import java.util.Enumeration; /** * Empty implementation used to enable unit tests to run. */ -public class Support_FakePKCS12Keystore extends KeyStoreSpi { +public class Support_DummyPKCS12Keystore extends KeyStoreSpi { - public Support_FakePKCS12Keystore() { + public Support_DummyPKCS12Keystore() { super(); } diff --git a/support/src/test/java/tests/support/Support_ProviderJCE.java b/support/src/test/java/tests/support/Support_ProviderJCE.java index 7949e51..6687a33 100644 --- a/support/src/test/java/tests/support/Support_ProviderJCE.java +++ b/support/src/test/java/tests/support/Support_ProviderJCE.java @@ -22,7 +22,7 @@ import java.security.PrivilegedAction; import java.security.Provider; /** - * This class implements a fake security provider + * This class implements a dummy security provider */ public class Support_ProviderJCE extends Provider { private static final long serialVersionUID = 1L; @@ -37,7 +37,7 @@ public class Support_ProviderJCE extends Provider { + " DSA key, parameter generation and signing; SHA-1 digest"; /** - * Constructs a new instance of the fake provider. + * Constructs a new instance of the dummy provider. */ public Support_ProviderJCE() { super(NAME, VERSION, INFO); diff --git a/support/src/test/java/tests/support/Support_ProviderRSA.java b/support/src/test/java/tests/support/Support_ProviderRSA.java index 26fa6f2..4db0043 100644 --- a/support/src/test/java/tests/support/Support_ProviderRSA.java +++ b/support/src/test/java/tests/support/Support_ProviderRSA.java @@ -22,7 +22,7 @@ import java.security.PrivilegedAction; import java.security.Provider; /** - * This class implements a fake provider. + * This class implements a dummy provider. */ public class Support_ProviderRSA extends Provider { private static final long serialVersionUID = 1L; @@ -37,7 +37,7 @@ public class Support_ProviderRSA extends Provider { + " DSA key, parameter generation and signing; SHA-1 digest"; /** - * Constructs a new instance of the fake provider. + * Constructs a new instance of the dummy provider. */ public Support_ProviderRSA() { super(NAME, VERSION, INFO); |