Lines Matching defs:workSource
94 import android.os.WorkSource;
796 final WorkSource mWorkSource; // WorkSource for battery blame, or null to assign to caller.
810 String packageName, WorkSource workSource, boolean hideFromAppOps) {
820 if (workSource != null && workSource.size() <= 0) {
821 workSource = null;
823 mWorkSource = workSource;
830 if (workSource == null) {
831 workSource = new WorkSource(mIdentity.mUid, mIdentity.mPackageName);
833 mWakeLock.setWorkSource(workSource);
1491 * Throw SecurityException if WorkSource use is not allowed (i.e. can't blame other packages
1724 WorkSource worksource = new WorkSource();
1786 // Can only assign blame if the WorkSource contains names.
1787 worksource.add(record.mReceiver.mWorkSource);
1790 worksource.add(
1801 p.setRequest(providerRequest, worksource);
1914 String packageName, WorkSource workSource, boolean hideFromAppOps) {
1918 receiver = new Receiver(listener, null, pid, uid, packageName, workSource,
1932 WorkSource workSource, boolean hideFromAppOps) {
1935 receiver = new Receiver(null, intent, pid, uid, packageName, workSource,
1998 int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) {
2005 return getReceiverLocked(intent, pid, uid, packageName, workSource, hideFromAppOps);
2007 return getReceiverLocked(listener, pid, uid, packageName, workSource, hideFromAppOps);
2019 WorkSource workSource = request.getWorkSource();
2020 if (workSource != null && workSource.size() > 0) {
2040 packageName, workSource, hideFromAppOps);
2096 WorkSource workSource = null;
2099 packageName, workSource, hideFromAppOps);