Skip to content

Commit 07ace5c

Browse files
committed
[Change] Change package and some calls.
1 parent 6460a3c commit 07ace5c

32 files changed

+36
-38
lines changed

src/com/worthed/activity/BitmapActivity.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package com.worthed.activity;
1717

1818
import com.worthed.R;
19-
import com.worthed.utils.BitmapUtil;
19+
import com.worthed.util.BitmapUtil;
2020

2121
import android.app.Activity;
2222
import android.graphics.Bitmap;
@@ -34,7 +34,6 @@ public class BitmapActivity extends Activity {
3434
private final String TAG = BitmapActivity.class.getSimpleName();
3535

3636
private ImageView imageViewOrigin, imageViewCombine;
37-
private BitmapUtil bitmapUtil;
3837

3938
@Override
4039
protected void onCreate(Bundle savedInstanceState) {
@@ -43,28 +42,27 @@ protected void onCreate(Bundle savedInstanceState) {
4342
setContentView(R.layout.bitmap_layout);
4443
imageViewOrigin = (ImageView) findViewById(R.id.iv_round_origin);
4544
imageViewCombine = (ImageView) findViewById(R.id.iv_round_combine);
46-
bitmapUtil = new BitmapUtil();
4745
testProcess();
4846
testCombine();
4947
}
5048

5149
private void testProcess() {
5250
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
5351
R.drawable.beautiful);
54-
imageViewOrigin.setImageBitmap(bitmapUtil.toRoundBitmap(bitmap));
52+
imageViewOrigin.setImageBitmap(BitmapUtil.getRoundBitmap(bitmap));
5553
bitmap.recycle();
5654
}
5755

5856
private void testCombine() {
59-
Bitmap bitmap = bitmapUtil.toRoundBitmap(BitmapFactory.decodeResource(getResources(),
57+
Bitmap bitmap = BitmapUtil.getRoundBitmap(BitmapFactory.decodeResource(getResources(),
6058
R.drawable.beautiful));
6159
Bitmap mask = BitmapFactory.decodeResource(getResources(),
6260
R.drawable.sea);
6361

6462
Log.d(TAG, "foreground width - height : " + bitmap.getWidth() + " - " + bitmap.getHeight());
6563
Log.d(TAG, "background width - height : " + mask.getWidth() + " - " + mask.getHeight());
6664

67-
imageViewCombine.setImageBitmap(bitmapUtil.combineImagesToSameSize(mask, bitmap));
65+
imageViewCombine.setImageBitmap(BitmapUtil.combineImagesToSameSize(mask, bitmap));
6866
bitmap.recycle();
6967
mask.recycle();
7068
}

src/com/worthed/app/BaseCrashHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.lang.Thread.UncaughtExceptionHandler;
2121
import java.util.Date;
2222

23-
import com.worthed.utils.LogUtils;
23+
import com.worthed.util.LogUtils;
2424

2525
import android.content.Context;
2626
import android.os.Environment;

src/com/worthed/utils/AppUtils.java renamed to src/com/worthed/util/AppUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.File;
1919

src/com/worthed/utils/AssetDatabaseOpenHelper.java renamed to src/com/worthed/util/AssetDatabaseOpenHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.File;
1919
import java.io.IOException;

src/com/worthed/utils/BitmapUtil.java renamed to src/com/worthed/util/BitmapUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.ByteArrayInputStream;
1919
import java.io.ByteArrayOutputStream;

src/com/worthed/utils/CipherUtils.java renamed to src/com/worthed/util/CipherUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.UnsupportedEncodingException;
1919
import java.security.Key;

src/com/worthed/utils/CommonUtil.java renamed to src/com/worthed/util/CommonUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818

1919
import android.content.Context;

src/com/worthed/utils/DataCleanManager.java renamed to src/com/worthed/util/DataCleanManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.File;
1919
import android.content.Context;

src/com/worthed/utils/DatabaseExportUtils.java renamed to src/com/worthed/util/DatabaseExportUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.content.Context;
1919
import android.os.Environment;

src/com/worthed/utils/DateUtils.java renamed to src/com/worthed/util/DateUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.text.ParseException;
1919
import java.text.SimpleDateFormat;

src/com/worthed/utils/DigestUtils.java renamed to src/com/worthed/util/DigestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.security.MessageDigest;
1919

src/com/worthed/utils/DisplayUtils.java renamed to src/com/worthed/util/DisplayUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.app.Activity;
1919
import android.content.Context;

src/com/worthed/utils/DoubleKeyValueMap.java renamed to src/com/worthed/util/DoubleKeyValueMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.util.ArrayList;
1919
import java.util.Collection;

src/com/worthed/utils/DownloadManagerPro.java renamed to src/com/worthed/util/DownloadManagerPro.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.lang.reflect.Method;
1919

src/com/worthed/utils/FileUtils.java renamed to src/com/worthed/util/FileUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.BufferedReader;
1919
import java.io.ByteArrayOutputStream;

src/com/worthed/utils/HanziToPinyin.java renamed to src/com/worthed/util/HanziToPinyin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.text.TextUtils;
1919
import android.util.Log;

src/com/worthed/utils/ImsiUtil.java renamed to src/com/worthed/util/ImsiUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.lang.reflect.Field;
1919
import java.lang.reflect.Method;

src/com/worthed/utils/LocationUtils.java renamed to src/com/worthed/util/LocationUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.InputStream;
1919

src/com/worthed/utils/LogUtils.java renamed to src/com/worthed/util/LogUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.util.Log;
1919

src/com/worthed/utils/NetUtil.java renamed to src/com/worthed/util/NetUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.util.regex.Matcher;
1919
import java.util.regex.Pattern;

src/com/worthed/utils/PackageUtils.java renamed to src/com/worthed/util/PackageUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.File;
1919
import java.util.List;
2020

21-
import com.worthed.utils.ShellUtils.CommandResult;
21+
import com.worthed.util.ShellUtils.CommandResult;
2222

2323
import android.annotation.SuppressLint;
2424
import android.app.ActivityManager;

src/com/worthed/utils/PhoneUtil.java renamed to src/com/worthed/util/PhoneUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.content.Context;
1919
import android.content.Intent;

src/com/worthed/utils/PreferencesCookieStore.java renamed to src/com/worthed/util/PreferencesCookieStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import android.content.Context;
1919
import android.content.SharedPreferences;

src/com/worthed/utils/RandomUtils.java renamed to src/com/worthed/util/RandomUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.util.Random;
1919

src/com/worthed/utils/RegUtils.java renamed to src/com/worthed/util/RegUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.util.regex.Matcher;
1919
import java.util.regex.Pattern;

src/com/worthed/utils/ResourceUtils.java renamed to src/com/worthed/util/ResourceUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.BufferedReader;
1919
import java.io.IOException;

src/com/worthed/utils/SettingUtils.java renamed to src/com/worthed/util/SettingUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.lang.reflect.InvocationTargetException;
1919
import java.lang.reflect.Method;

src/com/worthed/utils/ShellUtils.java renamed to src/com/worthed/util/ShellUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.io.BufferedReader;
1919
import java.io.DataOutputStream;

src/com/worthed/utils/ShortCutUtils.java renamed to src/com/worthed/util/ShortCutUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import com.worthed.R;
1919

src/com/worthed/utils/Singleton.java renamed to src/com/worthed/util/Singleton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
/**
1919
* Singleton helper class for lazily initialization.

src/com/worthed/utils/StringUtils.java renamed to src/com/worthed/util/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.util.Locale;
1919
import java.util.regex.Pattern;

src/com/worthed/utils/ViewUtils.java renamed to src/com/worthed/util/ViewUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
package com.worthed.utils;
16+
package com.worthed.util;
1717

1818
import java.lang.reflect.Field;
1919
import java.util.ArrayList;

0 commit comments

Comments
 (0)