Merge "profman: inclusive language updates"
This commit is contained in:
@@ -13,6 +13,6 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
filegroup {
|
filegroup {
|
||||||
name: "preloaded-classes-blacklist",
|
name: "preloaded-classes-denylist",
|
||||||
srcs: ["preloaded-classes-blacklist"],
|
srcs: ["preloaded-classes-denylist"],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
if [ "$#" -lt 2 ]; then
|
if [ "$#" -lt 2 ]; then
|
||||||
echo "Usage $0 <input classes file> <blacklist file> [extra classes files]"
|
echo "Usage $0 <input classes file> <denylist file> [extra classes files]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -31,9 +31,9 @@ echo "# Preloaded-classes filter file for phones.
|
|||||||
#"
|
#"
|
||||||
|
|
||||||
input=$1
|
input=$1
|
||||||
blacklist=$2
|
denylist=$2
|
||||||
shift 2
|
shift 2
|
||||||
extra_classes_files=("$@")
|
extra_classes_files=("$@")
|
||||||
|
|
||||||
# Disable locale to enable lexicographical sorting
|
# Disable locale to enable lexicographical sorting
|
||||||
LC_ALL=C sort "$input" "${extra_classes_files[@]}" | uniq | grep -f "$blacklist" -v -F -x | grep -v "\$NoPreloadHolder"
|
LC_ALL=C sort "$input" "${extra_classes_files[@]}" | uniq | grep -f "$denylist" -v -F -x | grep -v "\$NoPreloadHolder"
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
java_test_host {
|
java_test_host {
|
||||||
name: "PreloadCheck",
|
name: "PreloadCheck",
|
||||||
srcs: ["src/**/*.java"],
|
srcs: ["src/**/*.java"],
|
||||||
java_resources: [":preloaded-classes-blacklist"],
|
java_resources: [":preloaded-classes-denylist"],
|
||||||
libs: ["tradefed"],
|
libs: ["tradefed"],
|
||||||
test_suites: ["general-tests"],
|
test_suites: ["general-tests"],
|
||||||
required: ["preload-check-device"],
|
required: ["preload-check-device"],
|
||||||
|
|||||||
@@ -69,13 +69,13 @@ public class PreloadCheck implements IDeviceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the classes mentioned in the embedded preloaded-classes blacklist.
|
* Test the classes mentioned in the embedded preloaded-classes denylist.
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void testBlackList() throws Exception {
|
public void testDenyList() throws Exception {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass()
|
try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass()
|
||||||
.getResourceAsStream("/preloaded-classes-blacklist")))) {
|
.getResourceAsStream("/preloaded-classes-denylist")))) {
|
||||||
String s;
|
String s;
|
||||||
while ((s = br.readLine()) != null) {
|
while ((s = br.readLine()) != null) {
|
||||||
s = s.trim();
|
s = s.trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user