
com.android.internal.statusbar.StatusBarIconList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-all Show documentation
Show all versions of android-all Show documentation
A library jar that provides APIs for Applications written for the Google Android Platform.
/*
* Copyright (C) 2007 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.internal.statusbar;
import android.os.Parcel;
import android.os.Parcelable;
import java.io.PrintWriter;
public class StatusBarIconList implements Parcelable {
private String[] mSlots;
private StatusBarIcon[] mIcons;
public StatusBarIconList() {
}
public StatusBarIconList(Parcel in) {
readFromParcel(in);
}
public void readFromParcel(Parcel in) {
this.mSlots = in.readStringArray();
final int N = in.readInt();
if (N < 0) {
mIcons = null;
} else {
mIcons = new StatusBarIcon[N];
for (int i=0; i CREATOR
= new Parcelable.Creator()
{
public StatusBarIconList createFromParcel(Parcel parcel)
{
return new StatusBarIconList(parcel);
}
public StatusBarIconList[] newArray(int size)
{
return new StatusBarIconList[size];
}
};
public void defineSlots(String[] slots) {
final int N = slots.length;
String[] s = mSlots = new String[N];
for (int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy