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

Commit 508a8a0a authored by Matthew Williams's avatar Matthew Williams Committed by Android (Google) Code Review
Browse files

Merge "Add test app for JobScheduler" into lmp-preview-dev

parents a3d81885 13b02412
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -466,16 +466,14 @@ public class TaskServiceContext extends ITaskCallback.Stub implements ServiceCon
            removeMessages(MSG_TIMEOUT);
            mWakeLock.release();
            mContext.unbindService(TaskServiceContext.this);
            mWakeLock = null;
            mCompletedListener.onTaskCompleted(mRunningTask, reschedule);

            mWakeLock = null;
            mRunningTask = null;
            mParams = null;
            mVerb = -1;
            mCancelled.set(false);

            service = null;

            mCompletedListener.onTaskCompleted(mRunningTask, reschedule);
            synchronized (mAvailableLock) {
                mAvailable = true;
            }
+15 −0
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := optional

LOCAL_SRC_FILES := $(call all-java-files-under, src)

LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res

LOCAL_PACKAGE_NAME := JobSchedulerTestApp

LOCAL_PROGUARD_ENABLED := disabled

include $(BUILD_PACKAGE)
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.demo.jobSchedulerApp" >

    <uses-sdk
        android:minSdkVersion="18"
        android:targetSdkVersion="18" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.android.demo.jobSchedulerApp.MainActivity"
            android:label="@string/app_name"
            android:windowSoftInputMode="stateHidden" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <service
            android:name=".service.TestJobService"
            android:exported="true"/>
    </application>

</manifest>
+5.34 KiB
Loading image diff...
+3.22 KiB
Loading image diff...
Loading