// Path: sample/src/main/java/com/ms_square/debugoverlay/sample/MainActivity.java
// public class MainActivity extends AppCompatActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
//         Toolbar toolbar = findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
// 
//         FloatingActionButton fab = findViewById(R.id.fab);
//         fab.setOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View view) {
//                 Timber.d("fab clicked");
//                 startActivity(new Intent(MainActivity.this, ScrollingActivity.class));
//             }
//         });
// 
//         Timber.d("onCreate() called");
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
//         Timber.d("onResume() called");
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         // Inflate the menu; this adds items to the action bar if it is present.
//         getMenuInflater().inflate(R.menu.menu_main, menu);
//         return true;
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         // Handle action bar item clicks here. The action bar will
//         // automatically handle clicks on the Home/Up button, so long
//         // as you specify a parent activity in AndroidManifest.xml.
//         int id = item.getItemId();
// 
//         //noinspection SimplifiableIfStatement
//         if (id == R.id.action_settings) {
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// }


import android.support.test.filters.LargeTest;
import android.support.test.filters.SdkSuppress;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.ms_square.debugoverlay.sample.MainActivity;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
package com.ms_square.debugoverlay;




/**
 * Instrumentation test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
@SdkSuppress(minSdkVersion = 18)
@LargeTest
public class SystemLayerInstrumentedTest extends DebugOverlayInstrumentedTest {

    @Rule
// Path: sample/src/main/java/com/ms_square/debugoverlay/sample/MainActivity.java
// public class MainActivity extends AppCompatActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_main);
//         Toolbar toolbar = findViewById(R.id.toolbar);
//         setSupportActionBar(toolbar);
// 
//         FloatingActionButton fab = findViewById(R.id.fab);
//         fab.setOnClickListener(new View.OnClickListener() {
//             @Override
//             public void onClick(View view) {
//                 Timber.d("fab clicked");
//                 startActivity(new Intent(MainActivity.this, ScrollingActivity.class));
//             }
//         });
// 
//         Timber.d("onCreate() called");
//     }
// 
//     @Override
//     public void onResume() {
//         super.onResume();
//         Timber.d("onResume() called");
//     }
// 
//     @Override
//     public boolean onCreateOptionsMenu(Menu menu) {
//         // Inflate the menu; this adds items to the action bar if it is present.
//         getMenuInflater().inflate(R.menu.menu_main, menu);
//         return true;
//     }
// 
//     @Override
//     public boolean onOptionsItemSelected(MenuItem item) {
//         // Handle action bar item clicks here. The action bar will
//         // automatically handle clicks on the Home/Up button, so long
//         // as you specify a parent activity in AndroidManifest.xml.
//         int id = item.getItemId();
// 
//         //noinspection SimplifiableIfStatement
//         if (id == R.id.action_settings) {
//             return true;
//         }
// 
//         return super.onOptionsItemSelected(item);
//     }
// }


// Path: sample/src/androidTest/java/com/ms_square/debugoverlay/SystemLayerInstrumentedTest.java
import android.support.test.filters.LargeTest;
import android.support.test.filters.SdkSuppress;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.ms_square.debugoverlay.sample.MainActivity;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

package com.ms_square.debugoverlay;




/**
 * Instrumentation test, which will execute on an Android device.
 *
 * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
 */
@RunWith(AndroidJUnit4.class)
@SdkSuppress(minSdkVersion = 18)
@LargeTest
public class SystemLayerInstrumentedTest extends DebugOverlayInstrumentedTest {

    @Rule
    public ActivityTestRule<MainActivity> activityRule = new ActivityTestRule<>(MainActivity.class);