Home
last modified time | relevance | path

Searched refs:NETWORK_BYTES_UNKNOWN (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/apex/jobscheduler/framework/java/android/app/job/
DJobWorkItem.java19 import static android.app.job.JobInfo.NETWORK_BYTES_UNKNOWN;
72 this(intent, NETWORK_BYTES_UNKNOWN, NETWORK_BYTES_UNKNOWN); in JobWorkItem()
93 this(intent, downloadBytes, uploadBytes, NETWORK_BYTES_UNKNOWN); in JobWorkItem()
237 if (mNetworkDownloadBytes != NETWORK_BYTES_UNKNOWN) { in toString()
241 if (mNetworkUploadBytes != NETWORK_BYTES_UNKNOWN) { in toString()
245 if (mMinimumChunkBytes != NETWORK_BYTES_UNKNOWN) { in toString()
264 private long mNetworkDownloadBytes = NETWORK_BYTES_UNKNOWN;
265 private long mNetworkUploadBytes = NETWORK_BYTES_UNKNOWN;
266 private long mMinimumNetworkChunkBytes = NETWORK_BYTES_UNKNOWN;
336 if (downloadBytes != NETWORK_BYTES_UNKNOWN && downloadBytes < 0) { in setEstimatedNetworkBytes()
[all …]
DJobInfo.java173 public static final int NETWORK_BYTES_UNKNOWN = -1; field in JobInfo
1254 private long mNetworkDownloadBytes = NETWORK_BYTES_UNKNOWN;
1255 private long mNetworkUploadBytes = NETWORK_BYTES_UNKNOWN;
1256 private long mMinimumNetworkChunkBytes = NETWORK_BYTES_UNKNOWN;
1665 if (chunkSizeBytes != NETWORK_BYTES_UNKNOWN && chunkSizeBytes <= 0) { in setMinimumNetworkChunkBytes()
2264 if (networkUploadBytes != NETWORK_BYTES_UNKNOWN && networkUploadBytes < 0) { in enforceValidity()
2268 if (networkDownloadBytes != NETWORK_BYTES_UNKNOWN && networkDownloadBytes < 0) { in enforceValidity()
2274 if (networkUploadBytes == NETWORK_BYTES_UNKNOWN) { in enforceValidity()
2278 + (networkDownloadBytes == NETWORK_BYTES_UNKNOWN ? 0 : networkDownloadBytes); in enforceValidity()
2280 if (minimumNetworkChunkBytes != NETWORK_BYTES_UNKNOWN in enforceValidity()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DJobStatus.java524 private long mTotalNetworkDownloadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
525 private long mTotalNetworkUploadBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
526 private long mMinimumNetworkChunkBytes = JobInfo.NETWORK_BYTES_UNKNOWN;
1500 mTotalNetworkDownloadBytes = JobInfo.NETWORK_BYTES_UNKNOWN; in updateNetworkBytesLocked()
1505 mTotalNetworkUploadBytes = JobInfo.NETWORK_BYTES_UNKNOWN; in updateNetworkBytesLocked()
1514 if (downloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN && downloadBytes > 0) { in updateNetworkBytesLocked()
1518 if (mTotalNetworkDownloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in updateNetworkBytesLocked()
1525 if (uploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN && uploadBytes > 0) { in updateNetworkBytesLocked()
1529 if (mTotalNetworkUploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in updateNetworkBytesLocked()
1536 if (mMinimumNetworkChunkBytes == JobInfo.NETWORK_BYTES_UNKNOWN) { in updateNetworkBytesLocked()
[all …]
DConnectivityController.java706 if (minimumChunkBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in isInsane()
750 if (downloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in isInsane()
766 if (uploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in isInsane()
873 if (downloadBytes == JobInfo.NETWORK_BYTES_UNKNOWN in getEstimatedTransferTimeMs()
874 && uploadBytes == JobInfo.NETWORK_BYTES_UNKNOWN) { in getEstimatedTransferTimeMs()
899 if (transferBytes == JobInfo.NETWORK_BYTES_UNKNOWN || bandwidthKbps <= 0) { in calculateTransferTimeMs()
1047 + (estUploadBytes == JobInfo.NETWORK_BYTES_UNKNOWN ? 0 : estUploadBytes); in isRelaxedSatisfied()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobStore.java919 if (job.getEstimatedNetworkDownloadBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
923 if (job.getEstimatedNetworkUploadBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
927 if (job.getMinimumNetworkChunkBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
1047 if (item.getEstimatedNetworkDownloadBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
1051 if (item.getEstimatedNetworkUploadBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
1055 if (item.getMinimumNetworkChunkBytes() != JobInfo.NETWORK_BYTES_UNKNOWN) {
1595 "estimated-download-bytes", JobInfo.NETWORK_BYTES_UNKNOWN), in buildConstraintsFromXml()
1597 "estimated-upload-bytes", JobInfo.NETWORK_BYTES_UNKNOWN)) in buildConstraintsFromXml()
1601 JobInfo.NETWORK_BYTES_UNKNOWN)); in buildConstraintsFromXml()
1738 "estimated-download-bytes", JobInfo.NETWORK_BYTES_UNKNOWN), in readJobWorkItemFromXml()
[all …]
DJobServiceContext.java852 if (mEstimatedDownloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN in doUpdateEstimatedNetworkBytes()
853 && downloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in doUpdateEstimatedNetworkBytes()
866 if (mEstimatedUploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN in doUpdateEstimatedNetworkBytes()
867 && uploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in doUpdateEstimatedNetworkBytes()
899 if (mTransferredDownloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN in doUpdateTransferredNetworkBytes()
900 && downloadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in doUpdateTransferredNetworkBytes()
913 if (mTransferredUploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN in doUpdateTransferredNetworkBytes()
914 && uploadBytes != JobInfo.NETWORK_BYTES_UNKNOWN) { in doUpdateTransferredNetworkBytes()
DJobSchedulerService.java4880 if (jobWorkItem.getEstimatedNetworkDownloadBytes() != JobInfo.NETWORK_BYTES_UNKNOWN
4882 != JobInfo.NETWORK_BYTES_UNKNOWN
4884 != JobInfo.NETWORK_BYTES_UNKNOWN) {
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java722 JobInfo.NETWORK_BYTES_UNKNOWN, JobInfo.NETWORK_BYTES_UNKNOWN) in testEstimatedNetworkBytes()
736 .setMinimumNetworkChunkBytes(JobInfo.NETWORK_BYTES_UNKNOWN) in testMinimumNetworkChunkBytes()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java898 job.setEstimatedNetworkBytes(JobInfo.NETWORK_BYTES_UNKNOWN, DataUnit.MEBIBYTES.toBytes(1)); in testRelaxed()
900 job.setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), JobInfo.NETWORK_BYTES_UNKNOWN); in testRelaxed()
1589 ConnectivityController.calculateTransferTimeMs(JobInfo.NETWORK_BYTES_UNKNOWN, 512)); in testCalculateTransferTimeMs()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto985 // {@link JobInfo.NETWORK_BYTES_UNKNOWN} if any part of the job download is unknown.
989 // {@link JobInfo.NETWORK_BYTES_UNKNOWN} if any part of the job upload is unknown.
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/base/core/api/
Dcurrent.txt9010 field public static final int NETWORK_BYTES_UNKNOWN = -1; // 0xffffffff