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

Commit 0809c0e4 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

CameraBrowser: New test app for the MTP content provider.



Change-Id: I8423d728b13ed8ac87bd2792eefddce3287598bb
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent f724eed5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_SRC_FILES := $(call all-subdir-java-files)

LOCAL_PACKAGE_NAME := CameraBrowser

include $(BUILD_PACKAGE)
+18 −0
Original line number Diff line number Diff line
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.camerabrowser">

    <application android:label="@string/app_label">
        <activity android:name="CameraBrowser" android:label="Camera Browser">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name="StorageBrowser" />
        <activity android:name="ObjectBrowser" />
        <activity android:name="ObjectViewer" />
    </application>


</manifest>
+144 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2008, 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.
*/
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/object_info"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    <TableRow>
        <TextView android:id="@+id/name_label"
            android:text="@string/name_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/name"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/size_label"
            android:text="@string/size_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/size"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/thumb_width_label"
            android:text="@string/thumb_width_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/thumb_width"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/thumb_height_label"
            android:text="@string/thumb_height_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/thumb_height"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/thumb_size_label"
            android:text="@string/thumb_size_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/thumb_size"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/width_label"
            android:text="@string/width_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/width"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/height_label"
            android:text="@string/height_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/height"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/depth_label"
            android:text="@string/depth_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/depth"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/sequence_label"
            android:text="@string/sequence_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/sequence"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/created_label"
            android:text="@string/created_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/created"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/modified_label"
            android:text="@string/modified_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/modified"
            style="@style/info_value" />
    </TableRow>
    <TableRow>
        <TextView android:id="@+id/keywords_label"
            android:text="@string/keywords_label"
            android:layout_gravity="right"
            android:layout_marginRight="8dip"
            style="@style/info_label" />

        <TextView android:id="@+id/keywords"
            style="@style/info_value" />
    </TableRow>
</TableLayout>
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 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.
-->

<resources>
    <string name="app_label">Camera Browser</string>
    <string name="name_label">Name: </string>
    <string name="size_label">Size: </string>
    <string name="thumb_width_label">Thumb Width: </string>
    <string name="thumb_height_label">Thumb Height: </string>
    <string name="thumb_size_label">Thumb Size: </string>
    <string name="width_label">Width: </string>
    <string name="height_label">Height: </string>
    <string name="depth_label">Depth: </string>
    <string name="sequence_label">Sequence: </string>
    <string name="created_label">Created: </string>
    <string name="modified_label">Modified: </string>
    <string name="keywords_label">Keywords: </string>
</resources>
+34 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 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.
-->

<resources>
    <style name="info_label">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textSize">14sp</item>
        <item name="android:textStyle">bold</item>
        <item name="android:paddingRight">4dip</item>
    </style>

    <style name="info_value">
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_width">wrap_content</item>
        <item name="android:textSize">14sp</item>
        <item name="android:textStyle">normal</item>
    </style>

</resources>
Loading