1 /*------------------------------------------------------------------------- 2 * drawElements Quality Program Tester Core 3 * ---------------------------------------- 4 * 5 * Copyright 2014 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 * 19 *//*! 20 * \file 21 * \brief ExecServer Activity 22 * 23 * Actual execserver is run in service, but this activity serves 24 * as starter for the service. 25 *//*--------------------------------------------------------------------*/ 26 27 package com.drawelements.deqp.execserver; 28 29 import android.app.Activity; 30 import android.content.Intent; 31 import android.widget.TextView; 32 import android.os.Bundle; 33 34 import com.drawelements.deqp.testercore.Log; 35 import com.drawelements.deqp.R; 36 37 public class ExecServerActivity extends Activity { 38 39 private TextView m_statusText; 40 41 @Override onCreate(Bundle savedInstance)42 protected void onCreate (Bundle savedInstance) { 43 super.onCreate(savedInstance); 44 setContentView(R.layout.exec_server); 45 46 m_statusText = (TextView)findViewById(R.id.status_text); 47 } 48 49 @Override onStart()50 protected void onStart () { 51 super.onStart(); 52 // \todo [2015-10-06 pyry] Connect to service, check status, offer option for killing it 53 m_statusText.setText("dEQP ExecServer is running"); 54 } 55 56 @Override onStop()57 protected void onStop () { 58 super.onStop(); 59 } 60 61 @Override onPause()62 protected void onPause () { 63 super.onPause(); 64 } 65 66 @Override onResume()67 protected void onResume () { 68 super.onResume(); 69 } 70 71 @Override onDestroy()72 protected void onDestroy() { 73 super.onDestroy(); 74 } 75 } 76