Java*

Setting Text Size for Intel® Parallel Studio XE Components on Microsoft Windows* Operating Systems

Intel® Inspector XE, Intel® VTune™ Amplifier XE, and Intel® Advisor XE use Microsoft Windows* OS system fonts to select text size. This allows the components to automatically pick up any change you make for accessibility or personal preference without affecting any other component user on the system.

 Therefore, changing the text size for the Intel® Parallel Studio XE GUI is simple. Just change the Windows* text size and reopen the component.

  • Developers
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Windows*
  • .NET*
  • C#
  • C/C++
  • Fortran
  • Java*
  • Beginner
  • Intel® Cluster Studio XE
  • Intel® Parallel Studio XE
  • Intel® Advisor XE
  • Intel® VTune™ Amplifier XE
  • Intel® Inspector XE
  • How to Compile Cocos2D-HTML5 JSBinding for Android X86 Devices

    This is a technical tutorial for build Cocos2D-HTML5 JSBinding for Android x86 devices. Cocos2d-html5 is an open-source web 2D game framework, released under MIT License. It is a HTML5 version of Cocos2d-x project. Its focus for Cocos2d-html5 development is around making Cocos2d cross platforms between browsers and native application.

  • Developers
  • Intel AppUp® Developers
  • Partners
  • Students
  • Android*
  • Android*
  • HTML5
  • HTML5
  • Java*
  • Intermediate
  • Intel® Atom™ Processors
  • Using Intel® VTune™ Amplifier XE to Tune Software on the Intel® Xeon® Processor E5 Family

    Download this guide to learn how to identify performance issues on software running on the Intel® Xeon® Processor E5 family
    (based on Intel® Microarchitecture Codename Sandy Bridge-EP/EX/EN). The guide explains how to use Intel® VTune™ Amplifier XE's General Exploration profile for Xeon processor E5 servers.  It explains how to identify the most common software performance issues and gives suggestions for how to address each.  

  • Developers
  • Professors
  • Students
  • C#
  • C/C++
  • Fortran
  • Java*
  • Intermediate
  • Intel® VTune™ Amplifier XE
  • Sandy Bridge
  • SNB-EP
  • SNB-EX
  • Xeon
  • performance
  • software
  • Tuning Guide
  • Optimization
  • Calculating estimated call counts with Intel® VTune™ Amplifier XE 2013

    When you profile your software with VTune™ Amplifier XE you often start from looking at the top function hotspots list. This allows you to see what functions are spending CPU resources, so you can focus your optimization efforts.

    Function call counts can provide some additional information to assist in further optimization.

  • Developers
  • Intel AppUp® Developers
  • Partners
  • Professors
  • Students
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Unix*
  • Windows*
  • .NET*
  • C#
  • C/C++
  • Fortran
  • Java*
  • Advanced
  • Beginner
  • Intermediate
  • Intel® Parallel Studio XE
  • Intel® VTune™ Amplifier XE
  • VTune Amplifier XE
  • Learning Lab
  • Optimization
  • Parallel Computing
  • Making the Call Stack Pane Work for You



    VTune™ Amplifier XE Call Stack Pane

    The call stack pane is displayed in viewpoints of analysis types that include stack data. It is displayed on the right side of the viewpoint (highlighted below in a gold box).

    call stack pane highlighted in viewpoint

  • Developers
  • Linux*
  • Microsoft Windows* (XP, Vista, 7)
  • Microsoft Windows* 8
  • Server
  • Windows*
  • .NET*
  • C#
  • C/C++
  • Fortran
  • Java*
  • Beginner
  • Intel® C++ Studio XE
  • Intel® Cluster Studio XE
  • Intel® VTune™ Amplifier XE
  • performance profiler
  • Call Stack Pane
  • menu
  • Configure
  • Development Tools
  • Optimization
  • 关于 android 中 edittext 特殊字符过滤和字符长度限制的最优方法

    在android开发中,经常会碰到edittext中特殊字符过滤和字符长度限制同时要求的问题,由于android不同版本之间的兼容问题,以及各种手机支持情况不同,因此,经常会出现一些设备上面不兼容问题。为了解决这个问题,这里经过实践总结,给出一个最优的方案:

    首先,对于字符长度的限制我们可以使用3种方法,如下:

    1,使用EditText的setFilter方法实现,代码如下:

    定义EditText对象mEditText;

    字符限制长度int MAX_TEXT_INPUT_LENGTH;

    mEditText.setFilters(new InputFilter[]{new InputFilter.LengthFilter(MAX_TEXT_INPUT_LENGTH)});

    这种方法只能限制固定长度的字符数,也就是说MAX_TEXT_INPUT_LENGTH必须是一个定值。

    2, 同样是使用setFilters方法,动态改变限制的字符长度:

    int mMaxLenth = 20;//mMaxLenth可以动态改变

    Android SDK 的一个bug ------ parameters.getFocusDistances 无法使用(被拍摄物体和摄像头之间的距离无法测量)

    这是很早之前我发现的一个问题,当时想利用“焦距”来定位被拍摄物体和手机摄像头之间的距离,注意不是摄像头预览画面里两个点之间的距离,这是个平面距离。本文所说的距离是垂直距离。最终失败,原因是parameters.getFocusDistances返回的值永远是inifinte。手机型号是华为U9200.

    下面是测试核心代码:

    <SPAN style="FONT-SIZE: 18px">@Override

        public void onAutoFocus(boolean success, Camera camera) {

            //READ FOCUS DISTANCES HERE

            Camera.Parameters parameters = camera.getParameters();

            float[] distances = new float[3];

            if (success) {

    Subscribe to Java*