本文整理汇总了Java中com.android.debug.hv.ViewServer类的典型用法代码示例。如果您正苦于以下问题:Java ViewServer类的具体用法?Java ViewServer怎么用?Java ViewServer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ViewServer类属于com.android.debug.hv包,在下文中一共展示了ViewServer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initOneTime
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
private void initOneTime() {
getActionBar().setDisplayHomeAsUpEnabled(true);
String title;
if (Strings.isNullOrEmpty(episode.getSeriesTitle()))
title = episode.getEpisodeTitle();
else if (Strings.isNullOrEmpty(episode.getEpisodeTitle()))
title = episode.getSeriesTitle();
else
title = episode.getSeriesTitle() + " " + episode.getEpisodeTitle();
setTitle(title);
setupSystemHider(getResources().getConfiguration());
ViewServer.get(this).addWindow(this);
authenticateUI();
initOneTime = true;
}
示例2: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
if (savedInstanceState != null) {
// We don't want fragments to be recreated automatically
savedInstanceState.putParcelable(FRAGMENTS_TAG, null);
}
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ButterKnife.bind(this);
setSupportActionBar(toolbar);
boolean fixedDrawer = getResources().getBoolean(R.bool.fixed_drawer);
boolean twoPanes = getResources().getBoolean(R.bool.two_panes);
Configuration configuration = getResources().getConfiguration();
int screenWidthDp = configuration.screenWidthDp;
int screenHeightDp = configuration.screenHeightDp;
logger.debug("onCreate() width: {}, height: {}", screenWidthDp, screenHeightDp);
// TODO: Factory.buildViewDelegate(fixedDrawer, twoPanes);
if (fixedDrawer && twoPanes) {
delegate = new TabletWideDelegate(this);
} else if (fixedDrawer) {
delegate = new PhoneDelegate(this);
} else {
delegate = new PhoneDelegate(this);
}
navigationView.init(getComponent());
ViewServer.get(this).addWindow(this);
}
示例3: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
context = getApplicationContext();
// TAG = getTAG();
application = (DemoApplication) getApplication();
application.addActivity(this);
ViewServer.get(this).addWindow(this);
}
示例4: onDestroy
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
application.delActivity(this);
super.onDestroy();
recycleUIHandler();
recycleWorkerHandler();
ViewServer.get(this).removeWindow(this);
}
示例5: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FodexApplication fodexApp = (FodexApplication) getApplication();
fodexApp.injectMock(this);
if (BuildConfig.DEBUG) {
ViewServer.get(this).addWindow(this);
}
}
示例6: onResume
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onResume() {
super.onResume();
if (BuildConfig.DEBUG) {
ViewServer.get(this).setFocusedWindow(this);
}
}
示例7: onDestroy
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if (BuildConfig.DEBUG) {
ViewServer.get(this).removeWindow(this);
}
}
示例8: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
FodexApplication fodexApp = (FodexApplication) getActivity().getApplication();
fodexApp.injectMock(this);
if (BuildConfig.DEBUG) {
ViewServer.get(getActivity()).addWindow(getActivity());
}
}
示例9: onResume
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onResume() {
super.onResume();
if (BuildConfig.DEBUG) {
ViewServer.get(getActivity()).setFocusedWindow(getActivity());
}
}
示例10: onDestroy
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
public void onDestroy() {
super.onDestroy();
if (BuildConfig.DEBUG) {
ViewServer.get(getActivity()).removeWindow(getActivity());
}
}
示例11: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (BuildConfig.DEBUG) {
ViewServer.get(this).addWindow(this);
}
}
示例12: connectHierarchyView
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@TargetApi(9)
public static void connectHierarchyView(Activity activity)
{
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
StrictMode.setThreadPolicy(policy);
// Set content view, etc.
ViewServer.get(activity).addWindow(activity);
}
示例13: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_list);
if (BuildConfig.DEBUG)
ViewServer.get(this).addWindow(this);
}
示例14: onCreate
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Injector.inject(this);
if (BuildConfig.DEBUG) {
ViewServer.get(this).addWindow(this);
}
}
示例15: onDestroy
import com.android.debug.hv.ViewServer; //导入依赖的package包/类
@Override
protected void onDestroy() {
super.onDestroy();
if (BuildConfig.DEBUG) {
ViewServer.get(this).removeWindow(this);
}
}