private void applyPartnerDeviceProfileOverrides(Context ctx,DisplayMetrics dm){
  Partner p=Partner.get(ctx.getPackageManager());
  if (p != null) {
    DeviceProfile partnerDp=p.getDeviceProfileOverride(dm);
    if (partnerDp != null) {
      if (partnerDp.numRows > 0 && partnerDp.numColumns > 0) {
        numRows=partnerDp.numRows;
        numColumns=partnerDp.numColumns;
      }
      if (partnerDp.allAppsShortEdgeCount > 0 && partnerDp.allAppsLongEdgeCount > 0) {
        allAppsShortEdgeCount=partnerDp.allAppsShortEdgeCount;
        allAppsLongEdgeCount=partnerDp.allAppsLongEdgeCount;
      }
      if (partnerDp.iconSize > 0) {
        iconSize=partnerDp.iconSize;
        allAppsIconSizePx=DynamicGrid.pxFromDp(iconSize,dm);
      }
    }
  }
}

private void applyPartnerDeviceProfileOverrides ( Context ctx , DisplayMetrics dm ) { Partner p = Partner . get ( ctx . getPackageManager ( ) ) ; if ( p != null ) { DeviceProfile partnerDp = p . getDeviceProfileOverride ( dm ) ; if ( partnerDp != null ) { if ( partnerDp . numRows > 0 && partnerDp . numColumns > 0 ) { numRows = partnerDp . numRows ; numColumns = partnerDp . numColumns ; } if ( partnerDp . allAppsShortEdgeCount > 0 && partnerDp . allAppsLongEdgeCount > 0 ) { allAppsShortEdgeCount = partnerDp . allAppsShortEdgeCount ; allAppsLongEdgeCount = partnerDp . allAppsLongEdgeCount ; } if ( partnerDp . iconSize > 0 ) { iconSize = partnerDp . iconSize ; allAppsIconSizePx = DynamicGrid . pxFromDp ( iconSize , dm ) ; } } } }
apply any partner customization grid overrides . currently we support : all apps row / column count .
