public ServiceSpecificDetails(TextView infoText, Intent intent) {
   super();
   this.sInfoText = infoText;
   this.sIntent = intent;
   this.sState = ServiceState.NOT_CONNECTED;
   setInfoText(sState.name());
 }
Exemplo n.º 2
0
 public synchronized boolean equals(java.lang.Object obj) {
   if (!(obj instanceof ServiceState)) return false;
   ServiceState other = (ServiceState) obj;
   if (obj == null) return false;
   if (this == obj) return true;
   if (__equalsCalc != null) {
     return (__equalsCalc == obj);
   }
   __equalsCalc = obj;
   boolean _equals;
   _equals =
       true
           && this.resourceAllocated == other.getResourceAllocated()
           && this.resourceRegistered == other.getResourceRegistered()
           && this.resourceFree == other.getResourceFree()
           && this.resourcePending == other.getResourcePending()
           && this.resourceActive == other.getResourceActive()
           && this.taskNumQueues == other.getTaskNumQueues()
           && this.taskSubmit == other.getTaskSubmit()
           && this.taskWaitQueue == other.getTaskWaitQueue()
           && this.taskDispatch == other.getTaskDispatch()
           && this.taskActive == other.getTaskActive()
           && this.taskDeliveryQueue == other.getTaskDeliveryQueue()
           && this.taskDelivered == other.getTaskDelivered()
           && this.systemNumThreads == other.getSystemNumThreads()
           && this.systemCPUuser == other.getSystemCPUuser()
           && this.systemCPUsystem == other.getSystemCPUsystem()
           && this.systemCPUidle == other.getSystemCPUidle()
           && this.systemHeapSize == other.getSystemHeapSize()
           && this.systemHeapFree == other.getSystemHeapFree()
           && this.systemHeapMax == other.getSystemHeapMax()
           && this.valid == other.isValid();
   __equalsCalc = null;
   return _equals;
 }