Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 25 of 86) sorted by relevance

1234

/aosp12/frameworks/base/core/tests/coretests/src/android/os/
H A DWorkSourceTest.java149 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 DPowerManagerTest.java309 WorkSource ws = WorkSource.CREATOR.createFromParcel(wsParcel); in unparcelWorkSourceFromNativeAndVerify() local
311 assertEquals(ws.size(), 0); in unparcelWorkSourceFromNativeAndVerify()
313 assertEquals(uids.length, ws.size()); in unparcelWorkSourceFromNativeAndVerify()
314 for (int i = 0; i < ws.size(); i++) { in unparcelWorkSourceFromNativeAndVerify()
315 assertEquals(ws.getUid(i), uids[i]); in unparcelWorkSourceFromNativeAndVerify()
320 assertEquals(ws.getName(i), names[i]); in unparcelWorkSourceFromNativeAndVerify()
330 WorkSource ws = new WorkSource(); in parcelWorkSourceToNativeAndVerify() local
334 ws.add(uids[i]); in parcelWorkSourceToNativeAndVerify()
339 ws.add(uids[i], names[i]); in parcelWorkSourceToNativeAndVerify()
344 ws.writeToParcel(wsParcel, 0 /* flags */); in parcelWorkSourceToNativeAndVerify()
/aosp12/art/odrefresh/
H A Dodr_metrics_record.cc34 is >> record.art_apex_version >> std::ws; in operator >>()
35 is >> record.trigger >> std::ws; in operator >>()
36 is >> record.stage_reached >> std::ws; in operator >>()
37 is >> record.status >> std::ws; in operator >>()
38 is >> record.primary_bcp_compilation_seconds >> std::ws; in operator >>()
39 is >> record.secondary_bcp_compilation_seconds >> std::ws; in operator >>()
40 is >> record.system_server_compilation_seconds >> std::ws; in operator >>()
41 is >> record.cache_space_free_start_mib >> std::ws; in operator >>()
42 is >> record.cache_space_free_end_mib >> std::ws; in operator >>()
H A Dodr_compilation_log.cc45 is >> entry.apex_version >> std::ws; in operator >>()
46 is >> entry.last_update_millis >> std::ws; in operator >>()
47 is >> entry.trigger >> std::ws; in operator >>()
48 is >> entry.when >> std::ws; in operator >>()
49 is >> entry.exit_code >> std::ws; in operator >>()
105 ifs >> log_version >> std::ws; in Read()
/aosp12/frameworks/base/core/java/com/android/internal/app/
H A DIBatteryStats.aidl118 void noteWifiRunning(in WorkSource ws); in noteWifiRunning() argument
120 void noteWifiStopped(in WorkSource ws); in noteWifiStopped() argument
130 void noteFullWifiLockAcquiredFromSource(in WorkSource ws); in noteFullWifiLockAcquiredFromSource() argument
131 void noteFullWifiLockReleasedFromSource(in WorkSource ws); in noteFullWifiLockReleasedFromSource() argument
132 void noteWifiScanStartedFromSource(in WorkSource ws); in noteWifiScanStartedFromSource() argument
133 void noteWifiScanStoppedFromSource(in WorkSource ws); in noteWifiScanStoppedFromSource() argument
134 void noteWifiBatchedScanStartedFromSource(in WorkSource ws, int csph); in noteWifiBatchedScanStartedFromSource() argument
135 void noteWifiBatchedScanStoppedFromSource(in WorkSource ws); in noteWifiBatchedScanStoppedFromSource() argument
146 void noteBleScanStarted(in WorkSource ws, boolean isUnoptimized); in noteBleScanStarted() argument
147 void noteBleScanStopped(in WorkSource ws, boolean isUnoptimized); in noteBleScanStopped() argument
[all …]
/aosp12/frameworks/base/core/java/android/os/
H A DBatteryStatsManager.java268 public void reportWifiScanStartedFromSource(@NonNull WorkSource ws) { in reportWifiScanStartedFromSource() argument
270 mBatteryStats.noteWifiScanStartedFromSource(ws); in reportWifiScanStartedFromSource()
282 public void reportWifiScanStoppedFromSource(@NonNull WorkSource ws) { in reportWifiScanStoppedFromSource() argument
284 mBatteryStats.noteWifiScanStoppedFromSource(ws); in reportWifiScanStoppedFromSource()
300 mBatteryStats.noteWifiBatchedScanStartedFromSource(ws, csph); in reportWifiBatchedScanStartedFromSource()
314 mBatteryStats.noteWifiBatchedScanStoppedFromSource(ws); in reportWifiBatchedScanStoppedFromSource()
358 mBatteryStats.noteFullWifiLockAcquiredFromSource(ws); in reportFullWifiLockAcquiredFromSource()
372 mBatteryStats.noteFullWifiLockReleasedFromSource(ws); in reportFullWifiLockReleasedFromSource()
402 public void reportWifiMulticastEnabled(@NonNull WorkSource ws) { in reportWifiMulticastEnabled() argument
404 mBatteryStats.noteWifiMulticastEnabled(ws.getAttributionUid()); in reportWifiMulticastEnabled()
[all …]
H A DIPowerManager.aidl29 void acquireWakeLock(IBinder lock, int flags, String tag, String packageName, in WorkSource ws, in acquireWakeLock() argument
42 void updateWakeLockWorkSource(IBinder lock, in WorkSource ws, String historyTag); in updateWakeLockWorkSource() argument
82 in WorkSource ws, String historyTag); in acquireWakeLockAsync() argument
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/states/
H A DSpringLoadedState.java50 Workspace ws = launcher.getWorkspace(); in getWorkspaceScaleAndTranslation() local
51 if (ws.getChildCount() == 0) { in getWorkspaceScaleAndTranslation()
63 float scaledHeight = scale * ws.getNormalChildHeight(); in getWorkspaceScaleAndTranslation()
65 float shrunkBottom = ws.getMeasuredHeight() - insets.bottom in getWorkspaceScaleAndTranslation()
72 float halfHeight = ws.getHeight() / 2; in getWorkspaceScaleAndTranslation()
73 float myCenter = ws.getTop() + halfHeight; in getWorkspaceScaleAndTranslation()
74 float cellTopFromCenter = halfHeight - ws.getChildAt(0).getTop(); in getWorkspaceScaleAndTranslation()
/aosp12/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
H A DTimeController.java126 maybeUpdateDelayAlarmLocked(job.getEarliestRunTime(), ws); in maybeStartTrackingJobLocked() local
130 maybeUpdateDeadlineAlarmLocked(job.getLatestRunTimeElapsed(), ws); in maybeStartTrackingJobLocked() local
321 WorkSource ws = new WorkSource(); in deriveWorkSource() local
322 ws.createWorkChain() in deriveWorkSource()
325 return ws; in deriveWorkSource()
343 setDelayExpiredAlarmLocked(delayExpiredElapsed, ws); in maybeUpdateDelayAlarmLocked()
349 setDeadlineExpiredAlarmLocked(deadlineExpiredElapsed, ws); in maybeUpdateDeadlineAlarmLocked()
369 mNextDelayExpiredListener, mNextDelayExpiredElapsedMillis, ws); in setDelayExpiredAlarmLocked()
384 mDeadlineExpiredListener, mNextJobExpiredElapsedMillis, ws); in setDeadlineExpiredAlarmLocked()
392 OnAlarmListener listener, long alarmTimeElapsed, WorkSource ws) { in updateAlarmWithListenerLocked() argument
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DWorkSourceUtil.java33 public static Pair<int[], String[]> getUidsAndTagsForWs(WorkSource ws) { in getUidsAndTagsForWs() argument
37 for (int i = 0; i < ws.size(); i++) { in getUidsAndTagsForWs()
38 uids.add(ws.getUid(i)); in getUidsAndTagsForWs()
39 tags.add(ws.getPackageName(i)); in getUidsAndTagsForWs()
42 final List<WorkSource.WorkChain> workChains = ws.getWorkChains(); in getUidsAndTagsForWs()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfputws.c40 fputws(ws, fp) in fputws() argument
41 const wchar_t * __restrict ws; in fputws()
47 while (*ws != '\0') {
48 if (__fputwc_unlock(*ws++, fp) == WEOF) {
H A Dfgetws.c40 fgetws(wchar_t * __restrict ws, int n, FILE * __restrict fp) in fgetws() argument
53 wsp = ws; in fgetws()
59 if (wsp == ws) { in fgetws()
74 return (ws); in fgetws()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A DWifiLockManager.java220 WorkSource newWorkSource = new WorkSource(ws); in acquireWifiLock()
297 WorkSource newWorkSource = new WorkSource(ws); in updateWifiLockWorkSource()
481 private void addWsToLlWatchList(WorkSource ws) { in addWsToLlWatchList() argument
482 int wsSize = ws.size(); in addWsToLlWatchList()
484 final int uid = ws.getUid(i); in addWsToLlWatchList()
488 final List<WorkChain> workChains = ws.getWorkChains(); in addWsToLlWatchList()
498 private void removeWsFromLlWatchList(WorkSource ws) { in removeWsFromLlWatchList() argument
499 int wsSize = ws.size(); in removeWsFromLlWatchList()
501 final int uid = ws.getUid(i); in removeWsFromLlWatchList()
505 final List<WorkChain> workChains = ws.getWorkChains(); in removeWsFromLlWatchList()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
H A DRttServiceImpl.java432 final WorkSource ws; in startRanging() local
437 ws = workSource.withoutNames(); in startRanging()
439 ws = null; in startRanging()
467 WorkSource sourceToUse = ws; in startRanging()
468 if (ws == null || ws.isEmpty()) { in startRanging()
485 if (ws == null || ws.isEmpty()) { in cancelRanging()
718 private boolean isRequestorSpamming(WorkSource ws) { in isRequestorSpamming() argument
738 for (int i = 0; i < ws.size(); ++i) { in isRequestorSpamming()
873 for (int i = 0; i < ws.size(); ++i) { in preExecThrottleCheck()
908 for (int i = 0; i < ws.size(); ++i) { in preExecThrottleCheck()
[all …]
/aosp12/bionic/libc/bionic/
H A Dpty.cpp115 int openpty(int* pty, int* tty, char* name, const termios* t, const winsize* ws) { in openpty() argument
144 if (ws != nullptr) { in openpty()
145 ioctl(*tty, TIOCSWINSZ, ws); in openpty()
151 int forkpty(int* parent_pty, char* child_tty_name, const termios* t, const winsize* ws) { in forkpty() argument
154 if (openpty(&pty, &tty, child_tty_name, t, ws) == -1) { in forkpty()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java1010 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStartWakelockFromSource()
1028 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteChangeWakelockFromSource()
1046 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteStopWakelockFromSource()
1630 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiRunning()
1667 final WorkSource localWs = ws != null ? new WorkSource(ws) : ws; in noteWifiStopped()
1800 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockAcquiredFromSource()
1815 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteFullWifiLockReleasedFromSource()
1830 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStartedFromSource()
1844 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiScanStoppedFromSource()
1858 final WorkSource localWs = ws != null ? new WorkSource(ws) : null; in noteWifiBatchedScanStartedFromSource()
[all …]
/aosp12/frameworks/native/services/powermanager/include/android/
H A DWorkSource.h39 bool operator == (const WorkSource &ws) const {
40 return mUids == ws.mUids && mNames == ws.mNames;
/aosp12/frameworks/base/core/tests/coretests/jni/
H A DNativePowerManagerTest.cpp115 WorkSource ws = WorkSource(uids, names); in nativeObtainWorkSourceParcel() local
118 status_t err = ws.writeToParcel(parcel); in nativeObtainWorkSourceParcel()
129 WorkSource ws = {}; in nativeUnparcelAndVerifyWorkSource() local
132 status_t err = ws.readFromParcel(parcel); in nativeUnparcelAndVerifyWorkSource()
141 if (ws.getUids().at(i) != static_cast<int32_t>(ptr[i])) { in nativeUnparcelAndVerifyWorkSource()
144 ws.getUids().at(i), static_cast<int32_t>(ptr[i])).c_str()); in nativeUnparcelAndVerifyWorkSource()
148 if (ws.getUids().size() != 0) { in nativeUnparcelAndVerifyWorkSource()
159 if (String16(rawString) != ws.getNames()->at(i)) { in nativeUnparcelAndVerifyWorkSource()
165 if (ws.getNames() != std::nullopt) { in nativeUnparcelAndVerifyWorkSource()
/aosp12/art/tools/
H A Dparallel_run.py59 ws = concurrent.futures.wait(fs, return_when=concurrent.futures.FIRST_COMPLETED)
60 fs = ws.not_done
61 done = list(map(lambda a: a.result(), ws.done))
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DBatteryStatsNoteTest.java835 WorkSource ws = new WorkSource(); in testAlarmStartAndFinishLocked_workSource() local
836 ws.add(100); in testAlarmStartAndFinishLocked_workSource()
838 bi.noteAlarmStartLocked("foo", ws, UID); in testAlarmStartAndFinishLocked_workSource()
898 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid() local
899 ws.add(100); in testNoteWakupAlarmLocked_workSource_uid()
911 ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_uid()
912 ws.add(100, "com.foo.baz_alternate"); in testNoteWakupAlarmLocked_workSource_uid()
931 WorkSource ws = new WorkSource(); in testNoteWakupAlarmLocked_workSource_workChain() local
957 WorkSource ws = new WorkSource(); in testNoteGpsChanged() local
958 ws.add(UID); in testNoteGpsChanged()
[all …]
H A DBatteryStatsBackgroundStatsTest.java204 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()
/aosp12/hardware/interfaces/automotive/evs/1.1/default/
H A DConfigManagerUtil.cpp144 string ConfigManagerUtil::trimString(const string &src, const string &ws) { in trimString() argument
145 const auto s = src.find_first_not_of(ws); in trimString()
150 const auto e = src.find_last_not_of(ws); in trimString()
/aosp12/packages/services/Car/cpp/evs/sampleDriver/
H A DConfigManagerUtil.cpp144 string ConfigManagerUtil::trimString(const string &src, const string &ws) { in trimString() argument
145 const auto s = src.find_first_not_of(ws); in trimString()
150 const auto e = src.find_last_not_of(ws); in trimString()
/aosp12/system/logging/logd/
H A DLogPermissions.cpp31 static const char ws[] = " \n"; in groupIsLog() local
33 for (buf = strtok_r(buf, ws, &ptr); buf; buf = strtok_r(nullptr, ws, &ptr)) { in groupIsLog()
/aosp12/frameworks/base/tools/bit/
H A Dprint.cpp136 struct winsize ws; in print_one_line() local
137 ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws); in print_one_line()
138 int size = ws.ws_col + 1; in print_one_line()

1234