Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a1c0e85 authored by Chris Craik's avatar Chris Craik
Browse files

Initial commit of UiBench

Change-Id: Ia2b5bcb70e0d078db4e9d5fb9361bb78c1158141
parent e9fdf708
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
.gradle
.idea
*.iml
build
local.properties
+23 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

# omit gradle 'build' dir
LOCAL_SRC_FILES := $(call all-java-files-under,src)

# use appcompat/support lib from the tree, so improvements/
# regressions are reflected in test data
LOCAL_RESOURCE_DIR := \
    frameworks/support/v7/appcompat/res

LOCAL_AAPT_FLAGS := \
    --extra-packages android.support.v7.appcompat

LOCAL_STATIC_JAVA_LIBRARIES := \
    android-support-v4 \
    android-support-v7-appcompat

LOCAL_PACKAGE_NAME := UiBench

include $(BUILD_PACKAGE)
+45 −0
Original line number Diff line number Diff line
<!--
  ~ 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
  -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.android.test.uibench">

    <application
        android:allowBackup="false"
        android:theme="@style/Theme.AppCompat.Light.DarkActionBar">
        <uses-library android:name="android.test.runner" />

        <!-- Root navigation activity -->
        <activity
            android:name=".MainActivity"
            android:label="UiBench">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Tests -->
        <activity
            android:name=".TrivialListActivity"
            android:label="Microbenchmarks/Trivial ListActivity" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="com.android.test.uibench.TEST" />
            </intent-filter>
        </activity>
    </application>
</manifest>
+37 −0
Original line number Diff line number Diff line
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

    }
}

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "22.0.0"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            res.srcDirs = ['res']
        }
    }
}

dependencies {
    // Dependencies enumerated specifically for platform-independent / reproducible builds.
    compile 'com.android.support:support-v4:23.0.0'
    compile 'com.android.support:appcompat-v7:23.0.0'
}
+48.7 KiB

File added.

No diff preview for this file type.

Loading