Android Open Source - tapad-android-sdk Identifier Source Aggregator






From Project

Back to project page tapad-android-sdk.

License

The source code is released under:

MIT License

If you think the Android project tapad-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.tapad.tracking.deviceidentification;
/*w ww  .j  a  v  a 2s. c  om*/
import android.content.Context;

import java.util.ArrayList;
import java.util.List;

/**
 * Holds a list of identifier sources and asks each for identifiers in turn.
 */
public class IdentifierSourceAggregator implements IdentifierSource {
    private List<IdentifierSource> sourceDelegates = new ArrayList<IdentifierSource>();

    public IdentifierSourceAggregator() { }
    public IdentifierSourceAggregator(List<IdentifierSource> sources) { this.sourceDelegates.addAll(sources); }

    public void addIdentifierSource(IdentifierSource source) { this.sourceDelegates.add(source); }

    @Override
    public List<TypedIdentifier> get(Context context) {
        List<TypedIdentifier> aggregateIds = new ArrayList<TypedIdentifier>();
        for (int i=0; i<this.sourceDelegates.size(); i++) {
            aggregateIds.addAll(this.sourceDelegates.get(i).get(context));
        }
        return (aggregateIds);
    }
}




Java Source Code List

com.tapad.adserving.AdRequestDispatcher.java
com.tapad.adserving.AdRequest.java
com.tapad.adserving.AdResource.java
com.tapad.adserving.AdResponse.java
com.tapad.adserving.AdServingServiceImpl.java
com.tapad.adserving.AdServingService.java
com.tapad.adserving.AdServing.java
com.tapad.adserving.AdSize.java
com.tapad.adserving.ui.AdView.java
com.tapad.sample.AdViewActivity.java
com.tapad.sample.MainActivity.java
com.tapad.sample.MainApplication.java
com.tapad.sample.ManualMarkupActivity.java
com.tapad.sample.SampleConstants.java
com.tapad.tracking.DeviceIdentifier.java
com.tapad.tracking.DeviceInfo.java
com.tapad.tracking.EventDispatcher.java
com.tapad.tracking.EventResource.java
com.tapad.tracking.Event.java
com.tapad.tracking.InstallReferrerReceiver.java
com.tapad.tracking.TrackingServiceImpl.java
com.tapad.tracking.TrackingService.java
com.tapad.tracking.Tracking.java
com.tapad.tracking.deviceidentification.AndroidId.java
com.tapad.tracking.deviceidentification.IdentifierSourceAggregator.java
com.tapad.tracking.deviceidentification.IdentifierSource.java
com.tapad.tracking.deviceidentification.PhoneId.java
com.tapad.tracking.deviceidentification.TypedIdentifier.java
com.tapad.tracking.deviceidentification.WifiMac.java
com.tapad.util.DigestUtil.java
com.tapad.util.HttpClientUtil.java
com.tapad.util.IoUtil.java
com.tapad.util.Logging.java