Skip to content

Commit

Permalink
Add Apache license
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianxiao Gu committed Nov 25, 2020
1 parent ee328e0 commit fb19ce2
Show file tree
Hide file tree
Showing 110 changed files with 1,638 additions and 2 deletions.
16 changes: 16 additions & 0 deletions src/com/android/commands/monkey/ApeAPIAdapter.java
@@ -1,3 +1,19 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey;

import java.lang.reflect.InvocationTargetException;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ApeRRFormatter.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey;

import java.io.BufferedReader;
Expand Down
4 changes: 2 additions & 2 deletions src/com/android/commands/monkey/MonkeySourceApe.java
@@ -1,11 +1,11 @@
/*
* Copyright (C) 2008 The Android Open Source Project
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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
* 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,
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/ActionFilter.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.model.ModelAction;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/Agent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.model.Action;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/AndroidDevice.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import java.io.BufferedReader;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/BadStateException.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

public class BadStateException extends RuntimeException {
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/BaseActionFilter.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.model.ModelAction;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/ImageWriterQueue.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import java.io.File;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/NoValidActionException.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

public class NoValidActionException extends RuntimeException {
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/NodeVisitor.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.tree.GUITreeNode;
Expand Down
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.model.ModelAction;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/StopTestingException.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

public class StopTestingException extends RuntimeException {
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/Subsequence.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import java.util.Arrays;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/SubsequenceFilter.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

import com.android.commands.monkey.ape.model.StateTransition;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/TrivialStateException.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape;

public class TrivialStateException extends RuntimeException {
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/agent/ApeAgent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape.agent;

import static com.android.commands.monkey.ape.utils.Config.checkRestart;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/agent/RandomAgent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape.agent;

import com.android.commands.monkey.MonkeySourceApe;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/agent/ReplayAgent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape.agent;

import java.util.List;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/agent/SataAgent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape.agent;

import static com.android.commands.monkey.ape.utils.Config.defaultEpsilon;
Expand Down
15 changes: 15 additions & 0 deletions src/com/android/commands/monkey/ape/agent/StatefulAgent.java
@@ -1,3 +1,18 @@
/*
* Copyright 2020 Advanced Software Technologies Lab at ETH Zurich, Switzerland
*
* 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.commands.monkey.ape.agent;

import static com.android.commands.monkey.ape.utils.Config.activityStableRestartThreshold;
Expand Down

0 comments on commit fb19ce2

Please sign in to comment.