/aosp14/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | WorkSourceTest.java | 149 WorkSource ws = new WorkSource(); in testWorkSourceParcelling() local 159 ws.writeToParcel(p, 0); in testWorkSourceParcelling() 164 assertEquals(unparcelled, ws); in testWorkSourceParcelling() 197 WorkSource ws = new WorkSource(); in testSet_nullWorkChain() local 198 ws.add(60); in testSet_nullWorkChain() 202 ws.set(null); in testSet_nullWorkChain() 213 ws.add(ws2); in testAdd_workChains() 223 ws.add(ws2); in testAdd_workChains() 229 ws.set(10); in testSet_noWorkChains() 230 assertEquals(1, ws.size()); in testSet_noWorkChains() [all …]
|
H A D | WorkSourceParcelTest.java | 89 WorkSource ws = WorkSource.CREATOR.createFromParcel(wsParcel); in unparcelWorkSourceFromNativeAndVerify() local 97 assertEquals(ws.size(), 0); in unparcelWorkSourceFromNativeAndVerify() 99 assertEquals(uids.length, ws.size()); in unparcelWorkSourceFromNativeAndVerify() 100 for (int i = 0; i < ws.size(); i++) { in unparcelWorkSourceFromNativeAndVerify() 101 assertEquals(ws.getUid(i), uids[i]); in unparcelWorkSourceFromNativeAndVerify() 106 assertEquals(ws.getPackageName(i), names[i]); in unparcelWorkSourceFromNativeAndVerify() 116 WorkSource ws = new WorkSource(); in parcelWorkSourceToNativeAndVerify() local 120 ws.add(uid); in parcelWorkSourceToNativeAndVerify() 125 ws.add(uids[i], names[i]); in parcelWorkSourceToNativeAndVerify() 131 ws.writeToParcel(wsParcel, 0 /* flags */); in parcelWorkSourceToNativeAndVerify()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | BatteryStatsManager.java | 269 public void reportWifiScanStartedFromSource(@NonNull WorkSource ws) { in reportWifiScanStartedFromSource() argument 271 mBatteryStats.noteWifiScanStartedFromSource(ws); in reportWifiScanStartedFromSource() 285 mBatteryStats.noteWifiScanStoppedFromSource(ws); in reportWifiScanStoppedFromSource() 315 mBatteryStats.noteWifiBatchedScanStoppedFromSource(ws); in reportWifiBatchedScanStoppedFromSource() 393 mBatteryStats.noteFullWifiLockAcquiredFromSource(ws); in reportFullWifiLockAcquiredFromSource() 407 mBatteryStats.noteFullWifiLockReleasedFromSource(ws); in reportFullWifiLockReleasedFromSource() 437 public void reportWifiMulticastEnabled(@NonNull WorkSource ws) { in reportWifiMulticastEnabled() argument 452 public void reportWifiMulticastDisabled(@NonNull WorkSource ws) { in reportWifiMulticastDisabled() argument 550 mBatteryStats.noteBleScanStarted(ws, isUnoptimized); in reportBleScanStarted() 565 mBatteryStats.noteBleScanStopped(ws, isUnoptimized); in reportBleScanStopped() [all …]
|
H A D | IPowerManager.aidl | 30 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument 43 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument 124 in WorkSource ws, String historyTag); in acquireWakeLockAsync() argument
|
H A D | PowerManager.java | 3830 public void setWorkSource(WorkSource ws) { in setWorkSource() argument 3832 if (ws != null && ws.isEmpty()) { in setWorkSource() 3833 ws = null; in setWorkSource() 3837 if (ws == null) { in setWorkSource() 3842 mWorkSource = new WorkSource(ws); in setWorkSource() 3844 changed = !mWorkSource.equals(ws); in setWorkSource() 3846 mWorkSource.set(ws); in setWorkSource()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | IBatteryStats.aidl | 169 void noteWifiRunning(in WorkSource ws); in noteWifiRunning() argument 173 void noteWifiStopped(in WorkSource ws); in noteWifiStopped() argument 193 void noteFullWifiLockAcquiredFromSource(in WorkSource ws); in noteFullWifiLockAcquiredFromSource() argument 195 void noteFullWifiLockReleasedFromSource(in WorkSource ws); in noteFullWifiLockReleasedFromSource() argument 197 void noteWifiScanStartedFromSource(in WorkSource ws); in noteWifiScanStartedFromSource() argument 199 void noteWifiScanStoppedFromSource(in WorkSource ws); in noteWifiScanStoppedFromSource() argument 201 void noteWifiBatchedScanStartedFromSource(in WorkSource ws, int csph); in noteWifiBatchedScanStartedFromSource() argument 203 void noteWifiBatchedScanStoppedFromSource(in WorkSource ws); in noteWifiBatchedScanStoppedFromSource() argument 223 void noteBleScanStarted(in WorkSource ws, boolean isUnoptimized); in noteBleScanStarted() argument 225 void noteBleScanStopped(in WorkSource ws, boolean isUnoptimized); in noteBleScanStopped() argument [all …]
|
/aosp14/frameworks/base/core/tests/coretests/jni/ |
H A D | NativeWorkSourceParcelTest.cpp | 59 WorkSource ws = WorkSource(uids, names); in nativeObtainWorkSourceParcel() local 64 status_t err = ws.writeToParcel(parcel) ?: parcel->writeInt32(parcelEndMarker); in nativeObtainWorkSourceParcel() 76 WorkSource ws = {}; in nativeUnparcelAndVerifyWorkSource() local 80 status_t err = ws.readFromParcel(parcel); in nativeUnparcelAndVerifyWorkSource() 104 if (ws.getUids().at(i) != static_cast<int32_t>(workSourceUids[i])) { in nativeUnparcelAndVerifyWorkSource() 107 ws.getUids().at(i), static_cast<int32_t>(workSourceUids[i])).c_str()); in nativeUnparcelAndVerifyWorkSource() 111 if (ws.getUids().size() != 0) { in nativeUnparcelAndVerifyWorkSource() 122 if (String16(rawString) != ws.getNames()->at(i)) { in nativeUnparcelAndVerifyWorkSource() 128 if (ws.getNames() != std::nullopt) { in nativeUnparcelAndVerifyWorkSource()
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
H A D | TimeController.java | 120 WorkSource ws = in maybeStartTrackingJobLocked() local 127 maybeUpdateDelayAlarmLocked(job.getEarliestRunTime(), ws); in maybeStartTrackingJobLocked() local 131 maybeUpdateDeadlineAlarmLocked(job.getLatestRunTimeElapsed(), ws); in maybeStartTrackingJobLocked() local 335 private void maybeUpdateDelayAlarmLocked(long delayExpiredElapsed, WorkSource ws) { in maybeUpdateDelayAlarmLocked() argument 337 setDelayExpiredAlarmLocked(delayExpiredElapsed, ws); in maybeUpdateDelayAlarmLocked() 343 setDeadlineExpiredAlarmLocked(deadlineExpiredElapsed, ws); in maybeUpdateDeadlineAlarmLocked() 352 private void setDelayExpiredAlarmLocked(long alarmTimeElapsedMillis, WorkSource ws) { in setDelayExpiredAlarmLocked() argument 363 mNextDelayExpiredListener, mNextDelayExpiredElapsedMillis, ws); in setDelayExpiredAlarmLocked() 378 mDeadlineExpiredListener, mNextJobExpiredElapsedMillis, ws); in setDeadlineExpiredAlarmLocked() 386 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked() argument [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | BatteryStatsService.java | 1161 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStartWakelockFromSource() 1182 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteChangeWakelockFromSource() 1203 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStopWakelockFromSource() 1919 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiRunning() 1962 final WorkSource localWs = ws != null ? new WorkSource(ws) : ws; in noteWifiStopped() 2125 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockAcquiredFromSource() 2143 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockReleasedFromSource() 2161 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStartedFromSource() 2178 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStoppedFromSource() 2195 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiBatchedScanStartedFromSource() [all …]
|
/aosp14/frameworks/base/tools/bit/ |
H A D | print.cpp | 137 struct winsize ws; in print_one_line() local 138 ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws); in print_one_line() 139 int size = ws.ws_col + 1; in print_one_line()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowSurfacePlacer.java | 162 final WindowState ws = mService.mForceRemoves.remove(0); in performSurfacePlacementLoop() local 163 Slog.i(TAG, "Force removing: " + ws); in performSurfacePlacementLoop() 164 ws.removeImmediately(); in performSurfacePlacementLoop()
|
H A D | DragState.java | 225 for (WindowState ws : mNotifiedWindows) { in closeLocked() 229 if (!mDragResult && (ws.mSession.mPid == mPid)) { in closeLocked() 231 x = ws.translateToWindowX(mCurrentX); in closeLocked() 232 y = ws.translateToWindowY(mCurrentY); in closeLocked() 243 ws.mClient.dispatchDragEvent(event); in closeLocked() 245 Slog.w(TAG_WM, "Unable to drag-end window " + ws); in closeLocked() 249 if (MY_PID != ws.mSession.mPid) { in closeLocked() 568 for (WindowState ws : mNotifiedWindows) { in isWindowNotified() 569 if (ws == newWin) { in isWindowNotified()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/ |
H A D | BatteryStatsBackgroundStatsTest.java | 204 WorkSource ws = new WorkSource(); in testAppBluetoothScan_workChain() local 205 ws.createWorkChain().addNode(UID, "foo"); in testAppBluetoothScan_workChain() 206 doTestAppBluetoothScanInternal(ws); in testAppBluetoothScan_workChain() 209 private void doTestAppBluetoothScanInternal(WorkSource ws) throws Exception { in doTestAppBluetoothScanInternal() argument 223 bi.noteBluetoothScanStartedFromSourceLocked(ws, false); in doTestAppBluetoothScanInternal() 235 bi.noteBluetoothScanStartedFromSourceLocked(ws, true); in doTestAppBluetoothScanInternal() 247 bi.noteBluetoothScanStoppedFromSourceLocked(ws, false); in doTestAppBluetoothScanInternal() 251 bi.noteBluetoothScanStoppedFromSourceLocked(ws, true); in doTestAppBluetoothScanInternal()
|
H A D | BatteryStatsImplTest.java | 568 final WorkSource ws = new WorkSource(10042); in testGetBluetoothBatteryStats() local 569 mBatteryStatsImpl.noteBluetoothScanStartedFromSourceLocked(ws, false, 1000, 1000); in testGetBluetoothBatteryStats() 570 mBatteryStatsImpl.noteBluetoothScanStoppedFromSourceLocked(ws, false, 5000, 5000); in testGetBluetoothBatteryStats() 571 mBatteryStatsImpl.noteBluetoothScanStartedFromSourceLocked(ws, true, 6000, 6000); in testGetBluetoothBatteryStats() 572 mBatteryStatsImpl.noteBluetoothScanStoppedFromSourceLocked(ws, true, 9000, 9000); in testGetBluetoothBatteryStats() 573 mBatteryStatsImpl.noteBluetoothScanResultsFromSourceLocked(ws, 42, 9000, 9000); in testGetBluetoothBatteryStats()
|
H A D | BatteryStatsNoteTest.java | 968 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource() local 969 ws.add(100); in testAlarmStartAndFinishLocked_workSource() 971 bi.noteAlarmStartLocked("foo", ws, UID); in testAlarmStartAndFinishLocked_workSource() 1032 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() local 1033 ws.add(100); in testNoteWakupAlarmLocked_workSource_uid() 1045 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() 1046 ws.add(100, "com.foo.baz_alternate"); in testNoteWakupAlarmLocked_workSource_uid() 1065 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain() local 1091 WorkSource ws = new WorkSource(); in testNoteGpsChanged() local 1092 ws.add(UID); in testNoteGpsChanged() [all …]
|
H A D | BluetoothPowerCalculatorTest.java | 63 final WorkSource ws = new WorkSource(APP_UID); in testTimerBasedModel() local 64 batteryStats.noteBluetoothScanStartedFromSourceLocked(ws, false, 0, 0); in testTimerBasedModel() 65 batteryStats.noteBluetoothScanStoppedFromSourceLocked(ws, false, 1000, 1000); in testTimerBasedModel()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | SignalTileView.java | 86 int ws = MeasureSpec.makeMeasureSpec(mIconFrame.getMeasuredHeight(), MeasureSpec.AT_MOST); in onMeasure() local 87 mIn.measure(ws, hs); in onMeasure() 88 mOut.measure(ws, hs); in onMeasure()
|
/aosp14/frameworks/base/opengl/java/android/opengl/ |
H A D | Visibility.java | 49 public static native int visibilityTest(float[] ws, int wsOffset, in visibilityTest() argument
|
/aosp14/frameworks/base/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 266 Worker ws = new Worker(); in run() local 267 ws.setSocket(s); in run() 268 activeThreads.addElement(ws); in run() 269 (new Thread(ws, "additional worker")).start(); in run()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/ |
H A D | PowerManagerService.java | 1836 ws, historyTag, null); 5684 if (ws != null && !ws.isEmpty()) { 5688 ws = null; 5698 if (ws != null && !ws.isEmpty()) { 5699 workSource.add(ws); 5701 ws = workSource; 5746 WorkSource ws = null; 5749 ws = new WorkSource(); 5753 ws.add(uid); 5771 if (ws != null && !ws.isEmpty()) { [all …]
|
/aosp14/frameworks/base/libs/hwui/utils/ |
H A D | Color.cpp | 404 const double ws = pow(w, 1. / fn.f); in GetPQSkTransferFunction() local 405 fn.a = ws * fn.a; in GetPQSkTransferFunction() 406 fn.b = ws * fn.b; in GetPQSkTransferFunction()
|
/aosp14/frameworks/base/apex/jobscheduler/framework/java/android/app/ |
H A D | AlarmManager.java | 950 private static String makeTag(long triggerMillis, WorkSource ws) { in makeTag() argument 955 (ws == null || ws.isEmpty()) ? Process.myUid() : ws.getAttributionUid(); in makeTag()
|
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/alarm/ |
H A D | Alarm.java | 138 PendingIntent op, IAlarmListener rec, String listenerTag, WorkSource ws, int flags, in Alarm() argument 155 workSource = ws; in Alarm()
|
/aosp14/frameworks/base/services/core/java/com/android/server/power/stats/ |
H A D | BatteryStatsImpl.java | 4858 final int N = ws.size(); in noteStartWakeFromSourceLocked() 4924 final int N = ws.size(); in noteStopWakeFromSourceLocked() 6458 final int N = ws.size(); in noteBluetoothScanStartedFromSourceLocked() 6594 int N = ws.size(); in noteWifiRunningLocked() 6663 int N = ws.size(); in noteWifiStoppedLocked() 6856 int N = ws.size(); in noteFullWifiLockAcquiredFromSourceLocked() 6875 int N = ws.size(); in noteFullWifiLockReleasedFromSourceLocked() 6894 int N = ws.size(); in noteWifiScanStartedFromSourceLocked() 6913 int N = ws.size(); in noteWifiScanStoppedFromSourceLocked() 6932 int N = ws.size(); in noteWifiBatchedScanStartedFromSourceLocked() [all …]
|
/aosp14/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 520 FloatArrayHelper ws(env, ws_ref, wsOffset, 16); in util_visibilityTest() local 524 bool checkOK = ws.check() && positions.check() && indices.check(); in util_visibilityTest() 535 ws.bind(); in util_visibilityTest() 539 return visibilityTest(ws.mData, in util_visibilityTest()
|