/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/ |
D | DrawerLayoutDoubleTest.java | 39 private CustomDrawerLayout mDrawerLayout; field in DrawerLayoutDoubleTest 54 mDrawerLayout = (CustomDrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp() 55 mStartDrawer = mDrawerLayout.findViewById(R.id.start_drawer); in setUp() 56 mEndDrawer = mDrawerLayout.findViewById(R.id.end_drawer); in setUp() 57 mContentView = mDrawerLayout.findViewById(R.id.content); in setUp() 70 mDrawerLayout.isDrawerOpen(mContentView)); in testQueryOpenStateOfNonExistentDrawer() 79 mDrawerLayout.isDrawerVisible(mContentView)); in testQueryVisibleStateOfNonExistentDrawer() 109 mDrawerLayout.isDrawerOpen(mStartDrawer)); in verifyDrawerOpenClose() 111 mDrawerLayout.isDrawerVisible(mStartDrawer)); in verifyDrawerOpenClose() 113 mDrawerLayout.isDrawerOpen(mEndDrawer)); in verifyDrawerOpenClose() [all …]
|
D | DrawerLayoutTest.java | 44 private CustomDrawerLayout mDrawerLayout; field in DrawerLayoutTest 57 mDrawerLayout = (CustomDrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp() 58 mStartDrawer = mDrawerLayout.findViewById(R.id.start_drawer); in setUp() 59 mContentView = mDrawerLayout.findViewById(R.id.content); in setUp() 70 assertFalse("Initial state", mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI() 74 assertTrue("Opened drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI() 77 assertFalse("Closed drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseViaAPI() 84 assertFalse("Initial state", mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI() 88 assertTrue("Opened drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI() 91 assertFalse("Closed drawer #" + i, mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testDrawerOpenCloseNoAnimationViaAPI() [all …]
|
D | DrawerLayoutActivity.java | 45 private DrawerLayout mDrawerLayout; field in DrawerLayoutActivity 61 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onContentViewSet() 65 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); in onContentViewSet() 70 mDrawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.drawer_title)); in onContentViewSet() 96 mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, in onContentViewSet() 110 mDrawerLayout.addDrawerListener(mDrawerToggle); in onContentViewSet() 116 mDrawerLayout.setStatusBarBackgroundColor(metalBlueColor); in onContentViewSet() 122 mDrawerLayout.getViewTreeObserver().addOnPreDrawListener( in onContentViewSet() 127 final int drawerLayoutWidth = mDrawerLayout.getWidth(); in onContentViewSet() 130 final Resources.Theme theme = mDrawerLayout.getContext().getTheme(); in onContentViewSet() [all …]
|
D | DrawerLayoutDoubleActivity.java | 39 private DrawerLayout mDrawerLayout; field in DrawerLayoutDoubleActivity 55 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onContentViewSet() 60 mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); in onContentViewSet() 65 mDrawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.drawer_title)); in onContentViewSet() 84 mDrawerLayout.setStatusBarBackgroundColor(metalBlueColor); in onContentViewSet() 91 if (mDrawerLayout.isDrawerOpen(mStartDrawer)) { in onBackPressed() 93 mDrawerLayout.closeDrawer(mStartDrawer); in onBackPressed() 98 if (mDrawerLayout.isDrawerOpen(mEndDrawer)) { in onBackPressed() 100 mDrawerLayout.closeDrawer(mEndDrawer); in onBackPressed() 116 mDrawerLayout.closeDrawer(mStartDrawer); in onItemClick()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | SettingsDrawerActivity.java | 71 private DrawerLayout mDrawerLayout; field in SettingsDrawerActivity 87 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in onCreate() 88 if (mDrawerLayout == null) { in onCreate() 94 mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED); in onCreate() 95 mDrawerLayout = null; in onCreate() 115 if (mShowingMenu && mDrawerLayout != null && item.getItemId() == android.R.id.home in onOptionsItemSelected() 127 if (mDrawerLayout != null) { in onResume() 144 if (mDrawerLayout != null) { in onPause() 161 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); in setIsDrawerPresent() 164 if (mDrawerLayout != null) { in setIsDrawerPresent() [all …]
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | ActionBarDrawerToggle.java | 115 private final DrawerLayout mDrawerLayout; field in ActionBarDrawerToggle 216 mDrawerLayout = drawerLayout; in ActionBarDrawerToggle() 239 if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) { in syncState() 246 mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in syncState() 285 int drawerLockMode = mDrawerLayout.getDrawerLockMode(GravityCompat.START); in toggle() 286 if (mDrawerLayout.isDrawerVisible(GravityCompat.START) in toggle() 288 mDrawerLayout.closeDrawer(GravityCompat.START); in toggle() 290 mDrawerLayout.openDrawer(GravityCompat.START); in toggle() 333 indicator = mDrawerLayout.getResources().getDrawable(resId); in setHomeAsUpIndicator() 360 mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in setDrawerIndicatorEnabled()
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | ActionBarDrawerToggle.java | 194 private final DrawerLayout mDrawerLayout; field in ActionBarDrawerToggle 271 mDrawerLayout = drawerLayout; in ActionBarDrawerToggle() 292 if (mDrawerLayout.isDrawerOpen(GravityCompat.START)) { in syncState() 299 setActionBarUpIndicator(mSlider, mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in syncState() 362 setActionBarUpIndicator(mSlider, mDrawerLayout.isDrawerOpen(GravityCompat.START) ? in setDrawerIndicatorEnabled() 406 if (mDrawerLayout.isDrawerVisible(GravityCompat.START)) { in onOptionsItemSelected() 407 mDrawerLayout.closeDrawer(GravityCompat.START); in onOptionsItemSelected() 409 mDrawerLayout.openDrawer(GravityCompat.START); in onOptionsItemSelected()
|
/frameworks/base/docs/html/training/implementing-navigation/ |
D | nav-drawer.jd | 127 private DrawerLayout mDrawerLayout; 137 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); 198 mDrawerLayout.closeDrawer(mDrawerList); 241 private DrawerLayout mDrawerLayout; 254 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); 255 mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout, 274 mDrawerLayout.setDrawerListener(mDrawerToggle); 281 boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList); 322 private DrawerLayout mDrawerLayout; 329 mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); [all …]
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
D | NavigationViewTest.java | 58 private DrawerLayout mDrawerLayout; field in NavigationViewTest 69 mDrawerLayout = (DrawerLayout) activity.findViewById(R.id.drawer_layout); in setUp() 70 mNavigationView = (NavigationView) mDrawerLayout.findViewById(R.id.start_drawer); in setUp() 397 mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testNavigationSelectionListener() 409 mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testNavigationSelectionListener() 423 mDrawerLayout.isDrawerOpen(GravityCompat.START)); in testNavigationSelectionListener()
|