mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-31 15:12:25 +00:00 
			
		
		
		
	Add ApplaunchInterface class
Inorder to support application launch workload, a new interface is created which has methods that need to be implemented by all workloads that support application launch time instrumentation.
This commit is contained in:
		
							
								
								
									
										54
									
								
								wlauto/external/uiauto/src/com/arm/wlauto/uiauto/ApplaunchInterface.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										54
									
								
								wlauto/external/uiauto/src/com/arm/wlauto/uiauto/ApplaunchInterface.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,54 @@ | ||||
|  | ||||
| /*    Copyright 2013-2016 ARM Limited | ||||
|  * | ||||
|  * 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.arm.wlauto.uiauto; | ||||
|  | ||||
| import android.os.Bundle; | ||||
| import android.util.Log; | ||||
|  | ||||
| // Import the uiautomator libraries | ||||
| import com.android.uiautomator.core.UiObject; | ||||
|  | ||||
| /** | ||||
|  * ApplaunchInterface.java | ||||
|  * Interface used for enabling uxperfapplaunch workload. | ||||
|  * This interface gets implemented by all workloads that support application launch | ||||
|  * instrumentation. | ||||
|  */ | ||||
|  | ||||
| public interface ApplaunchInterface { | ||||
|  | ||||
|     /** | ||||
|      * Sets the launchEndObject of a workload, which is a UiObject that marks | ||||
|      * the end of the application launch. | ||||
|      */ | ||||
|     public UiObject getLaunchEndObject(); | ||||
|  | ||||
|     /** | ||||
|      * Runs the Uiautomation methods for clearing the initial run | ||||
|      * dialogues on the first time installation of an application package. | ||||
|      */ | ||||
|     public void runApplicationInitialization() throws Exception; | ||||
|  | ||||
|     /** | ||||
|      * Provides the application launch command of the application which is | ||||
|      * constructed as a string from the workload. | ||||
|      */ | ||||
|     public String getLaunchCommand(); | ||||
|  | ||||
|     /** Passes the workload parameters. */ | ||||
|     public void setWorkloadParameters(Bundle parameters); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user