Home
last modified time | relevance | path

Searched +full:system +full:- +full:observe (Results 1 – 25 of 1042) sorted by relevance

12345678910>>...42

/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/
H A DFrameRateOverrideCtsActivity.java8 * http://www.apache.org/licenses/LICENSE-2.0
105 Log.i(TAG, String.format("Frame rate changed: (%.2f, %.2f) --> (%.2f, %.2f)",
136 mLastBufferPostTime = System.nanoTime(); in postBufferToSurface()
192 return Math.abs(frameRate1 - frameRate2) <= FRAME_RATE_TOLERANCE; in frameRatesEqual()
196 return Math.abs(frameRate1 - frameRate2) <= FPS_TOLERANCE_FOR_FRAME_RATE_OVERRIDE; in frameRatesMatchesOverride()
208 long nowNanos = System.nanoTime(); in waitForPreconditions()
211 long timeRemainingMillis = (endTimeNanos - nowNanos) / 1_000_000; in waitForPreconditions()
219 nowNanos = System.nanoTime(); in waitForPreconditions()
227 long nowNanos = System.nanoTime(); in waitForPreconditionViolation()
230 long timeRemainingMillis = (endTimeNanos - nowNanos) / 1_000_000; in waitForPreconditionViolation()
[all …]
/aosp_15_r20/external/apache-commons-io/src/main/java/org/apache/commons/io/monitor/
H A DFileAlterationObserver.java9 * http://www.apache.org/licenses/LICENSE-2.0
35 * checking the file system and notifying listeners of create, change or
56 * To manually observe a directory, initialize the observer and invoked the
82 * This implementation can monitor portions of the file system
83 * by using {@link FileFilter}s to observe only the files and/or directories
85 * noise from <i>unwanted</i> file system events.
88 * useful, ready-made
89 * <a href="../filefilter/package-summary.html">File Filter</a>
92 * For example, to only observe 1) visible directories and 2) files with a ".java" suffix
105 * // Create the File system observer and register File Listeners
[all …]
/aosp_15_r20/cts/tests/tests/gameframerate/src/
H A DGameFrameRateCtsActivity.java8 * http://www.apache.org/licenses/LICENSE-2.0
109 Log.i(TAG, String.format("Frame rate changed: (%.2f, %.2f) --> (%.2f, %.2f)",
149 mLastBufferPostTime = System.nanoTime(); in postBufferToSurface()
205 return Math.abs(frameRate1 - frameRate2) <= FRAME_RATE_TOLERANCE; in frameRatesEqual()
209 return Math.abs(frameRate1 - frameRate2) <= FPS_TOLERANCE_FOR_FRAME_RATE_OVERRIDE; in frameRatesMatchesOverride()
215 && (fps - FPS_TOLERANCE_FOR_FRAME_RATE_OVERRIDE <= expectedFrameRateRange.max); in frameRatesMatchesOverride()
227 long nowNanos = System.nanoTime(); in waitForPreconditions()
230 long timeRemainingMillis = (endTimeNanos - nowNanos) / 1_000_000; in waitForPreconditions()
238 nowNanos = System.nanoTime(); in waitForPreconditions()
246 long nowNanos = System.nanoTime(); in waitForPreconditionViolation()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/accessibilityservice/
H A DBrailleDisplayController.java8 * http://www.apache.org/licenses/LICENSE-2.0
47 // and automatically closed by the system after the accessibility service is disconnected.
65 * receive callbacks from the system.
70 * The system cannot access connected HID devices.
90 * Callback to observe a successful Braille display connection.
104 * Callback to observe a failed Braille display connection.
114 * Callback to observe input bytes from the currently connected Braille display.
123 * Callback to observe when the currently connected Braille display is disconnected by the
124 * system.
138 * then the system will disconnect the Braille display.
[all …]
/aosp_15_r20/hardware/interfaces/nfc/aidl/vts/functional/
H A DVtsNfcBehaviorChangesTest.cpp8 * http://www.apache.org/licenses/LICENSE-2.0
23 #include <android-base/logging.h>
24 #include <android-base/stringprintf.h>
57 eventData->status); in nfaDeviceManagementCallback()
58 sIsNfaEnabled = eventData->status == NFA_STATUS_OK; in nfaDeviceManagementCallback()
66 eventData->status); in nfaDeviceManagementCallback()
67 sIsNfaEnabled = eventData->status == NFA_STATUS_OK; in nfaDeviceManagementCallback()
75 eventData->status, eventData->power_mode.power_mode); in nfaDeviceManagementCallback()
100 eventData->status); in nfaConnectionCallback()
109 eventData->status); in nfaConnectionCallback()
[all …]
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/mode/
H A DDisplayModeDirector.java8 * http://www.apache.org/licenses/LICENSE-2.0
107 * picked by the system based on system-wide and display-specific configuration.
262 * Tells the DisplayModeDirector to update allowed votes and begin observing relevant system
265 * This has to be deferred because the object may be constructed before the rest of the system
271 mDisplayObserver.observe(); in start()
273 mSettingsObserver.observe(); in start()
274 mBrightnessObserver.observe(sensorManager); in start()
275 mSensorObserver.observe(); in start()
276 mHbmObserver.observe(); in start()
277 mSkinThermalStatusObserver.observe(); in start()
[all …]
/aosp_15_r20/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionAppsViewModel.kt8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
72 * show system apps, and a liveData tracking whether there are any system apps which request in <lambda>()
156 private val listener = { _: Int, status: Boolean -> value = status } in <lambda>()
158 private val locListener = { status: Boolean -> value = !status } in <lambda>()
175 // If this is the Storage group, observe a FullStoragePermissionAppsLiveData, update in <lambda>()
179 addSource(FullStoragePermissionAppsLiveData) { fullAccessPackages -> in <lambda>()
249 PermGrantState.PERMS_ALLOWED -> Category.ALLOWED in <lambda>()
250 PermGrantState.PERMS_ALLOWED_FOREGROUND_ONLY -> Category.ALLOWED_FOREGROUND in <lambda>()
251 PermGrantState.PERMS_ALLOWED_ALWAYS -> Category.ALLOWED in <lambda>()
252 PermGrantState.PERMS_DENIED -> Category.DENIED in <lambda>()
[all …]
/aosp_15_r20/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DMainClusterActivity.java8 * http://www.apache.org/licenses/LICENSE-2.0
78 * This activity runs on "system user" (see {@link UserHandle#USER_SYSTEM}) but it is visible on
101 private static final int NO_DISPLAY = -1;
174 private ActivityMonitor.ActivityListener mNavigationActivityMonitor = (displayId, activity) -> {
182 * On user switch the navigation application must be re-launched on the new user. Otherwise
239 bindServiceAsUser(intent, mClusterRenderingServiceConnection, 0, UserHandle.SYSTEM); in onCreate()
268 mClusterViewModel.getNavigationFocus().observe(this, focus -> { in onCreate()
273 mClusterViewModel.getNavigationActivityState().observe(this, state -> { in onCreate()
284 mClusterViewModel.getSensor(Sensors.SENSOR_GEAR).observe(this, this::updateSelectedGear); in onCreate()
320 source.observe(this, value -> { in registerSensor()
[all …]
/aosp_15_r20/external/python/bumble/bumble/transport/grpc_protobuf/
Demulated_bluetooth_device_pb2_grpc.py2 """Client and server classes corresponding to protobuf-defined services."""
14 receive callbacks when the bluetooth system wants to
15 read, write or observe a characteristic.
51 receive callbacks when the bluetooth system wants to
52 read, write or observe a characteristic.
123 receive callbacks when the bluetooth system wants to
124 read, write or observe a characteristic.
/aosp_15_r20/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceModel.kt8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>()
60 * *Must* be used instead of LiveData.observe, in order to allow the lifecycle state to be set in <lambda>()
63 * (one non-stale update, in the case of a SmartUpdateMediatorLiveData). in <lambda>()
65 * @param liveData The livedata we wish to observe in <lambda>()
72 onChangedFun: (t: T?) -> Unit in <lambda>()
81 liveData.observe(service, Observer {}) in <lambda>()
106 liveData.observe(service, observer) in <lambda>()
126 * @param flags Flags specifying if we want to count system apps, and count only granted apps in <lambda>()
135 observeAndCheckForLifecycleState(packageInfosLiveData) { packageInfos -> in <lambda>()
142 * flags. Observes the AppPermGroupUiInfoLiveData for every app, and, upon receiving a non-stale in <lambda>()
[all …]
/aosp_15_r20/external/libchrome/mojo/public/c/system/
H A Dtrap.h2 // Use of this source code is governed by a BSD-style license that can be
10 #include "mojo/public/c/system/macros.h"
11 #include "mojo/public/c/system/system_export.h"
12 #include "mojo/public/c/system/types.h"
36 // handler itself is re-entering user code. May happen, for example, if
37 // user code writes to an intra-process pipe and the receiving end trips
72 // |MOJO_TRIGGER_CONDITION_SIGNALS_UNSATISFIED| - A trigger added with this
75 // |MOJO_TRIGGER_CONDITION_SIGNALS_SATISFIED| - A triger added with this
173 // A user-provided callback to handle trap events. Passed to |MojoCreateTrap()|.
216 // handlers are never re-entered. If an event handler changes the state of the
[all …]
/aosp_15_r20/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
H A DRotationSession.java8 * http://www.apache.org/licenses/LICENSE-2.0
37 "cmd window fixed-to-user-rotation ";
55 super(Settings.System.getUriFor(Settings.System.USER_ROTATION), in RotationSession()
56 Settings.System::getInt, Settings.System::putInt); in RotationSession()
58 Settings.System.getUriFor(Settings.System.ACCELEROMETER_ROTATION), in RotationSession()
59 Settings.System::getInt, Settings.System::putInt); in RotationSession()
102 mRotationObserver.observe(); in set()
111 () -> mRotationObserver.mCount == 2).setRetryIntervalMs(500)); in set()
120 () -> mRotationObserver.mCount > 0).setRetryIntervalMs(100)); in set()
145 void observe() { in observe() method in RotationSession.SettingsObserver
[all …]
/aosp_15_r20/frameworks/base/nfc/java/android/nfc/
H A DNfcAdapter.java8 * http://www.apache.org/licenses/LICENSE-2.0
77 * <a href="{@docRoot}training/beam-files/index.html">Sharing Files with NFC</a>.
90 * <p>The system inspects the first {@link NdefRecord} in the first {@link NdefMessage} and
102 * <p>The MIME type or data URI of this intent are normalized before dispatch -
103 * so that MIME, URI scheme and URI host are always lower-case.
114 * manifest <code>meta-data</code> entry. Here is an example manfiest entry:
117 * &lt;!-- Add a technology filter --&gt;
118 * &lt;intent-filter&gt;
120 * &lt;/intent-filter&gt;
122 * &lt;meta-data android:name="android.nfc.action.TECH_DISCOVERED"
[all …]
/aosp_15_r20/libcore/ojluni/src/test/java/lang/invoke/
H A DInvokeGenericTest.java17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
50 String vstr = System.getProperty("test.java.lang.invoke.InvokeGenericTest.verbosity");
62 } finally { printCounts(); verbosity -= 9; } in testFirst()
74 System.out.println(); in printCounts()
75 … if (posTests != 0) System.out.println("=== "+testName+": "+posTests+" positive test cases run"); in printCounts()
76 … if (negTests != 0) System.out.println("=== "+testName+": "+negTests+" negative test cases run"); in printCounts()
90 System.out.println("["+name+"]"); in startTest()
106 System.out.println(); in tearDownClass()
107 if (posTests != 0) System.out.println("=== "+posTests+" total positive test cases"); in tearDownClass()
108 if (negTests != 0) System.out.println("=== "+negTests+" total negative test cases"); in tearDownClass()
[all …]
H A DRicochetTest.java17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
26 …* @run junit/othervm/timeout=3600 -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies -DRicoc…
29 * @ignore The following test creates an unreasonable number of adapters in -Xcomp mode (7049122)
30 * @run junit/othervm -DRicochetTest.MAX_ARITY=255 test.java.lang.invoke.RicochetTest
117 int bump13 = -13; // value near 20 works as long as test values are near [-80..80] in testFilterObject()
125 System.out.println("[testFilterObject done]"); in testFilterObject()
144 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added in testIntSpreads()
146 if (nargs > 30 && nargs < MAX-20) nargs += 10; in testIntSpreads()
149 //System.out.println("testIntSpreads "+Arrays.toString(args)); in testIntSpreads()
173 final int MAX = MAX_ARITY-2; // 253+1 would cause parameter overflow with 'this' added in testByteSpreads()
[all …]
/aosp_15_r20/external/bcc/snap/
H A DREADME.md8 sudo snap install snapcraft --classic
15 Install the snap by running (`--dangerous` is required as the snap is
18 sudo snap install --dangerous bcc_*.snap
23 sudo snap connect bcc:mount-observe
24 sudo snap connect bcc:system-observe
25 sudo snap connect bcc:system-trace
/aosp_15_r20/packages/apps/DeskClock/src/com/android/deskclock/data/
DSilentSettingsModel.kt8 * http://www.apache.org/licenses/LICENSE-2.0
40 import android.provider.Settings.System.CONTENT_URI
41 import android.provider.Settings.System.DEFAULT_ALARM_ALERT_URI
48 * This model fetches and stores reasons that alarms may be suppressed or silenced by system
58 /** Used to query the alarm volume and display the system control to change the alarm volume. */
61 /** Used to query the do-not-disturb setting value, also called "interruption filter". */
74 /** The background task that checks the device system settings that influence alarm firing. */
132 * This task inspects a variety of system settings that can prevent alarms from firing or the
203 * Observe changes to specific URI for settings that can silence firing alarms.
212 * Observe changes to the do-not-disturb setting.
/aosp_15_r20/external/accompanist/permissions/src/main/java/com/google/accompanist/permissions/
H A DPermissionState.kt8 * https://www.apache.org/licenses/LICENSE-2.0
28 * @param permission the permission to control and observe.
36 onPermissionResult: (Boolean) -> Unit = {} in rememberPermissionState()
42 * A state object that can be hoisted to control and observe [permission] status changes.
54 * The permission to control and observe.
66 * This should always be triggered from non-composable scope, for example, from a side-effect
67 * or a non-composable callback. Otherwise, this will result in an IllegalStateException.
69 * This triggers a system dialog that asks the user to grant or revoke the permission.
/aosp_15_r20/frameworks/base/packages/SystemUI/utils/kairos/
H A DREADME.md10 Functional reactive programming is a type of reactive programming system that
16 `Kairos` implements an applicative / monadic flavor of FRP, using a push-pull
33 You can use the `FrpNetwork` to stand-up a network of reactive events and state.
41 // Launch a long-running side-effect that emits to the network
50 val count: TState<Int> = input.fold { _, i -> i + 1 }
51 // Observe events to perform side-effects in reaction to them
52 input.observe {
53 println("Got event ${count.sample()} at time: ${System.currentTimeMillis()}")
60 will tear-down all effects and obervers running within the lambda.
64 - [Cheatsheet for those coming from Kotlin Flow](docs/flow-to-kairos-cheatsheet.md)
/aosp_15_r20/external/rust/android-crates-io/crates/walkdir/
DREADME.md11 Dual-licensed under MIT or the [UNLICENSE](https://unlicense.org/).
74 fn is_hidden(entry: &DirEntry) -> bool {
104 `nftw` on both a warm and cold file cache. In fact, I cannot observe any
106 local file system (SSD, ~3 million entries). More precisely, I am reasonably
107 confident that this crate makes as few system calls and close to as few
117 # If you want to observe perf on a cold file cache, run this before *each*
119 sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches'
128 cargo build --release --example walkdir
132 gcc -O3 -o nftw ./compare/nftw.c
139 On my system, the performance of `walkdir`, `find` and `nftw` is comparable.
/aosp_15_r20/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoManageOtherPermissionsFragment.java8 * http://www.apache.org/licenses/LICENSE-2.0
39 * Shows additional non-system permissions that can be granted/denied.
63 viewModel.getUnusedPermissionGroups().observe(this, this::onUnusedPermissionGroupsChanged); in onCreate()
64 viewModel.getAdditionalPermissionGroups().observe(this, in onCreate()
66 viewModel.hasUnusedOrAdditionalPermissionGroups().observe(this, in onCreate()
108 // There are not more permissions on this screen - go back. in onHasUnusedOrAdditionalPermissionGroups()
/aosp_15_r20/external/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/
H A DBidiStreamingCallable.java63 * // no-op
67 * System.out.println(response);
71 * System.out.println("done!");
75 * System.out.println("error: " + t);
147 * // no-op
151 * System.out.println(response);
155 * System.out.println("done!");
159 * System.out.println("error: " + t);
178 stream -> { in splitCall()
187 * @param responseObserver {@link ApiStreamObserver} to observe the streaming responses
[all …]
/aosp_15_r20/frameworks/base/nfc/java/android/nfc/cardemulation/
H A DCardEmulation.java8 * http://www.apache.org/licenses/LICENSE-2.0
76 private static final Pattern AID_PATTERN = Pattern.compile("[0-9A-Fa-f]{10,32}\\*?\\#?");
77 private static final Pattern PLPF_PATTERN = Pattern.compile("[0-9A-Fa-f,\\?,\\*\\.]*");
133 * <p>When using ISO-DEP card emulation with {@link HostApduService}
145 * <p>In this mode, when using ISO-DEP card emulation with {@link HostApduService}
155 * <p>In this mode, when using ISO-DEP card emulation with {@link HostApduService}
188 public static final int PROTOCOL_AND_TECHNOLOGY_ROUTE_UNSET = -1;
338 return callServiceReturn(() -> in isDefaultServiceForCategory()
346 * the default handler for a specified ISO7816-4 Application ID.
349 * @param aid The ISO7816-4 Application ID
[all …]
/aosp_15_r20/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/
H A DTouchMonitor.java8 * http://www.apache.org/licenses/LICENSE-2.0
50 import com.android.systemui.shared.system.InputChannelCompat;
96 private Consumer<Rect> mMaxBoundsConsumer = rect -> mMaxBounds = rect;
104 return CallbackToFutureAdapter.getFuture(completer -> { in push()
105 mMainExecutor.execute(() -> { in push()
127 return CallbackToFutureAdapter.getFuture(completer -> {
128 mMainExecutor.execute(() -> {
129 mLogger.i(msg -> "Session popped, hashCode: " + msg.getInt1(), msg -> {
296 mBackgroundExecutor.execute(() -> {
306 mLogger.i(msg -> "Exclusion rect updated to " + msg.getStr1(),
[all …]
/aosp_15_r20/prebuilts/go/linux-x86/src/runtime/
Dtrace.go2 // Use of this source code is governed by a BSD-style
7 // creation/blocking/unblocking, syscall enter/exit/block, GC-related events,
9 // in a compact form. A precise nanosecond-precision timestamp and a stack
13 // - An m that has a trace buffer must be on either the allm or sched.freem lists.
14 // - Any trace buffer mutation must either be happening in traceAdvance or between
16 // - traceAdvance cannot return until the previous generation's buffers are all flushed.
31 // trace.lock must only be acquired on the system stack where
41 // The trace reader takes buffers off the full list one-by-one and
67 // There are 2 of each: one for gen%2, one for 1-gen%2.
74 // 1-gen%2. These profBufs use a three-word header to hold the IDs of the P, G,
[all …]

12345678910>>...42