Home | History | Annotate | Download | only in mbms
      1 /*
      2  * Copyright (C) 2016 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 
     17 package android.telephony.mbms;
     18 
     19 import android.annotation.SystemApi;
     20 import android.annotation.TestApi;
     21 import android.os.Parcel;
     22 import android.os.Parcelable;
     23 
     24 import java.util.Date;
     25 import java.util.List;
     26 import java.util.Locale;
     27 import java.util.Map;
     28 
     29 /**
     30  * Describes a single MBMS streaming service.
     31  */
     32 public final class StreamingServiceInfo extends ServiceInfo implements Parcelable {
     33 
     34     /**
     35      * @param names User displayable names listed by language.
     36      * @param className The class name for this service - used by frontend apps to categorize and
     37      *                  filter.
     38      * @param locales The languages available for this service content.
     39      * @param serviceId The carrier's identifier for the service.
     40      * @param start The start time indicating when this service will be available.
     41      * @param end The end time indicating when this session stops being available.
     42      * @hide
     43      */
     44     @SystemApi
     45     @TestApi
     46     public StreamingServiceInfo(Map<Locale, String> names, String className,
     47             List<Locale> locales, String serviceId, Date start, Date end) {
     48         super(names, className, locales, serviceId, start, end);
     49     }
     50 
     51     public static final Parcelable.Creator<StreamingServiceInfo> CREATOR =
     52             new Parcelable.Creator<StreamingServiceInfo>() {
     53         @Override
     54         public StreamingServiceInfo createFromParcel(Parcel source) {
     55             return new StreamingServiceInfo(source);
     56         }
     57 
     58         @Override
     59         public StreamingServiceInfo[] newArray(int size) {
     60             return new StreamingServiceInfo[size];
     61         }
     62     };
     63 
     64     private StreamingServiceInfo(Parcel in) {
     65         super(in);
     66     }
     67 
     68     @Override
     69     public void writeToParcel(Parcel dest, int flags) {
     70         super.writeToParcel(dest, flags);
     71     }
     72 
     73     @Override
     74     public int describeContents() {
     75         return 0;
     76     }
     77 }
     78