1/* 2 * Copyright (C) 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17syntax = "proto2"; 18 19package com.android.server.job; 20 21// This file is for JobScheduler enums inside the server directory. If you're 22// adding enums for app-side code, use the file in 23// frameworks/base/core/proto/android/app/job. 24option java_outer_classname = "JobServerProtoEnums"; 25option java_multiple_files = true; 26 27// Set of constraints that a job potentially needs satisfied before it can run. 28// Defined in 29// frameworks/base/services/core/java/com/android/server/job/controllers/JobStatus.java 30enum ConstraintEnum { 31 CONSTRAINT_UNKNOWN = 0; 32 CONSTRAINT_CHARGING = 1; 33 CONSTRAINT_BATTERY_NOT_LOW = 2; 34 CONSTRAINT_STORAGE_NOT_LOW = 3; 35 CONSTRAINT_TIMING_DELAY = 4; 36 CONSTRAINT_DEADLINE = 5; 37 CONSTRAINT_IDLE = 6; 38 CONSTRAINT_CONNECTIVITY = 7; 39 CONSTRAINT_CONTENT_TRIGGER = 8; 40 CONSTRAINT_DEVICE_NOT_DOZING = 9; 41 CONSTRAINT_WITHIN_QUOTA = 10; 42 CONSTRAINT_BACKGROUND_NOT_RESTRICTED = 11; 43 CONSTRAINT_WITHIN_EXPEDITED_JOB_QUOTA = 12; 44} 45