/external/openfst/src/test/ |
D | weight-tester.h | 42 Weight w1 = weight_generator_(); variable 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, Weight w2, Weight w3) { in TestSemiring() argument 68 CHECK(Plus(w1, w2).Member()); in TestSemiring() [all …]
|
/external/openfst/src/include/fst/ |
D | float-weight.h | 113 inline bool operator==(const FloatWeightTpl<T> &w1, 117 volatile T v1 = w1.Value(); 122 inline bool operator==(const FloatWeightTpl<double> &w1, 124 return operator==<double>(w1, w2); 127 inline bool operator==(const FloatWeightTpl<float> &w1, 129 return operator==<float>(w1, w2); 133 inline bool operator!=(const FloatWeightTpl<T> &w1, 135 return !(w1 == w2); 138 inline bool operator!=(const FloatWeightTpl<double> &w1, 140 return operator!=<double>(w1, w2); [all …]
|
D | string-weight.h | 296 inline bool operator==(const StringWeight<L, S> &w1, 298 if (w1.Size() != w2.Size()) 301 StringWeightIterator<L, S> iter1(w1); 312 inline bool operator!=(const StringWeight<L, S> &w1, 314 return !(w1 == w2); 318 inline bool ApproxEqual(const StringWeight<L, S> &w1, 321 return w1 == w2; 370 Plus(const StringWeight<L, S> &w1, in Plus() argument 372 if (!w1.Member() || !w2.Member()) in Plus() 374 if (w1 == StringWeight<L, S>::Zero()) in Plus() [all …]
|
D | signed-log-weight.h | 108 inline SignedLogWeightTpl<T> Plus(const SignedLogWeightTpl<T> &w1, in Plus() argument 110 if (!w1.Member() || !w2.Member()) in Plus() 112 bool s1 = w1.Value1().Value() > 0.0; in Plus() 114 T f1 = w1.Value2().Value(); in Plus() 119 return w1; in Plus() 122 return SignedLogWeightTpl<T>(w1.Value1(), (f2 - log(2.0F))); in Plus() 128 w1.Value1(), (f2 - log(1.0F + exp(f2 - f1)))); in Plus() 139 w1.Value1(), (f1 - log(1.0F - exp(f1 - f2)))); in Plus() 145 inline SignedLogWeightTpl<T> Minus(const SignedLogWeightTpl<T> &w1, in Minus() argument 148 return Plus(w1, minus_w2); in Minus() [all …]
|
D | sparse-power-weight.h | 150 inline SparsePowerWeight<W, K> Plus(const SparsePowerWeight<W, K> &w1, in Plus() argument 154 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); in Plus() 160 inline SparsePowerWeight<W, K> Times(const SparsePowerWeight<W, K> &w1, in Times() argument 164 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); in Times() 170 inline SparsePowerWeight<W, K> Divide(const SparsePowerWeight<W, K> &w1, 175 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); 181 inline const W& DotProduct(const SparsePowerWeight<W, K> &w1, in DotProduct() argument 183 const SparsePowerWeight<W, K>& product = Times(w1, w2); in DotProduct() 192 inline bool ApproxEqual(const SparsePowerWeight<W, K> &w1, 197 SparseTupleWeightMap(&ret, w1, w2, operator_mapper); [all …]
|
/external/chromium_org/ash/wm/ |
D | toplevel_window_event_handler_unittest.cc | 68 aura::Window* w1 = new aura::Window(d1); in CreateWindow() local 69 w1->SetType(aura::client::WINDOW_TYPE_NORMAL); in CreateWindow() 70 w1->set_id(1); in CreateWindow() 71 w1->Init(ui::LAYER_TEXTURED); in CreateWindow() 75 parent->AddChild(w1); in CreateWindow() 76 w1->SetBounds(gfx::Rect(0, 0, 100, 100)); in CreateWindow() 77 w1->Show(); in CreateWindow() 78 return w1; in CreateWindow() 100 scoped_ptr<aura::Window> w1(CreateWindow(HTCAPTION)); in TEST_F() local 101 gfx::Size size = w1->bounds().size(); in TEST_F() [all …]
|
D | workspace_controller_unittest.cc | 144 scoped_ptr<Window> w1(CreateTestWindow()); in TEST_F() local 145 w1->SetBounds(gfx::Rect(0, 0, 250, 251)); in TEST_F() 147 wm::WindowState* window_state = wm::GetWindowState(w1.get()); in TEST_F() 151 w1->Show(); in TEST_F() 155 ASSERT_TRUE(w1->layer() != NULL); in TEST_F() 156 EXPECT_TRUE(w1->layer()->visible()); in TEST_F() 158 EXPECT_EQ("0,0 250x251", w1->bounds().ToString()); in TEST_F() 160 EXPECT_EQ(w1.get(), GetDesktop()->children()[0]); in TEST_F() 165 scoped_ptr<Window> w1(CreateTestWindow()); in TEST_F() local 166 w1->SetBounds(gfx::Rect(0, 0, 250, 251)); in TEST_F() [all …]
|
D | solo_window_tracker_unittest.cc | 163 scoped_ptr<aura::Window> w1(CreateWindowInPrimary()); in TEST_F() local 164 w1->Show(); in TEST_F() 167 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); in TEST_F() 178 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); in TEST_F() 185 wm::GetWindowState(w1.get())->Minimize(); in TEST_F() 189 w1.reset(); in TEST_F() 209 scoped_ptr<aura::Window> w1(CreateWindowInPrimary()); in TEST_F() local 210 w1->Show(); in TEST_F() 211 EXPECT_EQ(w1.get(), GetWindowWithSoloHeaderInPrimary()); in TEST_F() 213 DockWindow(w1.get()); in TEST_F() [all …]
|
D | window_modality_controller_unittest.cc | 46 scoped_ptr<aura::Window> w1( in TEST_F() local 53 w1->AddTransientChild(w11.get()); in TEST_F() 54 wm::ActivateWindow(w1.get()); in TEST_F() 55 EXPECT_TRUE(wm::IsActiveWindow(w1.get())); in TEST_F() 60 w1->AddTransientChild(w12.get()); in TEST_F() 68 EXPECT_TRUE(ValidateStacking(w1->parent(), check1, arraysize(check1))); in TEST_F() 70 wm::ActivateWindow(w1.get()); in TEST_F() 75 EXPECT_TRUE(ValidateStacking(w1->parent(), check2, arraysize(check2))); in TEST_F() 80 EXPECT_TRUE(wm::IsActiveWindow(w1.get())); in TEST_F() 91 scoped_ptr<aura::Window> w1( in TEST_F() local [all …]
|
D | window_manager_unittest.cc | 152 scoped_ptr<aura::Window> w1(CreateTestWindowInShell( in TEST_F() local 155 SK_ColorGREEN, -11, gfx::Rect(5, 5, 100, 100), w1.get())); in TEST_F() 161 SK_ColorMAGENTA, -12, gfx::Rect(10, 420, 25, 25), w1.get())); in TEST_F() 175 SK_ColorGRAY, -13, gfx::Rect(5, 470, 50, 50), w1.get())); in TEST_F() 231 aura::client::SetActivationDelegate(w1.get(), &activation_delegate); in TEST_F() 242 aura::client::SetActivationDelegate(w1.get(), NULL); in TEST_F() 247 aura::client::SetActivationDelegate(w1.get(), &activation_delegate); in TEST_F() 262 scoped_ptr<aura::Window> w1(CreateTestWindowInShellWithDelegate( in TEST_F() local 264 d1.SetWindow(w1.get()); in TEST_F() 271 aura::client::GetFocusClient(w1.get()); in TEST_F() [all …]
|
D | stacking_controller_unittest.cc | 50 scoped_ptr<Window> w1(CreateTestWindow()); in TEST_F() local 51 w2->AddTransientChild(w1.get()); in TEST_F() 52 w1->SetBounds(gfx::Rect(10, 11, 250, 251)); in TEST_F() 53 ParentWindowInPrimaryRootWindow(w1.get()); in TEST_F() 54 w1->Show(); in TEST_F() 55 wm::ActivateWindow(w1.get()); in TEST_F() 59 EXPECT_EQ(launcher, w1->parent()); in TEST_F()
|
/external/chromium_org/ash/wm/dock/ |
D | docked_window_resizer_unittest.cc | 497 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); in TEST_P() local 499 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); in TEST_P() 503 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), in TEST_P() 504 w1->GetBoundsInScreen().right()); in TEST_P() 505 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); in TEST_P() 520 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), in TEST_P() 521 w1->GetBoundsInScreen().right()); in TEST_P() 522 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); in TEST_P() 535 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); in TEST_P() local 536 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); in TEST_P() [all …]
|
D | docked_window_layout_manager_unittest.cc | 405 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); in TEST_P() local 407 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); in TEST_P() 411 EXPECT_EQ(w1->GetRootWindow()->bounds().right(), in TEST_P() 412 w1->GetBoundsInScreen().right()); in TEST_P() 413 EXPECT_EQ(internal::kShellWindowId_DockedContainer, w1->parent()->id()); in TEST_P() 420 Shell::GetScreen()->GetDisplayNearestWindow(w1.get()).work_area(); in TEST_P() 421 int gap1 = w1->GetBoundsInScreen().y(); in TEST_P() 422 int gap2 = w2->GetBoundsInScreen().y() - w1->GetBoundsInScreen().bottom(); in TEST_P() 434 scoped_ptr<aura::Window> w1(CreateTestWindow(gfx::Rect(0, 0, 201, 201))); in TEST_P() local 436 DragToVerticalPositionAndToEdge(DOCKED_EDGE_RIGHT, w1.get(), 20); in TEST_P() [all …]
|
/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
D | float-weight.h | 68 inline bool operator==(const FloatWeight &w1, const FloatWeight &w2) { 71 volatile float v1 = w1.Value(); 76 inline bool operator!=(const FloatWeight &w1, const FloatWeight &w2) { 77 return !(w1 == w2); 80 inline bool ApproxEqual(const FloatWeight &w1, const FloatWeight &w2, 82 return w1.Value() <= w2.Value() + delta && w2.Value() <= w1.Value() + delta; 152 inline TropicalWeight Plus(const TropicalWeight &w1, in Plus() argument 154 return w1.Value() < w2.Value() ? w1 : w2; in Plus() 157 inline TropicalWeight Times(const TropicalWeight &w1, in Times() argument 159 float f1 = w1.Value(), f2 = w2.Value(); in Times() [all …]
|
D | string-weight.h | 288 inline bool operator==(const StringWeight<L, S> &w1, 290 if (w1.Size() != w2.Size()) 293 StringWeightIterator<L, S> iter1(w1); 304 inline bool operator!=(const StringWeight<L, S> &w1, 306 return !(w1 == w2); 310 inline bool ApproxEqual(const StringWeight<L, S> &w1, 313 return w1 == w2; 362 Plus(const StringWeight<L, S> &w1, in Plus() argument 364 if (w1 == StringWeight<L, S>::Zero()) in Plus() 367 return w1; in Plus() [all …]
|
/external/dropbear/libtommath/ |
D | bn_mp_toom_sqr.c | 22 mp_int w0, w1, w2, w3, w4, tmp1, a0, a1, a2; in mp_toom_sqr() local 26 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, &a0, &a1, &a2, &tmp1, NULL)) != MP_OKAY) { in mp_toom_sqr() 73 if ((res = mp_sqr(&tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr() 119 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_sqr() 127 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { in mp_toom_sqr() 142 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_sqr() 153 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_sqr() 167 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_sqr() 174 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_sqr() 182 if ((res = mp_div_3(&w1, &w1, NULL)) != MP_OKAY) { in mp_toom_sqr() [all …]
|
D | bn_mp_toom_mul.c | 27 mp_int w0, w1, w2, w3, w4, tmp1, tmp2, a0, a1, a2, b0, b1, b2; in mp_toom_mul() local 31 if ((res = mp_init_multi(&w0, &w1, &w2, &w3, &w4, in mp_toom_mul() 109 if ((res = mp_mul(&tmp1, &tmp2, &w1)) != MP_OKAY) { in mp_toom_mul() 175 if ((res = mp_sub(&w1, &w4, &w1)) != MP_OKAY) { in mp_toom_mul() 183 if ((res = mp_div_2(&w1, &w1)) != MP_OKAY) { in mp_toom_mul() 198 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_mul() 209 if ((res = mp_sub(&w1, &tmp1, &w1)) != MP_OKAY) { in mp_toom_mul() 223 if ((res = mp_sub(&w2, &w1, &w2)) != MP_OKAY) { in mp_toom_mul() 230 if ((res = mp_sub(&w1, &w2, &w1)) != MP_OKAY) { in mp_toom_mul() 238 if ((res = mp_div_3(&w1, &w1, NULL)) != MP_OKAY) { in mp_toom_mul() [all …]
|
/external/chromium_org/ui/aura/ |
D | window_unittest.cc | 258 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window())); in TEST_F() local 259 scoped_ptr<Window> w11(CreateTestWindowWithId(11, w1.get())); in TEST_F() 261 scoped_ptr<Window> w12(CreateTestWindowWithId(12, w1.get())); in TEST_F() 263 EXPECT_EQ(NULL, w1->GetChildById(57)); in TEST_F() 264 EXPECT_EQ(w12.get(), w1->GetChildById(12)); in TEST_F() 265 EXPECT_EQ(w111.get(), w1->GetChildById(111)); in TEST_F() 315 scoped_ptr<Window> w1(CreateTestWindowWithId(1, root_window())); in TEST_F() local 318 Window::ConvertPointToTarget(NULL, w1.get(), &test_point); in TEST_F() 323 scoped_ptr<Window> w1( in TEST_F() local 327 CreateTestWindow(SK_ColorGREEN, 11, gfx::Rect(5, 5, 100, 100), w1.get())); in TEST_F() [all …]
|
/external/dropbear/libtomcrypt/src/ciphers/ |
D | skipjack.c | 91 tmp = g_func(w1, &kp, skey->skipjack.key); \ 92 w1 = tmp ^ w4 ^ x; \ 97 tmp = g_func(w1, &kp, skey->skipjack.key); \ 99 w3 = w1 ^ w2 ^ x; \ 100 w1 = tmp1; w2 = tmp; 103 tmp = w1 ^ w2 ^ x; \ 104 w1 = ig_func(w2, &kp, skey->skipjack.key); \ 110 w3 = w4; w4 = w1; w1 = tmp; 149 unsigned w1,w2,w3,w4,tmp,tmp1; in _skipjack_ecb_encrypt() local 157 w1 = ((unsigned)pt[0]<<8)|pt[1]; in _skipjack_ecb_encrypt() [all …]
|
/external/chromium_org/ash/wm/panels/ |
D | panel_layout_manager_unittest.cc | 360 scoped_ptr<aura::Window> w1(CreatePanelWindow(odd_bounds)); in TEST_F() local 361 EXPECT_NO_FATAL_FAILURE(IsPanelAboveLauncherIcon(w1.get())); in TEST_F() 364 EXPECT_NO_FATAL_FAILURE(IsPanelAboveLauncherIcon(w1.get())); in TEST_F() 368 EXPECT_NO_FATAL_FAILURE(IsPanelAboveLauncherIcon(w1.get())); in TEST_F() 375 scoped_ptr<aura::Window> w1(CreatePanelWindow(bounds)); in TEST_F() local 381 EXPECT_TRUE(WindowIsAbove(w2.get(), w1.get())); in TEST_F() 384 wm::ActivateWindow(w1.get()); in TEST_F() 386 EXPECT_TRUE(WindowIsAbove(w1.get(), w2.get())); in TEST_F() 391 EXPECT_TRUE(WindowIsAbove(w1.get(), w3.get())); in TEST_F() 393 EXPECT_TRUE(WindowIsAbove(w2.get(), w1.get())); in TEST_F() [all …]
|
/external/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/ |
D | SpdyReader.java | 90 int w1; in nextFrame() local 92 w1 = in.readInt(); in nextFrame() 98 boolean control = (w1 & 0x80000000) != 0; in nextFrame() 103 int version = (w1 & 0x7fff0000) >>> 16; in nextFrame() 104 int type = (w1 & 0xffff); in nextFrame() 156 int streamId = w1 & 0x7fffffff; in nextFrame() 163 int w1 = in.readInt(); in readSynStream() local 166 int streamId = w1 & 0x7fffffff; in readSynStream() 175 int w1 = in.readInt(); in readSynReply() local 176 int streamId = w1 & 0x7fffffff; in readSynReply() [all …]
|
/external/chromium_org/net/websockets/ |
D | websocket_throttle_test.cc | 74 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local 76 new SocketStream(GURL("ws://host1/"), w1.get())); in TEST_F() 78 w1->InitSocketStream(s1.get()); in TEST_F() 84 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1.get(), callback_s1.callback())); in TEST_F() 197 w1->OnReceivedData(s1.get(), kHeader, sizeof(kHeader) - 1); in TEST_F() 213 w1->OnReceivedData(s1.get(), kHeader2, sizeof(kHeader2) - 1); in TEST_F() 216 EXPECT_EQ(WebSocketJob::OPEN, w1->state()); in TEST_F() 228 w1->OnClose(s1.get()); in TEST_F() 290 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local 292 new SocketStream(GURL("ws://localhost/"), w1.get())); in TEST_F() [all …]
|
/external/chromium_org/ui/views/corewm/ |
D | window_util_unittest.cc | 65 views::Widget* w1 = CreateControlWidget(root_window(), in TEST_F() local 67 w1->GetNativeView()->layer()->set_name("w1"); in TEST_F() 75 w1->GetRootView()->AddChildView(CreateViewWithLayer( in TEST_F() 77 w1->GetRootView()->AddChildView(v2); in TEST_F() 81 w1->GetRootView()->AddChildView(w2_host_view); in TEST_F() 82 w1->GetRootView()->AddChildView(CreateViewWithLayer( in TEST_F() 85 views::Widget* w2 = CreateControlWidget(w1->GetNativeView(), in TEST_F() 95 ui::Layer* w1_layer = w1->GetNativeView()->layer(); in TEST_F() 103 w1_layer = views::corewm::RecreateWindowLayers(w1->GetNativeView(), false); in TEST_F()
|
D | capture_controller_unittest.cc | 100 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); in TEST_F() local 108 EXPECT_EQ(w1.get(), dispatcher()->mouse_pressed_handler()); in TEST_F() 125 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); in TEST_F() local 126 w1->SetCapture(); in TEST_F() 128 EXPECT_EQ(w1.get(), GetCaptureWindow()); in TEST_F() 129 EXPECT_EQ(w1.get(), GetSecondCaptureWindow()); in TEST_F() 143 scoped_ptr<aura::Window> w1(CreateNormalWindow(1, root_window(), NULL)); in TEST_F() local 146 w1->SetCapture(); in TEST_F() 148 EXPECT_EQ(w1.get(), GetCaptureWindow()); in TEST_F() 149 EXPECT_EQ(w1.get(), GetSecondCaptureWindow()); in TEST_F()
|
/external/chromium/net/websockets/ |
D | websocket_throttle_unittest.cc | 86 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local 88 new SocketStream(GURL("ws://host1/"), w1.get())); in TEST_F() 89 w1->InitSocketStream(s1.get()); in TEST_F() 96 EXPECT_EQ(OK, w1->OnStartOpenConnection(s1, &callback_s1)); in TEST_F() 199 w1->OnReceivedData(s1.get(), kHeader, sizeof(kHeader) - 1); in TEST_F() 215 w1->OnReceivedData(s1.get(), kHeader2, sizeof(kHeader2) - 1); in TEST_F() 218 EXPECT_EQ(WebSocketJob::OPEN, w1->state()); in TEST_F() 230 w1->OnClose(s1.get()); in TEST_F() 289 scoped_refptr<WebSocketJob> w1(new WebSocketJob(&delegate)); in TEST_F() local 291 new SocketStream(GURL("ws://localhost/"), w1.get())); in TEST_F() [all …]
|