Home
last modified time | relevance | path

Searched refs:wakeLock (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DSystemProximityWakeLock.java33 private final PowerManager.WakeLock wakeLock; field in SystemProximityWakeLock
39 wakeLock = in SystemProximityWakeLock()
47 wakeLock.acquire(); in acquire()
53 wakeLock.release(); in release()
59 return wakeLock.isHeld(); in isHeld()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java32 public WakeLockAdapter(PowerManager.WakeLock wakeLock) { in WakeLockAdapter() argument
33 mWakeLock = wakeLock; in WakeLockAdapter()
81 PowerManager.WakeLock wakeLock = powerManager.newWakeLock(mWakeLockLevel, mWakeLockTag); in getWakeLockFromPowerManager() local
82 adapter = new WakeLockAdapter(wakeLock); in getWakeLockFromPowerManager()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DApfIntegrationTest.kt112 private val wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG) constant
125 if (!wakeLock.isHeld()) wakeLock.acquire() in turnScreenOff()
132 if (wakeLock.isHeld()) wakeLock.release() in turnScreenOn()
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsService.java612 PowerManager.WakeLock wakeLock = in create() local
618 alarmManager, wakeLock, getDefaultClock(), in create()
629 PowerManager.WakeLock wakeLock, Clock clock, NetworkStatsSettings settings, in NetworkStatsService() argument
637 mWakeLock = Objects.requireNonNull(wakeLock, "missing WakeLock"); in NetworkStatsService()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java412 PowerManager.WakeLock wakeLock = in setUp() local
429 mService = new NetworkStatsService(mServiceContext, mNetd, mAlarmManager, wakeLock, in setUp()