/external/openfst/src/test/ |
H A D | weight-tester.h | 42 Weight w1 = weight_generator_(); local 47 VLOG(1) << "w1 = " << w1; 51 TestSemiring(w1, w2, w3); 53 TestDivision(w1, w2); 54 TestReverse(w1, w2); 55 TestEquality(w1, w2, w3); 56 TestIO(w1); 57 TestCopy(w1); 66 void TestSemiring(Weight w1, Weigh argument 77 CHECK(Plus(Weight::Zero(), w1) == w1); local 79 CHECK(Times(Weight::One(), w1) == w1); local 129 TestDivision(Weight w1, Weight w2) argument 156 TestReverse(Weight w1, Weight w2) argument 168 TestEquality(Weight w1, Weight w2, Weight w3) argument [all...] |
/external/openfst/src/include/fst/ |
H A D | float-weight.h | 113 inline bool operator==(const FloatWeightTpl<T> &w1, argument 117 volatile T v1 = w1.Value(); 122 inline bool operator==(const FloatWeightTpl<double> &w1, argument 124 return operator==<double>(w1, w2); 127 inline bool operator==(const FloatWeightTpl<float> &w1, argument 129 return operator==<float>(w1, w2); 133 inline bool operator!=(const FloatWeightTpl<T> &w1, argument 135 return !(w1 == w2); 138 inline bool operator!=(const FloatWeightTpl<double> &w1, argument 140 return operator!=<double>(w1, w 143 operator !=(const FloatWeightTpl<float> &w1, const FloatWeightTpl<float> &w2) argument 149 ApproxEqual(const FloatWeightTpl<T> &w1, const FloatWeightTpl<T> &w2, float delta = kDelta) argument 242 Plus(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 249 Plus(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 254 Plus(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 260 Times(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2) argument 273 Times(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2) argument 278 Times(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2) argument 284 Divide(const TropicalWeightTpl<T> &w1, const TropicalWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 298 Divide(const TropicalWeightTpl<float> &w1, const TropicalWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 304 Divide(const TropicalWeightTpl<double> &w1, const TropicalWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 371 Plus(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 384 Plus(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 389 Plus(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 395 Times(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2) argument 408 Times(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2) argument 413 Times(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2) argument 419 Divide(const LogWeightTpl<T> &w1, const LogWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 433 Divide(const LogWeightTpl<float> &w1, const LogWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 439 Divide(const LogWeightTpl<double> &w1, const LogWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument 503 Plus( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 510 Plus( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 515 Plus( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 522 Times( const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2) argument 529 Times( const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2) argument 534 Times( const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2) argument 541 Divide(const MinMaxWeightTpl<T> &w1, const MinMaxWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 550 Divide(const MinMaxWeightTpl<float> &w1, const MinMaxWeightTpl<float> &w2, DivideType typ = DIVIDE_ANY) argument 556 Divide(const MinMaxWeightTpl<double> &w1, const MinMaxWeightTpl<double> &w2, DivideType typ = DIVIDE_ANY) argument [all...] |
H A D | weight.h | 142 bool operator()(const W &w1, const W &w2) const { argument 143 return (Plus(w1, w2) == w1) && w1 != w2; 164 W2 operator()(W1 w1) const {
|
H A D | string-weight.h | 296 inline bool operator==(const StringWeight<L, S> &w1, argument 298 if (w1.Size() != w2.Size()) 301 StringWeightIterator<L, S> iter1(w1); 312 inline bool operator!=(const StringWeight<L, S> &w1, argument 314 return !(w1 == w2); 318 inline bool ApproxEqual(const StringWeight<L, S> &w1, argument 321 return w1 == w2; 370 Plus(const StringWeight<L, S> &w1, argument 372 if (!w1.Member() || !w2.Member()) 374 if (w1 393 Plus(const StringWeight<L, STRING_LEFT> &w1, const StringWeight<L, STRING_LEFT> &w2) argument 414 Plus(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2) argument 434 Times(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 452 Divide(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, DivideType typ) argument 482 Divide(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2, DivideType typ) argument 512 Divide(const StringWeight<L, STRING_RIGHT_RESTRICT> &w1, const StringWeight<L, STRING_RIGHT_RESTRICT> &w2, DivideType typ) argument 548 GallicWeight(StringWeight<L, S> w1, W w2) argument [all...] |
H A D | sparse-power-weight.h | 150 inline SparsePowerWeight<W, K> Plus(const SparsePowerWeight<W, K> &w1, argument 154 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 160 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, argument 164 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 170 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1, argument 175 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 181 inline const W& DotProduct(const SparsePowerWeight<W, K> &w1, argument 183 const SparsePowerWeight<W, K>& product = Times(w1, w2); 192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1, argument 197 SparseTupleWeightMap(&ret, w1, w 209 Times(const SparsePowerWeight<W, K> &w1, const W &k) argument 216 Divide(const SparsePowerWeight<W, K> &w1, const W &k, DivideType divide_type = DIVIDE_ANY) argument [all...] |
H A D | signed-log-weight.h | 108 inline SignedLogWeightTpl<T> Plus(const SignedLogWeightTpl<T> &w1, argument 110 if (!w1.Member() || !w2.Member()) 112 bool s1 = w1.Value1().Value() > 0.0; 114 T f1 = w1.Value2().Value(); 119 return w1; 122 return SignedLogWeightTpl<T>(w1.Value1(), (f2 - log(2.0F))); 128 w1.Value1(), (f2 - log(1.0F + exp(f2 - f1)))); 139 w1.Value1(), (f1 - log(1.0F - exp(f1 - f2)))); 145 inline SignedLogWeightTpl<T> Minus(const SignedLogWeightTpl<T> &w1, argument 148 return Plus(w1, minus_w 152 Times(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument 167 Divide(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2, DivideType typ = DIVIDE_ANY) argument 189 ApproxEqual(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2, float delta = kDelta) argument 203 operator ==(const SignedLogWeightTpl<T> &w1, const SignedLogWeightTpl<T> &w2) argument [all...] |
/external/chromium_org/ash/wm/ |
H A D | stacking_controller_unittest.cc | 50 scoped_ptr<Window> w1(CreateTestWindow()); 51 w2->AddTransientChild(w1.get()); 52 w1->SetBounds(gfx::Rect(10, 11, 250, 251)); 53 ParentWindowInPrimaryRootWindow(w1.get()); 54 w1->Show(); 55 wm::ActivateWindow(w1.get()); 59 EXPECT_EQ(launcher, w1->parent());
|
H A D | toplevel_window_event_handler_unittest.cc | 68 aura::Window* w1 = new aura::Window(d1); local 69 w1->SetType(aura::client::WINDOW_TYPE_NORMAL); 70 w1->set_id(1); 71 w1->Init(ui::LAYER_TEXTURED); 75 parent->AddChild(w1); 76 w1->SetBounds(gfx::Rect(0, 0, 100, 100)); 77 w1->Show(); 78 return w1; 100 scoped_ptr<aura::Window> w1(CreateWindow(HTCAPTION)); 101 gfx::Size size = w1 [all...] |
H A D | workspace_controller_unittest.cc | 144 scoped_ptr<Window> w1(CreateTestWindow()); 145 w1->SetBounds(gfx::Rect(0, 0, 250, 251)); 147 wm::WindowState* window_state = wm::GetWindowState(w1.get()); 151 w1->Show(); 155 ASSERT_TRUE(w1->layer() != NULL); 156 EXPECT_TRUE(w1->layer()->visible()); 158 EXPECT_EQ("0,0 250x251", w1->bounds().ToString()); 160 EXPECT_EQ(w1.get(), GetDesktop()->children()[0]); 165 scoped_ptr<Window> w1(CreateTestWindow()); 166 w1 [all...] |
H A D | solo_window_tracker_unittest.cc | 163 scoped_ptr<aura::Window> w1(CreateWindowInPrimary()); 164 w1->Show(); 167 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); 178 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); 185 wm::GetWindowState(w1.get())->Minimize(); 189 w1.reset(); 209 scoped_ptr<aura::Window> w1(CreateWindowInPrimary()); 210 w1->Show(); 211 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); 213 DockWindow(w1 [all...] |
H A D | mru_window_tracker_unittest.cc | 37 scoped_ptr<aura::Window> w1(CreateWindow()); 42 wm::ActivateWindow(w1.get()); 46 EXPECT_EQ(w1.get(), window_list[0]); 54 scoped_ptr<aura::Window> w1(CreateWindow()); 65 wm::ActivateWindow(w1.get()); 67 wm::GetWindowState(w1.get())->Minimize(); 78 EXPECT_EQ(w1.get(), window_list[3]);
|
/external/chromium_org/ash/wm/dock/ |
H A D | docked_window_resizer_unittest.cc | 497 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); 499 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); 503 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), 504 w1->GetBoundsInScreen().right()); 505 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); 520 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), 521 w1->GetBoundsInScreen().right()); 522 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); 535 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); 536 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1 [all...] |
H A D | docked_window_layout_manager_unittest.cc | 405 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); 407 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); 411 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), 412 w1->GetBoundsInScreen().right()); 413 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); 420 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area(); 421 int gap1 = w1->GetBoundsInScreen().y(); 422 int gap2 = w2->GetBoundsInScreen().y() - w1->GetBoundsInScreen().bottom(); 434 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); 436 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1 [all...] |
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | weight.h | 132 bool operator()(const W &w1, const W &w2) const { argument 133 return (Plus(w1, w2) == w1) && w1 != w2;
|
H A D | float-weight.h | 68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) { argument 71 volatile float v1 = w1.Value(); 76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) { argument 77 return !(w1 == w2); 80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2, argument 82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta; 152 inline TropicalWeight Plus(const TropicalWeight &w1, argument 154 return w1.Value() < w2.Value() ? w1 157 Times(const TropicalWeight &w1, const TropicalWeight &w2) argument 168 Divide(const TropicalWeight &w1, const TropicalWeight &w2, DivideType typ = DIVIDE_ANY) argument 219 Plus(const LogWeight &w1, const LogWeight &w2) argument 231 Times(const LogWeight &w1, const LogWeight &w2) argument 241 Divide(const LogWeight &w1, const LogWeight &w2, DivideType typ = DIVIDE_ANY) argument [all...] |
H A D | string-weight.h | 288 inline bool operator==(const StringWeight<L, S> &w1, argument 290 if (w1.Size() != w2.Size()) 293 StringWeightIterator<L, S> iter1(w1); 304 inline bool operator!=(const StringWeight<L, S> &w1, argument 306 return !(w1 == w2); 310 inline bool ApproxEqual(const StringWeight<L, S> &w1, argument 313 return w1 == w2; 362 Plus(const StringWeight<L, S> &w1, argument 364 if (w1 == StringWeight<L, S>::Zero()) 367 return w1; 379 Plus(const StringWeight<L, STRING_LEFT> &w1, const StringWeight<L, STRING_LEFT> &w2) argument 398 Plus(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2) argument 416 Times(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2) argument 432 Divide(const StringWeight<L, S> &w1, const StringWeight<L, S> &w2, DivideType typ) argument 457 Divide(const StringWeight<L, STRING_RIGHT> &w1, const StringWeight<L, STRING_RIGHT> &w2, DivideType typ) argument 482 Divide(const StringWeight<L, STRING_RIGHT_RESTRICT> &w1, const StringWeight<L, STRING_RIGHT_RESTRICT> &w2, DivideType typ) argument 513 GallicWeight(StringWeight<L, S> w1, W w2) argument [all...] |
/external/chromium_org/ui/views/corewm/ |
H A D | window_util_unittest.cc | 55 // w1 65 views::Widget* w1 = CreateControlWidget(root_window(), local 67 w1->GetNativeView()->layer()->set_name("w1"); 75 w1->GetRootView()->AddChildView(CreateViewWithLayer( 77 w1->GetRootView()->AddChildView(v2); 81 w1->GetRootView()->AddChildView(w2_host_view); 82 w1->GetRootView()->AddChildView(CreateViewWithLayer( 85 views::Widget* w2 = CreateControlWidget(w1->GetNativeView(), 95 ui::Layer* w1_layer = w1 [all...] |
H A D | capture_controller_unittest.cc | 100 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); 103 // dispatch further mouse events to |w1|. 108 EXPECT_EQ(w1.get(), dispatcher()->mouse_pressed_handler()); 125 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); 126 w1->SetCapture(); 128 EXPECT_EQ(w1.get(), GetCaptureWindow()); 129 EXPECT_EQ(w1.get(), GetSecondCaptureWindow()); 143 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); 146 w1->SetCapture(); 148 EXPECT_EQ(w1 [all...] |
/external/chromium_org/ash/test/ |
H A D | ash_test_helper_unittest.cc | 49 scoped_ptr<Widget> w1(new Widget); 53 w1->Init(params); 54 w1->Show(); 55 EXPECT_TRUE(w1->IsActive()); 56 EXPECT_TRUE(w1->IsVisible());
|
/external/dropbear/libtommath/ |
H A D | bn_mp_toom_mul.c | 27 mp_int w0, w1, w2, w3, w4, tmp1, tmp2, a0, a1, a2, b0, b1, b2; local 31 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, 82 /* w1 = (a2 + 2(a1 + 2a0))(b2 + 2(b1 + 2b0)) */ 109 if ((res = mp_mul(&tmp1, &tmp2, &w1)) != MP_OKAY) { 175 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { 183 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { 198 if ((res = mp_sub(&w1, &w2, &w1)) ! [all...] |
H A D | bn_mp_toom_sqr.c | 22 mp_int w0, w1, w2, w3, w4, tmp1, a0, a1, a2; local 26 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, &a0, &a1, &a2, &tmp1, NULL)) != MP_OKAY) { 59 /* w1 = (a2 + 2(a1 + 2a0))**2 */ 73 if ((res = mp_sqr(&tmp1, &w1)) != MP_OKAY) { 119 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { 127 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { 142 if ((res = mp_sub(&w1, &w2, &w1)) ! [all...] |
/external/chromium_org/net/websockets/ |
H A D | websocket_throttle_test.cc | 74 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); 76 new SocketStream(GURL("ws://host1/"), w1.get())); 78 w1->InitSocketStream(s1.get()); 84 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1.get(), callback_s1.callback())); 88 // 1.2.3.4 | w1 89 // 1.2.3.5 | w1 90 // 1.2.3.6 | w1 104 // Trying to open connection to host2 will wait for w1. 109 // 1.2.3.4 | w1 w2 110 // 1.2.3.5 | w1 [all...] |
/external/chromium_org/ui/aura/ |
H A D | window_unittest.cc | 258 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window())); 259 scoped_ptr<Window> w11(CreateTestWindowWithId(11, w1.get())); 261 scoped_ptr<Window> w12(CreateTestWindowWithId(12, w1.get())); 263 EXPECT_EQ(NULL, w1->GetChildById(57)); 264 EXPECT_EQ(w12.get(), w1->GetChildById(12)); 265 EXPECT_EQ(w111.get(), w1->GetChildById(111)); 315 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window())); 318 Window::ConvertPointToTarget(NULL, w1.get(), &test_point); 323 scoped_ptr<Window> w1( 327 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1 [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
H A D | SpdyReader.java | 90 int w1; 92 w1 = in.readInt(); 98 boolean control = (w1 & 0x80000000) != 0; 103 int version = (w1 & 0x7fff0000) >>> 16; 104 int type = (w1 & 0xffff); 156 int streamId = w1 & 0x7fffffff; 163 int w1 = in.readInt(); 166 int streamId = w1 & 0x7fffffff; 175 int w1 = in.readInt(); 176 int streamId = w1 [all...] |
/external/chromium/net/websockets/ |
H A D | websocket_throttle_unittest.cc | 86 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); 88 new SocketStream(GURL("ws://host1/"), w1.get())); 89 w1->InitSocketStream(s1.get()); 96 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1, &callback_s1)); 100 // 1.2.3.4 | w1 101 // 1.2.3.5 | w1 102 // 1.2.3.6 | w1 115 // Trying to open connection to host2 will wait for w1. 119 // 1.2.3.4 | w1 w2 120 // 1.2.3.5 | w1 [all...] |