/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
CameraUnitTest.java | 19 import com.android.camera.Util; 29 int h = Util.ORIENTATION_HYSTERESIS; 30 assertEquals(0, Util.roundOrientation(0, 0)); 31 assertEquals(0, Util.roundOrientation(359, 0)); 32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); 33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); 34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); 35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); 37 assertEquals(90, Util.roundOrientation(90, 90)); 38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)) [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/unittest/ |
CameraUnitTest.java | 19 import com.android.camera.Util; 29 int h = Util.ORIENTATION_HYSTERESIS; 30 assertEquals(0, Util.roundOrientation(0, 0)); 31 assertEquals(0, Util.roundOrientation(359, 0)); 32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); 33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); 34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); 35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); 37 assertEquals(90, Util.roundOrientation(90, 90)); 38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)) [all...] |
/packages/apps/Gallery2/tests_camera/src/com/android/camera/unittest/ |
CameraUnitTest.java | 19 import com.android.camera.Util; 29 int h = Util.ORIENTATION_HYSTERESIS; 30 assertEquals(0, Util.roundOrientation(0, 0)); 31 assertEquals(0, Util.roundOrientation(359, 0)); 32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); 33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); 34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); 35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); 37 assertEquals(90, Util.roundOrientation(90, 90)); 38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)) [all...] |
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
CameraTest.java | 21 import com.android.camera.Util; 33 int h = Util.ORIENTATION_HYSTERESIS; 34 assertEquals(0, Util.roundOrientation(0, 0)); 35 assertEquals(0, Util.roundOrientation(359, 0)); 36 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); 37 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); 38 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); 39 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); 41 assertEquals(90, Util.roundOrientation(90, 90)); 42 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)) [all...] |
/libcore/luni/src/test/java/tests/security/interfaces/ |
RSAPrivateCrtKeyTest.java | 30 key = (RSAPrivateCrtKey) gen.generatePrivate(Util.rsaCrtParam); 39 Util.rsaCrtParam.getCrtCoefficient(), key.getCrtCoefficient()); 48 Util.rsaCrtParam.getPrimeExponentP(), key.getPrimeExponentP()); 57 Util.rsaCrtParam.getPrimeExponentQ(), key.getPrimeExponentQ()); 66 Util.rsaCrtParam.getPrimeP(), key.getPrimeP()); 75 Util.rsaCrtParam.getPrimeQ(), key.getPrimeQ()); 84 Util.rsaCrtParam.getPublicExponent(), key.getPublicExponent());
|
DSAPrivateKeyTest.java | 35 keyGen.initialize(new DSAParameterSpec(Util.P, Util.Q, Util.G),
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
CameraAppImpl.java | 26 Util.initialize(this);
|
/external/apache-harmony/archive/src/test/java-internal/org/apache/harmony/archive/util/ |
UtilTest.java | 18 package org.apache.harmony.archive.util; 49 assertTrue(Util.asciiEndsWithIgnoreCase(s1, s2)); 50 assertTrue(Util.asciiEndsWithIgnoreCase(s2, s1)); 51 assertTrue(Util.asciiEndsWithIgnoreCase(s1, "wxyz")); 57 assertTrue(Util.asciiEqualsIgnoreCase(s1, s2)); 58 assertTrue(Util.asciiEqualsIgnoreCase(s2, s1)); 62 assertTrue(Util.asciiEqualsIgnoreCase(ASCII_ALPHABET_LC_BYTES, 64 assertTrue(Util.asciiEqualsIgnoreCase(ASCII_ALPHABET_LC_BYTES, 66 assertTrue(Util.asciiEqualsIgnoreCase(ASCII_ALPHABET_UC_BYTES,
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
Pair.java | 29 package org.jf.dexlib.Util;
|
AlignmentUtils.java | 29 package org.jf.dexlib.Util;
|
AnnotatedOutput.java | 25 package org.jf.dexlib.Util;
|
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/ |
ResponsivenessTimerDoesntFireEarly_Bundle.cpp | 53 Util::sleep(0.5); 55 WKBundlePostMessage(bundle, Util::toWK("DidBrieflyPause").get(), 0);
|
CanHandleRequest.cpp | 58 WKRetainPtr<WKContextRef> context = adoptWK(Util::createContextForInjectedBundleTest("CanHandleRequestTest")); 61 _WKContextRegisterURLSchemeAsEmptyDocument(context.get(), Util::toWK("emptyscheme").get()); 65 WKPageLoadURL(webView.page(), adoptWK(Util::createURLForResource("simple", "html")).get()); 67 WKContextPostMessageToInjectedBundle(context.get(), Util::toWK("CheckCanHandleRequest").get(), 0); 68 Util::run(&didReceiveMessage);
|
ResponsivenessTimerDoesntFireEarly.cpp | 78 WKRetainPtr<WKContextRef> context = adoptWK(Util::createContextForInjectedBundleTest("ResponsivenessTimerDoesntFireEarlyTest")); 84 WKPageLoadURL(webView.page(), adoptWK(Util::createURLForResource("simple", "html")).get()); 85 Util::run(&didFinishLoad); 87 WKContextPostMessageToInjectedBundle(context.get(), Util::toWK("BrieflyPause").get(), 0); 94 Util::run(&didBrieflyPause);
|
DocumentStartUserScriptAlertCrash.cpp | 50 WKRetainPtr<WKContextRef> context(AdoptWK, Util::createContextForInjectedBundleTest("DocumentStartUserScriptAlertCrashTest", pageGroup.get())); 60 WKRetainPtr<WKURLRef> url(AdoptWK, Util::createURLForResource("simple", "html")); 63 Util::run(&done);
|
ForceRepaint.cpp | 62 WKRetainPtr<WKURLRef> url(AdoptWK, Util::createURLForResource("simple-accelerated-compositing", "html")); 65 Util::run(&test1Done); 66 Util::run(&test2Done);
|
AboutBlankLoad.cpp | 38 TEST_ASSERT(WKStringIsEqualToUTF8CString(Util::MIMETypeForWKURLResponse(response).get(), "text/html")); 57 Util::run(&done);
|
/external/webkit/Tools/TestWebKitAPI/Tests/WebKit2/win/ |
HideFindIndicator.cpp | 66 WKRetainPtr<WKURLRef> url = adoptWK(Util::createURLForResource("find", "html")); 68 Util::run(&didFinishLoad); 71 WKPageFindString(webView.page(), Util::toWK("Hello").get(), kWKFindOptionsShowFindIndicator, 100); 72 Util::run(&findIndicatorCallbackWasCalled); 80 Util::run(&findIndicatorCallbackWasCalled);
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/ |
ByteEncodedValue.java | 31 import org.jf.dexlib.Util.AnnotatedOutput; 32 import org.jf.dexlib.Util.EncodedValueUtils; 33 import org.jf.dexlib.Util.Input;
|
ArrayEncodedValue.java | 32 import org.jf.dexlib.Util.AnnotatedOutput; 33 import org.jf.dexlib.Util.Input;
|
StringEncodedValue.java | 33 import org.jf.dexlib.Util.AnnotatedOutput; 34 import org.jf.dexlib.Util.EncodedValueUtils; 35 import org.jf.dexlib.Util.Input; 36 import org.jf.dexlib.Util.Utf8Utils;
|
/external/openfst/src/include/fst/ |
equivalent.h | 175 typedef EquivalenceUtil<Arc> Util; 176 typedef typename Util::MappedId MappedId; 177 enum { FST1 = 1, FST2 = 2 }; // Required by Util::MapState(...) 179 MappedId s1 = Util::MapState(fst1.Start(), FST1); 180 MappedId s2 = Util::MapState(fst2.Start(), FST2); 183 UnionFind<MappedId> eq_classes(1000, Util::kInvalidId); 204 if (Util::IsFinal(fst1, s1) != Util::IsFinal(fst2, s2)) { 217 MappedId rep1 = Util::FindSet(&eq_classes, s1); 218 MappedId rep2 = Util::FindSet(&eq_classes, s2) [all...] |
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
equivalent.h | 142 typedef EquivalenceUtil<Arc> Util; 143 typedef typename Util::MappedId MappedId; 144 enum { FST1 = 1, FST2 = 2 }; // Required by Util::MapState(...) 146 MappedId s1 = Util::MapState(fst1.Start(), FST1); 147 MappedId s2 = Util::MapState(fst2.Start(), FST2); 150 UnionFind<MappedId> eq_classes(1000, Util::kInvalidId); 157 if (Util::IsFinal(fst1, s1) != Util::IsFinal(fst2, s2)) { 182 MappedId rep1 = Util::FindSet(&eq_classes, s1); 183 MappedId rep2 = Util::FindSet(&eq_classes, s2) [all...] |
/external/smali/baksmali/src/main/java/org/jf/baksmali/Renderers/ |
CharRenderer.java | 31 import org.jf.util.IndentingWriter; 32 import org.jf.dexlib.Util.Utf8Utils;
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Analysis/ |
ValidationException.java | 31 import org.jf.dexlib.Util.ExceptionWithContext;
|