1/*
2 * Copyright (C) 2008 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.android.systemui.statusbar.tablet;
18
19import android.content.Context;
20import android.graphics.Canvas;
21import android.util.AttributeSet;
22import android.view.View;
23
24public class PanelBackgroundView extends View {
25    /*
26    private Bitmap mTexture;
27    private Paint mPaint;
28    private int mTextureWidth;
29    private int mTextureHeight;
30    */
31
32    public PanelBackgroundView(Context context, AttributeSet attrs) {
33        super(context, attrs);
34        /*
35        mTexture = BitmapFactory.decodeResource(getResources(),
36                com.android.internal.R.drawable.status_bar_background);
37        mTextureWidth = mTexture.getWidth();
38        mTextureHeight = mTexture.getHeight();
39
40        mPaint = new Paint();
41        mPaint.setDither(false);
42        */
43    }
44
45    @Override
46    public void onDraw(Canvas canvas) {
47        /*
48        final Bitmap texture = mTexture;
49        final Paint paint = mPaint;
50
51        final int width = getWidth();
52        final int height = getHeight();
53
54        final int textureWidth = mTextureWidth;
55        final int textureHeight = mTextureHeight;
56
57        int x = 0;
58        int y;
59
60        while (x < width) {
61            y = 0;
62            while (y < height) {
63                canvas.drawBitmap(texture, x, y, paint);
64                y += textureHeight;
65            }
66            x += textureWidth;
67        }
68        */
69    }
70}
71