diff options
author | John Spurlock <jspurlock@google.com> | 2013-06-14 16:54:23 -0400 |
---|---|---|
committer | John Spurlock <jspurlock@google.com> | 2013-06-14 16:54:23 -0400 |
commit | cf61202c060adfd189fbf99eb8a66c1852dfa351 (patch) | |
tree | b7bc1cbba2fd615a58f8f702979c144e57d2dba8 /packages/SystemUI | |
parent | 77b7c33a7a4e79022529ae18e39789adbcc86159 (diff) | |
download | frameworks_base-cf61202c060adfd189fbf99eb8a66c1852dfa351.zip frameworks_base-cf61202c060adfd189fbf99eb8a66c1852dfa351.tar.gz frameworks_base-cf61202c060adfd189fbf99eb8a66c1852dfa351.tar.bz2 |
Remove unused TrackingPatternView.
Change-Id: Ic9a935fff827cad04ea42040837449368c36d32b
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/TrackingPatternView.java | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrackingPatternView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrackingPatternView.java deleted file mode 100644 index 68807a0..0000000 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/TrackingPatternView.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2008 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.systemui.statusbar.phone; - -import android.content.Context; -import android.graphics.Bitmap; -import android.graphics.BitmapFactory; -import android.graphics.Canvas; -import android.graphics.Paint; -import android.util.AttributeSet; -import android.view.View; - -public class TrackingPatternView extends View { - private Bitmap mTexture; - private Paint mPaint; - private int mTextureWidth; - private int mTextureHeight; - - public TrackingPatternView(Context context, AttributeSet attrs) { - super(context, attrs); - - mTexture = BitmapFactory.decodeResource(getResources(), - com.android.internal.R.drawable.status_bar_background); - mTextureWidth = mTexture.getWidth(); - mTextureHeight = mTexture.getHeight(); - - mPaint = new Paint(); - mPaint.setDither(false); - } - - @Override - public void onDraw(Canvas canvas) { - final Bitmap texture = mTexture; - final Paint paint = mPaint; - - final int width = getWidth(); - final int height = getHeight(); - - final int textureWidth = mTextureWidth; - final int textureHeight = mTextureHeight; - - int x = 0; - int y; - - while (x < width) { - y = 0; - while (y < height) { - canvas.drawBitmap(texture, x, y, paint); - y += textureHeight; - } - x += textureWidth; - } - } -} |