Searched defs:check (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DFastXmlSerializerTest.java124 private boolean check(String description, String str) throws Exception { method in class:FastXmlSerializerTest
139 ok &= check("char: " + i, String.valueOf((char) i));
142 assertFalse(check("+ud800", "\ud800"));
143 assertFalse(check("+udc00", "\udc00"));
147 ok &= check("char: " + i, String.valueOf((char) i) + String.valueOf((char) j));
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
H A DSysuiTestableContext.java30 public SysuiTestableContext(Context base, LeakCheck check) { argument
31 super(base, check);
/frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/util/
H A DPreconditions.java23 public static void check(boolean value, String error, Object... args) { method in class:Preconditions
/frameworks/support/testutils/src/main/java/android/support/testutils/
H A DPollingCheck.java43 protected abstract boolean check(); method in class:PollingCheck
46 * Start running the polling check.
49 if (check()) {
61 if (check()) {
73 * @param condition The condition to check for success.
78 protected boolean check() {
87 * @param condition The condition to check for success.
92 protected boolean check() {
/frameworks/native/libs/binder/
H A DPermissionCache.cpp37 status_t PermissionCache::check(bool* granted, function in class:android::PermissionCache
100 if (pc.check(&granted, permission, uid) != NO_ERROR) {
/frameworks/base/core/tests/coretests/src/android/net/
H A DUriMatcherTest.java107 check("content://asdf", UriMatcher.NO_MATCH, matcher);
108 check("content://people", PEOPLE, matcher);
109 check("content://people/", PEOPLE, matcher);
110 check("content://people/1", PEOPLE_ID, matcher);
111 check("content://people/asdf", UriMatcher.NO_MATCH, matcher);
112 check("content://people/2/phones", PEOPLE_PHONES, matcher);
113 check("content://people/2/phones/3", PEOPLE_PHONES_ID, matcher);
114 check("content://people/2/phones/asdf", UriMatcher.NO_MATCH, matcher);
115 check("content://people/2/addresses", PEOPLE_ADDRESSES, matcher);
116 check("conten
133 private void check(String uri, int expected, UriMatcher matcher) { method in class:UriMatcherTest
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java152 * A {@link ViewAssertion} to check the selected text in a {@link TextView}.
163 public void check(View view, NoMatchingViewException exception) { method in class:TextViewAssertions.TextSelectionAssertion
183 * {@link ViewAssertion} to check that EditText cursor is on a given position.
200 public void check(View view, NoMatchingViewException exception) { method in class:TextViewAssertions.CursorPositionAssertion
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/testutils/
H A DPollingCheck.java43 protected abstract boolean check(); method in class:PollingCheck
46 return check();
62 if (check()) {
75 protected boolean check() {
89 protected boolean check() {
/frameworks/av/media/libaudioprocessing/tests/
H A Dresampler_tests.cpp77 int check = memcmp((const char*)reference + i * outputFrameSize, local
79 if (check) {
81 ASSERT_EQ(check, 0); /* fails */
147 // check
213 // check signal energy in passband
217 // check each channel separately
/frameworks/base/core/java/android/net/
H A DVpnService.java256 check(address, prefixLength);
286 check(address, prefixLength);
382 private static void check(InetAddress address, int prefixLength) { method in class:VpnService
461 check(address, prefixLength);
496 check(address, prefixLength);
/frameworks/base/core/java/android/widget/
H A DRadioGroup.java168 public void check(@IdRes int id) { method in class:RadioGroup
209 * @see #check(int)
224 * @see #check(int)
228 check(-1);
442 check(child.getId());
/frameworks/base/core/java/com/android/internal/util/
H A DArrayUtils.java83 * @param length the number of bytes to check
180 * @param array the array to check in
181 * @param value the value to check for
201 * Test if all {@code check} items are contained in {@code array}.
203 public static <T> boolean containsAll(@Nullable T[] array, T[] check) { argument
204 if (check == null) return true;
205 for (T checkItem : check) {
214 * Test if any {@code check} items are contained in {@code array}.
216 public static <T> boolean containsAny(@Nullable T[] array, T[] check) { argument
217 if (check
259 containsAll(@ullable char[] array, char[] check) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/os/
H A DAidlTest.java39 private static boolean check(TestParcelable p, int n, String s) { method in class:AidlTest
256 assertTrue("out parameter 0: " + list.get(0), check(list.get(0), 33, "asdf"));
257 assertTrue("out parameter 1: " + list.get(1), check(list.get(1), 34, "jkl;"));
258 assertTrue("out parameter 2: " + list.get(2), check(list.get(2), 34, "jkl;"));
279 assertTrue("out parameter 0: " + list.get(0), check(list.get(0), 33, "asdf"));
280 assertTrue("out parameter 1: " + list.get(1), check(list.get(1), 34, "jkl;"));
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUSocketFactory.java333 public void check(Certificate cert, Collection<String> unresolvedCritExts) method in class:OSUSocketFactory.EKUChecker
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedLockUtils.java69 * @param userRestriction Restriction to check
70 * @param userId User which we need to check if restriction is enforced on.
135 * @param userId User to check enforced admin status for.
144 final LockSettingCheck check = (dpm, admin, checkUser) -> {
154 return findEnforcedAdmin(dpm.getActiveAdminsAsUser(userId), dpm, userId, check);
156 return checkForLockSetting(context, userId, check);
160 * Filter a set of device admins based on a predicate {@code check}. This is equivalent to
161 * {@code admins.stream().filter(check).map(x → new EnforcedAdmin(admin, userId)} except it's
166 * @param check filter predicate.
175 @NonNull LockSettingCheck check) {
173 findEnforcedAdmin(@ullable List<ComponentName> admins, @NonNull DevicePolicyManager dpm, @UserIdInt int userId, @NonNull LockSettingCheck check) argument
492 checkForLockSetting( Context context, @UserIdInt int userId, LockSettingCheck check) argument
[all...]
/frameworks/base/services/core/java/com/android/server/storage/
H A DDeviceStorageMonitorService.java166 check();
187 private void check() { method in class:DeviceStorageMonitorService
249 // Loop around to check again in future; we don't remove messages since
/frameworks/base/services/core/jni/
H A Dcom_android_server_connectivity_Vpn.cpp212 ALOGE("Cannot check %s: %s", name, strerror(errno));
328 static jint check(JNIEnv *env, jobject /* thiz */, jstring jName) function in namespace:android
359 {"jniCheck", "(Ljava/lang/String;)I", (void *)check},
/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java77 public TestableContext(Context base, LeakCheck check) { argument
84 mReceiver = check != null ? check.getTracker("receiver") : null;
85 mService = check != null ? check.getTracker("service") : null;
86 mComponent = check != null ? check.getTracker("component") : null;
/frameworks/wilhelm/tests/sandbox/
H A Dmultiplay.c84 #define check(result) check2(result, __LINE__) macro
99 check(result);
102 check(result);
151 check(result);
153 check(result);
156 check(result);
163 check(result);
165 check(result);
169 check(result);
172 check(resul
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
H A DDozeTriggers.java190 // skip proximity check
215 }.check();
256 public void check() { method in class:DozeTriggers.ProximityCheck
/frameworks/support/emoji/core/src/android/support/text/emoji/
H A DEmojiProcessor.java112 final int action = sm.check(codePoint);
204 final int action = sm.check(codePoint);
237 // Need to check if it is in such a state.
497 int check(final int codePoint) { method in class:EmojiProcessor.ProcessorSm
585 * @param codePoint CodePoint to check
594 * @param codePoint CodePoint to check
743 * TextPaint used during {@link PaintCompat#hasGlyph(android.graphics.Paint, String)} check.
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
H A DDiffUtilTest.java94 check();
101 check();
123 check();
132 check();
142 check();
152 check();
160 check();
169 check();
178 check();
186 check();
315 private void check() { method in class:DiffUtilTest
[all...]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFilter.java43 public synchronized boolean check(int state) { method in class:Filter.State
97 * Before instantiating a filter, check if it is available by using this method.
99 * This method uses the shared FilterFactory to check whether the filter class is available.
274 return mState.check(State.STATE_OPEN);
395 return (mIsActive && !mState.check(State.STATE_CLOSED));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSmsUsageMonitor.java364 public boolean check(String appName, int smsWaiting) { method in class:SmsUsageMonitor
401 if (DBG) Rlog.e(TAG, "check disabled");
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpn.java500 // We can't just check that packageName matches mPackage, because if the app was uninstalled
501 // and reinstalled it will no longer be prepared. Instead check the UID.
850 // Returns true if the VPN has been established and the calling UID is its owner. Used to check
1123 mLegacyVpnRunner.check(interfaze);
1340 * permission check only when the caller is trusted (or the call is initiated by the system).
1353 * Like {@link #startLegacyVpn(VpnProfile, KeyStore, LinkProperties)}, but does not check
1579 // we will leave the VPN up. We should check that it's still there/connected after
1599 public void check(String interfaze) { method in class:Vpn.LegacyVpnRunner

Completed in 1656 milliseconds

12